Linux: Set command

$ set echo "hello world"
$ set | grep hello
'*'=( echo 'hello world' )
@=( echo 'hello world' )
argv=( echo 'hello world' )
$ echo $*
echo hello world
$ echo $@
echo hello world
$ echo $1
echo
$ echo $2
hello world
$ set --
'*'=(  )
@=(  )
argv=(  )
$ command-that-does-not-exist
zsh: command not found: command-that-does-not-exist
$ 
$ set -e
$ command-that-does-not-exist
zsh: command not found: command-that-does-not-exist

[process exited with code 127 (0x0000007f)]

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *