Tim Woodall - 2005-06-04

Logged In: YES
user_id=314846

And a similar patch against the 0.94-3 version (this is untested)

tim@feynman:~/netenv$ diff -uN netenv.orig netenv
--- netenv.orig 2005-06-04 17:30:29.000000000 +0100
+++ netenv 2005-06-04 17:34:10.000000000 +0100
@@ -252,7 +252,7 @@

choose_network_environment()
{
- ITEM_LIST="" # have to be reentrant as of 0.93 ...
+ ITEM_LIST=( ) # have to be reentrant as of 0.93 ...
# The ls gives a list of files starting with the current node name,
# excluding emacs backup files. The list starts with the default
# and ends with ask.
@@ -267,12 +267,12 @@
LENGTH=$((${#NODE}+1))
SUFFIX=${SUFFIX:$LENGTH}
fi
- ITEM_LIST=$ITEM_LIST" "$SUFFIX" "$netenv_id
+ ITEM_LIST=( "${ITEM_LIST[@]}" "$SUFFIX" "$netenv_id" )
done

- ITEM_LIST=$ITEM_LIST" "new" "Set_up_new_environment
+ ITEM_LIST=( "${ITEM_LIST[@]}" "new" "Set up new
environment" )
$DIALOG --menu "netenv $NETENV_VERSION on $NODE
running `uname -s` `uname -r`\n\nChoose your current
network-environment !" \
- 20 $COLS 12 $ITEM_LIST 2>$TMPFIL
+ 20 $COLS 12 "${ITEM_LIST[@]}" 2>$TMPFIL
} # End Function choose_network_environment

# End of function defining