Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!AUREL.CALTECH.EDU!bfox From: bfox@AUREL.CALTECH.EDU (Brian Fox) Newsgroups: gnu.bash.bug Subject: Bug in bash 1.01 Message-ID: <8907051921.AA13427@aurel.caltech.edu> Date: 5 Jul 89 19:21:53 GMT References: <8907041812.AA01639@ccvi.ccv.fr> Sender: daemon@tut.cis.ohio-state.edu Reply-To: bfox@aurel.caltech.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 50 Date: Tue, 4 Jul 89 20:12:03 +0200 From: jdf@ccvi.ccv.fr (Jean-Daniel Fekete) The following make bash barf in free. function zap() { if [ $# -gt 0 ] then for proc do for pid in $( ps -ax | grep $proc | grep -v grep | awk '{print $1}' ) do kill -KILL $pid &> /dev/null done done unset proc else echo "usage: zap ..." fi } function hup() { if [ $# -gt 0 ] then for proc do for pid in $( ps -ax | grep $1 | grep -v grep | awk '{print $1}' ) do kill -HUP $pid &> /dev/null done done unset proc else echo "usage: hup ..." fi } unset zap hup Thanks. I have already fixed this bug. The function copy_redirection (), in the file copy_cmd.c did not copy the filename part of an `err_and_out' redirection. Just add it to the list in the case statement. Brian