Path: utzoo!utstat!helios.physics.utoronto.ca!jarvis.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!uflorida!usfvax2!tct!chip From: chip@tct.uucp (Chip Salzenberg) Newsgroups: news.software.b Subject: C News patch: Adapt to bash 1.04 Message-ID: <25CDCFA2.2ADA@tct.uucp> Date: 5 Feb 90 19:10:25 GMT Organization: ComDev/TCT, Sarasota, FL Lines: 23 The patch below adapts for a bug in Bash 1.04. Normally, shell variable expansion should take place before scanning for syntax elements such as "0<&1". Unfortunately, Bash 1.04 does things in the wrong order. This patch makes the "anne.jones" script work anyway. *** ../sh-orig/anne.jones Fri Jan 26 09:22:27 1990 --- anne.jones Mon Feb 5 13:52:50 1990 *************** *** 42,46 **** if test -t $fd; then case "$USER" in ! "") USER="`who am i <&$fd | sed -e 's/[ ].*//' -e '/!/s/^.*!//' `" ;; esac --- 42,46 ---- if test -t $fd; then case "$USER" in ! "") USER="`eval \"who am i <&$fd\" | sed -e 's/[ ].*//' -e '/!/s/^.*!//' `" ;; esac -- Chip Salzenberg at ComDev/TCT , "The Usenet, in a very real sense, does not exist."