[Bug 1297898] Re: Unbound variables can't be checked with -z anymore

Launchpad Bug Tracker 1297898 at bugs.launchpad.net
Thu Dec 10 04:17:18 UTC 2020


[Expired for bash (Ubuntu) because there has been no activity for 60
days.]

** Changed in: bash (Ubuntu)
       Status: Incomplete => Expired

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to bash in Ubuntu.
https://bugs.launchpad.net/bugs/1297898

Title:
  Unbound variables can't be checked with -z anymore

Status in bash package in Ubuntu:
  Expired

Bug description:
  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"

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bash/+bug/1297898/+subscriptions



More information about the foundations-bugs mailing list