The dot in ... --- ...

Chris Gerhard's Weblog

« zfs_versions of a... | Main | Good Morning Build... »

20070608 Friday June 08, 2007

korn shell programming advice from David Korn

There has been some great stuff about shell scripts on the shell-discuss OpenSolaris list I'm lurking on (my cron changes were discussed there so I got added and have not removed myself).

Starting with the this previously internal advice. I particularly like the c-shell advice, even if the words “for any scripts” seem to be superfluous.

Then last night David Korn posted some advice for shell scripts.

I did not even know you could do

$ > foo date

Now I do and also know it is to be avoided.


( Jun 08 2007, 08:43:02 AM BST ) Permalink Trackback

   
Comments:

Hi Chris, it's sam (gam :-) just saw this entry, agree with the c shell comment :-) there's an article about why "csh programming considered harmful". google found it for me: http://www.faqs.org/faqs/unix-faq/shell/csh-whynot/ should be interesting reading .. especially the constructs for closing/opening file descriptors in [k]sh ... although tcl would have been nicer :-) cheers! sam

Posted by sang-suan gam on July 04, 2007 at 10:01 AM BST #

Post a Comment:

Comments are closed for this entry.

Valid HTML! Valid CSS!

Except where otherwise noted, this site is
licensed under a Creative Commons License 2.0

This is a personal weblog, I do not speak for my employer.