Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Mar 2011 02:46:50 -0430
From:      Andres Perera <andres.p@zoho.com>
To:        Devin Teske <dteske@vicor.com>
Cc:        Maxim Khitrov <max@mxcrypt.com>, FreeBSD <freebsd-questions@freebsd.org>
Subject:   Re: Shell script termination with exit function in backquotes
Message-ID:  <AANLkTi=CXLFUBhnY1LuhkeUiGHHGZ43yd%2BMYE9L50_O4@mail.gmail.com>
In-Reply-To: <759A467E-407A-4DB8-9756-08011B5405F0@vicor.com>
References:  <AANLkTi=-CFmxRicGcosvzhBbM3DMjbWwQNirMrJ1_KP=@mail.gmail.com> <759A467E-407A-4DB8-9756-08011B5405F0@vicor.com>

index | next in thread | previous in thread | raw e-mail

On Sun, Mar 13, 2011 at 9:49 PM, Devin Teske <dteske@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


help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTi=CXLFUBhnY1LuhkeUiGHHGZ43yd%2BMYE9L50_O4>