-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Content-Type: text/plain; charset=us-ascii


In a message dated: Fri, 19 Apr 2002 08:46:56 EDT
Benjamin Scott said:

>  While we are on the subject of shell programming, it is better to use this
>
>       let due=10#$(date +%j -d 04/01/2002)
>
>construct.  The $(...) syntax can be nested, and is easier to read than the
>`...` syntax.

What's with the 'let' keyword?  I've seen it before, but I find it's 
use so rare that I just realized I don't really understand it's 
proper use?  

Ben, since you're advocating the use of the $(...) construct, why 
didn't you take it further and provide an example such as:

        pll@tater:~> (due=10#$(date +%j -d 04/01/2002)) ; echo $due
        91
or:
        pll@tater:~> $(due=10#$(date +%j -d 04/01/2002)) ; echo $due
        91


Just curious.  My shell programming isn't what it could be, since 
perl almost always has an easier and more efficient way of doing 
things :)
- -- 

Seeya,
Paul


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Exmh version 2.2 06/23/2000 (debian 2.2-1)

iD8DBQE8wFWQuweSOVPxKO4RAl4zAJ9shFwZngHXfh8a5B0g0vHxVTnr1ACgyJR2
/pykflCjZTlMg+d9H1qrR0E=
=VFpB
-----END PGP SIGNATURE-----


*****************************************************************
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*****************************************************************

Reply via email to