Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
|
|
@ -0,0 +1,12 @@
|
|||
alias a eval \''echo "Called a \!:1"; "\!:1"'\'
|
||||
alias b eval \''echo "Called b \!:1"; "\!:1"'\'
|
||||
|
||||
foreach i (false true)
|
||||
foreach j (false true)
|
||||
a $i && b $j && set x=true || set x=false
|
||||
echo " $i && $j is $x"
|
||||
|
||||
a $i || b $j && set x=true || set x=false
|
||||
echo " $i || $j is $x"
|
||||
end
|
||||
end
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
# Succeeds, only prints "ok".
|
||||
if ( 1 || { echo This command never runs. } ) echo ok
|
||||
|
||||
# Fails, aborts shell with "bad: Undefined variable".
|
||||
if ( 1 || $bad ) echo ok
|
||||
|
||||
# Prints "error", then "ok".
|
||||
if ( 1 || `echo error >/dev/stderr` ) echo ok
|
||||
Loading…
Add table
Add a link
Reference in a new issue