Public bug reported: I'm using Ubuntu 14.04 dev with bash 4.3-4ubuntu1 and if bash is started with the -u parameter any check of unbound variables will raise an unbound exception. Here is a testcase:
#!/bin/bash -u if [ -z $SOME_UNINITIALIZED_VARIABLE ] then echo Variable uninitialized fi Executing this script will result in this output: "./test.sh: line 3: SOME_UNINITIALIZED_VARIABLE: unbound variable" ** Affects: bash (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1297898 Title: Unbound variables can't be checked with -z anymore To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/bash/+bug/1297898/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs