[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#465012: Patch for bashism



tags 465012 patch
thanks

Although it's merely short, here is a patch for our bashism bug. Please
fix it yourself or forward it to upstream since this is a release goal
for lenny.

Cheers,
Hauke


--- newbiedoc.org	2008-04-29 10:44:32.000000000 +0200
+++ newbiedoc	2008-04-29 10:45:15.000000000 +0200
@@ -5,7 +5,7 @@
 
 # if BROWSER is not set
 # (if BROWSER is set, just use it --- the user knows what s/he is doing)
-if ! (which $BROWSER &> /dev/null); then
+if ! (which $BROWSER > /dev/null 2>&1); then
   if [ ! "$DISPLAY" = "" ]; then
     # X Window System
     if [ -x /usr/bin/sensible-browser ]; then
@@ -29,7 +29,7 @@
       # fall off
     fi
   fi
-  if ! (which $BROWSER &> /dev/null); then
+  if ! (which $BROWSER > /dev/null 2>&1); then
     # console
     if [ -x /usr/bin/sensible-browser ]; then
       BROWSER=/usr/bin/sensible-browser

Attachment: signature.asc
Description: Digital signature


Reply to: