Files
luet/vendor/mvdan.cc/sh/v3/syntax/canonical.sh

38 lines
317 B
Bash
Raw Normal View History

2019-10-29 17:37:49 +01:00
#!/bin/bash
# separate comment
! foo bar >a &
foo() { bar; }
{
var1="some long value" # var1 comment
var2=short # var2 comment
}
if foo; then bar; fi
for foo in a b c; do
bar
done
case $foo in
a) A ;;
b)
B
;;
esac
foo | bar
foo &&
$(bar) &&
(more)
foo 2>&1
foo <<-EOF
bar
EOF
$((3 + 4))