Article View: gnu.bash.bug
Article #1077Re: Strange behavior with functions
From: Bill Trost
Date: Wed, 20 Dec 1989 21:26
Date: Wed, 20 Dec 1989 21:26
22 lines
943 bytes
943 bytes
#!/local/bin/bash
# Yes, all through this I should be using "$@", but that's for version
# 1.05 (I have 1.04)
rv () {
[ $# = 0 ] && {
# Call this block A
local line=empty\?\?\?
read line || return
echo Read: "$line" 2>&1
rv
echo "$line"
# end A
return
}
...
By the way, someone should probably add this to the Official
Collection of Shell Scripts Which Severely Bash on Bash.
Gads, I haven't even *tried* to reverse /etc/termcap --- yet.
Technical Details
Message-ID:
<13778@reed.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!wuarchive!brutus.cs.uiuc.edu!uakari.primate.wisc.edu!caesar.cs.montana.edu!ogicse!reed!trostReferences:
<13771@reed.UUCP> <8912201649.AA08712@sbphy.Ucsb.EDU>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!wuarchive!brutus.cs.uiuc.edu!uakari.primate.wisc.edu!caesar.cs.montana.edu!ogicse!reed!trost From: trost@reed.bitnet (Bill Trost) Newsgroups: gnu.bash.bug Subject: Re: Strange behavior with functions Message-ID: <13778@reed.UUCP> Date: 20 Dec 89 21:26:47 GMT References: <13771@reed.UUCP> <8912201649.AA08712@sbphy.Ucsb.EDU> Sender: news@reed.UUCP Distribution: gnu Lines: 22