On Sat, 17 Aug 2002, Erik Curiel wrote:

> Brandon is right about the reason, but ever since Bash 2.0 there's been a
> more elegant (and preferred) way to populuate a variable with a value
> resulting from the execution of a command.  A dollar sign immediately
> prepended to a command-line enclosed by parentheses acts as a variable
> whose value is the final result of the command-line.  So in this example,
> the way to do it might be:

        He wasn't writing a bash script.  He was writing a shell
        script (#!/bin/sh).  Assuming that /bin/sh -> /usr/bin/bash
        is only valid in Linux, which means your script will break
        in everything else.

> Back-ticks are now deprecated in Bash.

        Much to the annoyance of thousands of shell script writers
        everywhere.


_____________________________________________b r a n d o n  h a r r i s___
[EMAIL PROTECTED]                                          www.gaijin.com


_______________________________________________
Bits mailing list
[EMAIL PROTECTED]
http://www.sugoi.org/mailman/listinfo/bits

Reply via email to