Path: 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 #!/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.