shell script question

Kevin D. Clark kclark at CetaceanNetworks.com
Mon Jan 20 13:14:18 EST 2003


bscott at ntisys.com writes:

>   It is essential to understand that shell parsing is built upon splitting a
> command line up into "words", separated by spaces.

Since we're nit-picking, this isn't precisely true.

The shell splits command lines into arguments using the characters in
$IFS as delimiters.  Normally IFS is set to space, tab, and newline,
but this isn't always true.

(now you know why "secure" shell scripts always set IFS to a known
good value...)

Regards,

--kevin
-- 
Kevin D. Clark / Cetacean Networks / Portsmouth, N.H. (USA)
cetaceannetworks.com!kclark (GnuPG ID: B280F24E)
alumni.unh.edu!kdc




More information about the gnhlug-discuss mailing list