Brendan O'Dea wrote:
> Note: I believe that "return" should work to exit from a script both
> when sourced and when executed but perhaps someone with a copy of POSIX
> could confirm.


Disconfirmation:

$ cat /tmp/s
#!/bin/bash
echo foo
return
echo bar
[EMAIL 
PROTECTED]:~/src/sysvinit/pkg-sysvinit/sysvinit/trunk/debian/initscripts/etc/init.d$
 /tmp/s
foo
/tmp/s: line 3: return: can only `return' from a function or sourced script
bar


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to