Shell script termination with exit function in backquotes

Andres Perera andres.p at zoho.com
Mon Mar 14 07:16:51 UTC 2011


On Sun, Mar 13, 2011 at 9:49 PM, Devin Teske <dteske at vicor.com> wrote:
> If you make the changes that I've suggested, you'll have consistent execution. The reason you're having inconsistent behavior is because Linux has /bin/sh symbolically linked to /bin/bash while FreeBSD has a more traditional shell (we'll call it bourne shell "plus").

that is misleading because command substitutions have traditionally
invoked subshells, and freebsd sh(1)/ash is an exception, not the norm

in this case, ksh and bash deviates are clearly closer to standard
bourne behaviour


More information about the freebsd-questions mailing list