echo \
multi- \
line
... echo
multi-
line
| cat
| sort
;
echo \{ \}
= 42 if true else 41
var a = [3, 4, 5]
var mydict = {}
if ('key' not in mydict) {
echo nope
}
if (true and false or null) {
echo nope
}
= {} is {}
= 3.14
= 3.14e-5
= /d+ '.' [a-z A-Z 0-9 '-']+/
= /<capture d d as month> '-' <capture d d as day>/
echo stdout > /dev/null
echo stderr 2> /dev/null
redir {out}> /tmp/out.txt {
for i in 55 66 77 {
echo $i >& $out
}
}
tac /tmp/out.txt
echo *.py
echo {a,b}@example.com
echo {0..4}-{a,b}
echo ~/src
echo ~root/src
pushd /tmp
popd
echo u'newline \n backslash \\ double \" single \' tab \t other'
echo b'byte \yff what'
echo b'mu = \u{3bc}'
echo '''
mu = \u{3bc}
'''
echo u'''
mu = \u{3bc}
'''
var b = b'''
mu = \u{3bc}
'''
FOO=bar env -i echo
FOO=bar SPAM_EGGS='baz' env -i echo
var argv_array = :| echo hi |
@argv_array bye
echo @argv_array bye