[Pkg-sysvinit-devel] Bug#339955: sysv-rc: /etc/init.d/*.sh should
be sourced in runlevel S
Thomas Hood
jdthood at yahoo.co.uk
Mon Nov 21 08:34:11 UTC 2005
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
jdthood at turmeric:~/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
More information about the Pkg-sysvinit-devel
mailing list