ref: 2c5d2c01318331cacd0655d90a57f89888675aad
parent: f9717bdca22ebe615483d2d86e879a28e331f3ff
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Wed Aug 5 10:09:02 EDT 2015
init: do not run $home/lib/profile when cd $home failed avoiding follow up error messages, which is annoying and quite common when running a terminal as "none" for testing.
--- a/sys/src/cmd/init.c
+++ b/sys/src/cmd/init.c
@@ -144,7 +144,7 @@
else if(manual || iscpu)
execl("/bin/rc", "rc", nil);else if(strcmp(service, "terminal") == 0)
- execl("/bin/rc", "rc", "-c", ". /rc/bin/termrc; home=/usr/$user; cd; . ./lib/profile", nil);+ execl("/bin/rc", "rc", "-c", ". /rc/bin/termrc; home=/usr/$user; cd && . ./lib/profile", nil);else
execl("/bin/rc", "rc", nil);}
--
⑨