Files
go-task/vendor/mvdan.cc/sh/syntax/canonical.sh
Andrey Nering cb95200be3 go mod vendor
2018-10-27 17:02:24 -03:00

38 lines
317 B
Bash

#!/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))