Article View: gnu.bash.bug
Article #208Bug in bash 1.01
From: Jean-Daniel Fekete
Date: Tue, 04 Jul 1989 18:12
Date: Tue, 04 Jul 1989 18:12
39 lines
986 bytes
986 bytes
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
Technical Details
Message-ID:
<8907041812.AA01639@ccvi.ccv.fr>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!ccvi.ccv.fr!jdfShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!ccvi.ccv.fr!jdf From: jdf@ccvi.ccv.fr (Jean-Daniel Fekete) Newsgroups: gnu.bash.bug Subject: Bug in bash 1.01 Message-ID: <8907041812.AA01639@ccvi.ccv.fr> Date: 4 Jul 89 18:12:03 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 39