Article View: gnu.bash.bug
Article #213Bug in bash 1.01
From: Brian Fox
Date: Wed, 05 Jul 1989 19:21
Date: Wed, 05 Jul 1989 19:21
50 lines
1437 bytes
1437 bytes
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 <cmd> ..."
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 <cmd> ..."
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
Technical Details
Message-ID:
<8907051921.AA13427@aurel.caltech.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!AUREL.CALTECH.EDU!bfoxReferences:
<8907041812.AA01639@ccvi.ccv.fr>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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