The problems I've seen so far:
1) The creation of the FILESYSTEMS variable doesn't seem to be 'sticking'. The variable is getting properly created, but it doesn't seem to be visible outside the routine that creates it:
# set -x # cat /proc/filesystems | > while read FS ; do > case $FS in > nodev*) continue ;; > esac > FILESYSTEMS="$FILESYSTEMS $FS" > done ; echo $FILESYSTEMS
<snip>
This is a problem with nearly all ksh and sh variants. It goes something like this:
for .... ; do VAR=xxxx done ; echo $VAR
and VAR does not retain its value.
(Surprise! I'm still around....)
Glad to here it!
David Douthitt Oxygen Developer and Chief Procrastinator Extrodinaire
Reading up on this, it's the pipe that's doing me in. It causes the while to be run in a seperate process. There are alternate forms that get around this problem, ie:
while ... ... done << EOF $(cat /proc/filesystems) EOF
-- Charles Steinkuehler [EMAIL PROTECTED]
------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________ leaf-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-devel