1
0
mirror of https://github.com/go-task/task.git synced 2024-12-16 10:59:23 +02:00
task/vendor/github.com/mvdan/sh/syntax/canonical.sh

38 lines
315 B
Bash
Raw Normal View History

2017-04-24 14:47:10 +02: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
2017-05-27 16:17:49 +02:00
a) A ;;
b)
B
;;
2017-04-24 14:47:10 +02:00
esac
foo | bar
2017-05-01 00:50:22 +02:00
foo &&
$(bar) &&
(more)
2017-04-24 14:47:10 +02:00
foo 2>&1
foo <<EOF
bar
EOF
$((3 + 4))