From a5a494c16724e3f31f6660ad22117a2da393191e Mon Sep 17 00:00:00 2001 From: rsc Date: Fri, 18 Mar 2005 19:50:15 +0000 Subject: allow -l without -i --- rcmain | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'rcmain') diff --git a/rcmain b/rcmain index 19dd5772..2a0174bf 100644 --- a/rcmain +++ b/rcmain @@ -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 -- cgit v1.2.3