1
0
mirror of https://github.com/go-task/task.git synced 2025-03-07 15:10:52 +02:00

38 lines
315 B
Bash
Raw Normal View History

2017-04-24 09:47:10 -03: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 11:17:49 -03:00
a) A ;;
b)
B
;;
2017-04-24 09:47:10 -03:00
esac
foo | bar
2017-04-30 19:50:22 -03:00
foo &&
$(bar) &&
(more)
2017-04-24 09:47:10 -03:00
foo 2>&1
foo <<EOF
bar
EOF
$((3 + 4))