Amanda-Users

Re: 2.6.2alpha question.

2009-01-29 15:34:59
Subject: Re: 2.6.2alpha question.
From: Jon LaBadie <jon AT jgcomp DOT com>
To: amanda-users AT amanda DOT org
Date: Thu, 29 Jan 2009 11:38:48 -0500
On Thu, Jan 29, 2009 at 08:24:34AM -0500, Benjamin Lewis wrote:
> 
> I should note that there's also a bug in the autogen script itself:
> 
> die() {
>     echo x"${@}" | sed s/^x//
>     exit 1
> }
> 
> Maybe that works on Linux where /bin/sh and /bin/bash are identical but
> on Solaris you'll need something like
> 
> die() {
>     echo x"${@}" | sed 's/^x//'
>     exit 1
> }

By way of explanation for those not old enough to have been around
when it was the case (unlike myself), early unix shells recognized
two symbols for piping, the vertical bar (|) and the caret (^).

This "feature" was carried through several unix shells, notably,
the Thompson, Mashey, and Bourne shells.  As Solaris' /bin/sh is
the Bourne shell, the caret in the first version needs quoting.

jl
-- 
Jon H. LaBadie                  jon AT jgcomp DOT com
 JG Computing
 12027 Creekbend Drive          (703) 787-0884
 Reston, VA  20194              (703) 787-0922 (fax)

<Prev in Thread] Current Thread [Next in Thread>