1 #!/bin/bash
2 #
3 # POSIX rule about special builtins pointed at:
4 #
5 # https://www.reddit.com/r/oilshell/comments/5ykpi3/oildev_is_alive/
6
7 ### Rule about special builtins -- : is special
8 test -n "$BASH_VERSION" && set -o posix # Bash only implements it behind the posix option
9 foo=bar :
10 echo $foo
11 # stdout: bar
12
13 ### Rule about special builtins -- true is not special
14 foo=bar true
15 echo $foo
16 # stdout: