On Fri, Jun 20, 2008 at 12:04 PM, Douglas Royds
<[EMAIL PROTECTED]> wrote:
> I like the style, used by you:
>   variable=$(executable args)
> Better than my:
>   variable=`executable args`

You're using the old Bourne shell "backticks", which don't nest. I'm
using Bourne Again shell's command substitution, which is easier on
the eyes, and nests easily. bash will nest backticks, but you have to
quote them, and it gets messy ...

Typically old-style unix scripts use only Bourne shell code, because
/bin/sh was statically linked, fast, and always available, whereas
bash was an optional. These days /bin/sh is sometimes just a link to
bash ... on Hardy it's a link to dash, the lightweight Debian shell,
and this understands both styles fully.

-jim

Reply via email to