Path: 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 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