Path: utzoo!yunexus!telly!philmtl!uunet!ginosko!gem.mps.ohio-state.edu!tut.cis.ohio-state.edu!attila.esa.oz.au!robi From: robi@attila.esa.oz.au (RoBeRt KaRp) Newsgroups: gnu.bash.bug Subject: exiting from functions Message-ID: <8909280811.279@munnari.oz.au> Date: 28 Sep 89 05:52:46 GMT Article-I.D.: munnari.8909280811.279 Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 32 OK, so it's not a bug, but I see a handy feature to be added later here. If I have a function: foo() { if [ -d $whatever ] then cd $whatever else exit } This will exit from the shell, not the function only. How can I exit from just the function. Also, using bash-1.03 with the vi diffs that came accross the other week, on an xterm, I have problems with the command line editing. 1) it doesn't know where the beginning of the line is. 2) I have CTRL chars embedded in my PS1 to reverse video it on the xterm, & this confuses bash. - Robi -- Robert Karp :- robi@attila.esa.oz.AU -: // ///// {uunet,mcvax,ukc,nttlab}!munnari!attila.esa.oz!robi // ///// Snail: 15-17 Paraween Street,Cremorne, NSW 2090 \\ XX\XXX// Tel : (+61) (02) 953 9488 \X/\XXXX/