bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: A bug in Bourne - horrors!!


From: Paul Eggert
Subject: Re: A bug in Bourne - horrors!!
Date: Mon, 09 May 2005 13:21:03 -0700
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.4 (gnu/linux)

Jim Easton <address@hidden> writes:

> I am sorry, after >22 years of writing shell scripts I should get it
> but I don't understand your suggestion of $(...).

Instead of writing this:

LIST=`echo "$DATA" | sed '/\\$/s/^/AA/'`

write this:

LIST=$(echo "$DATA" | sed '/\\$/s/^/AA/')

This latter form is not portable to the original Unix /bin/sh, but
it's been required by POSIX for over a decade.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]