diff options
author | rsc <devnull@localhost> | 2005-03-18 19:50:15 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2005-03-18 19:50:15 +0000 |
commit | a5a494c16724e3f31f6660ad22117a2da393191e (patch) | |
tree | c2f88a9cead20d17c421bb74b38dbd465ff19f92 /rcmain | |
parent | bc18537a3f1dcf7fdc912b6973bc1ec9455dbd1f (diff) | |
download | plan9port-a5a494c16724e3f31f6660ad22117a2da393191e.tar.gz plan9port-a5a494c16724e3f31f6660ad22117a2da393191e.tar.bz2 plan9port-a5a494c16724e3f31f6660ad22117a2da393191e.zip |
allow -l without -i
Diffstat (limited to 'rcmain')
-rw-r--r-- | rcmain | 14 |
1 files changed, 9 insertions, 5 deletions
@@ -20,8 +20,9 @@ if(! ~ $#cflag 0){ if(flag l && test -r $home/lib/profile) . $home/lib/profile status='' eval $cflag + exit $status } -if not if(flag i){ +if(flag i){ if(~ $TERM 9term){ if(~ $#'fn#cd' 0) fn cd { builtin cd $1 && flag i && awd } @@ -31,10 +32,13 @@ if not if(flag i){ status='' if(! ~ $#* 0) . $* . -i '/dev/stdin' + exit $status } -if not if(~ $#* 0) . '/dev/stdin' -if not{ - status='' - . $* +if(flag l && test -r $home/lib/profile) . $home/lib/profile +if(~ $#* 0){ + . /dev/stdin + exit $status } +status='' +. $* exit $status |