mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
allow -l without -i
This commit is contained in:
parent
bc18537a3f
commit
a5a494c167
1 changed files with 9 additions and 5 deletions
14
rcmain
14
rcmain
|
@ -20,8 +20,9 @@ if(! ~ $#cflag 0){
|
||||||
if(flag l && test -r $home/lib/profile) . $home/lib/profile
|
if(flag l && test -r $home/lib/profile) . $home/lib/profile
|
||||||
status=''
|
status=''
|
||||||
eval $cflag
|
eval $cflag
|
||||||
|
exit $status
|
||||||
}
|
}
|
||||||
if not if(flag i){
|
if(flag i){
|
||||||
if(~ $TERM 9term){
|
if(~ $TERM 9term){
|
||||||
if(~ $#'fn#cd' 0)
|
if(~ $#'fn#cd' 0)
|
||||||
fn cd { builtin cd $1 && flag i && awd }
|
fn cd { builtin cd $1 && flag i && awd }
|
||||||
|
@ -31,10 +32,13 @@ if not if(flag i){
|
||||||
status=''
|
status=''
|
||||||
if(! ~ $#* 0) . $*
|
if(! ~ $#* 0) . $*
|
||||||
. -i '/dev/stdin'
|
. -i '/dev/stdin'
|
||||||
|
exit $status
|
||||||
}
|
}
|
||||||
if not if(~ $#* 0) . '/dev/stdin'
|
if(flag l && test -r $home/lib/profile) . $home/lib/profile
|
||||||
if not{
|
if(~ $#* 0){
|
||||||
status=''
|
. /dev/stdin
|
||||||
. $*
|
exit $status
|
||||||
}
|
}
|
||||||
|
status=''
|
||||||
|
. $*
|
||||||
exit $status
|
exit $status
|
||||||
|
|
Loading…
Reference in a new issue