diff options
author | rsc <devnull@localhost> | 2004-04-21 05:49:52 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2004-04-21 05:49:52 +0000 |
commit | 7ac9b0e140bed0b34dc88674b3098caa5e193acf (patch) | |
tree | 10ca836d5da9f3b80662664bfb1c79516596ed75 /src/libmp/port/reduce | |
parent | 0d6c3c240826f43de3937071769a531821c5b4a7 (diff) | |
download | plan9port-7ac9b0e140bed0b34dc88674b3098caa5e193acf.tar.gz plan9port-7ac9b0e140bed0b34dc88674b3098caa5e193acf.tar.bz2 plan9port-7ac9b0e140bed0b34dc88674b3098caa5e193acf.zip |
make scripts work with more shells,
use current variable names.
Diffstat (limited to 'src/libmp/port/reduce')
-rw-r--r-- | src/libmp/port/reduce | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libmp/port/reduce b/src/libmp/port/reduce index b3980756..269f510a 100644 --- a/src/libmp/port/reduce +++ b/src/libmp/port/reduce @@ -3,6 +3,8 @@ shift objtype=$1 shift -reduce="("`ls -p ../$objtype/*.[cs] 2>/dev/null | sed 's/..$//' | sed 's/^.*\///' | tr '\012' '|' | sed 's/.$//'`")" +nl=' +' +reduce="("`ls -p ../$objtype/*.[cs] 2>/dev/null | sed 's/..$//' | sed 's/^.*\///' | tr "$nl" '|' | sed 's/.$//'`")" -echo $* | tr ' ' '\012' | egrep -v $reduce | tr \012 ' ' +echo $* | tr ' ' "$nl" | egrep -v $reduce | tr "$nl" ' ' |