Hello Folks,

        I keep getting bit by this old bug:

bash - /sw/bin/init.sh fails to set undefined variables - ID: 1511981

As reported there, a number of variables in /sw/bin/init.sh are checked via

if [ -n "$VAR" ] ; then . . .

which fails when the user has "set -u", "set -o nounset", or "shopt -o -s 
nounset"

costabel wrote "I am closing this now; it doesn't look like anyone wants to 
change anything there." when he closed it marked "Wont fix"

Please reconsider.

The patch supplied in that bug report works (but I haven't tested under 
traditional sh).  

Tthis patch is an alternative, as suggested in the comments.  It saves the 
nounset option value, clears it for the duration of init.sh, then restores the 
old value.

Thanks,
Peter
____________
Peter Barnes
p...@mac.com



Attachment: init.sh-2.patch
Description: Binary data

------------------------------------------------------------------------------
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
Fink-users mailing list
Fink-users@lists.sourceforge.net
List archive:
http://news.gmane.org/gmane.os.macosx.fink.user
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to