Originally posted by mudskipper
View Post

~$ cat doh #! /bin/bash set -u rm "${foo}/${bar}" ~$ ./doh ./doh: line 3: foo: unbound variable ~$ cat duh #! /bin/bash rm "${foo:?}/${bar:?}" ~$ ./duh ./duh: line 2: foo: parameter null or not set
Leave a comment: