Browse Source
Setting and unsetting the IFS variable is tricky. To be on the safe side we should always reset the IFS variable to its original value after parsing. Signed-off-by: Hannes Reinecke <hare@suse.de>master


3 changed files with 12 additions and 2 deletions
@ -1,8 +1,10 @@
@@ -1,8 +1,10 @@
|
||||
#!/bin/sh |
||||
for dasd_arg in $(getargs rd.dasd= -d rd_DASD= DASD=); do |
||||
( |
||||
local OLDIFS="$IFS" |
||||
IFS="," |
||||
set -- $dasd_arg |
||||
IFS="$OLDIFS" |
||||
echo "$@" | normalize_dasd_arg >> /etc/dasd.conf |
||||
) |
||||
done |
||||
|
Loading…
Reference in new issue