summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-11-11 10:21:42 +0000
committerJim Meyering <jim@meyering.net>2000-11-11 10:21:42 +0000
commit81655756c2d83769174f29bb8a1cb730ff704abd (patch)
tree9a0bac7244c5a68f560a879f4071016ec050d927 /tests
parent2cd2cfc95c4e1b938d680c395f78bb4eab9e5639 (diff)
downloadcoreutils-81655756c2d83769174f29bb8a1cb730ff704abd.tar.xz
Don't put newline in IFS; that's not portable to
NetBSD's /bin/sh. Instead, filter newlines and leading/trailing blanks out of `tests' before the `set -'.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/mkdir/perm21
1 files changed, 10 insertions, 11 deletions
diff --git a/tests/mkdir/perm b/tests/mkdir/perm
index 787693ae2..5e963a51d 100755
--- a/tests/mkdir/perm
+++ b/tests/mkdir/perm
@@ -26,22 +26,21 @@ fail=0
# parent parent/dir
# umask -m option resulting perm resulting perm
tests='
- 000 : :drwxrwxrwx:drwxrwxrwx:
- 000 : -m 016 :drwxrwxrwx:d-----xrw-:
- 077 : :drwx------:drwx------:
- 050 : :drwx-w-rwx:drwx-w-rwx:
- 050 : -m 312 :drwx-w-rwx:d-wx--x-w-:
- 160 : :drwx--xrwx:drw---xrwx:
- 160 : -m 743 :drwx--xrwx:drwxr---wx:
- - : - :last:last:
+ 000 : : drwxrwxrwx : drwxrwxrwx :
+ 000 : -m 016 : drwxrwxrwx : d-----xrw- :
+ 077 : : drwx------ : drwx------ :
+ 050 : : drwx-w-rwx : drwx-w-rwx :
+ 050 : -m 312 : drwx-w-rwx : d-wx--x-w- :
+ 160 : : drwx--xrwx : drw---xrwx :
+ 160 : -m 743 : drwx--xrwx : drwxr---wx :
+ - : - : last : last :
'
for p in empty -p; do
test _$p = _empty && p=
old_IFS=$IFS
- IFS=':
-'
- set - $tests
+ IFS=':'
+ set - `echo "$tests"|tr -d '\012'|sed 's/^ *//;s/ *:/:/g;s/: */:/g'`
IFS=$old_IFS
while :; do