diff options
author | Jim Meyering <jim@meyering.net> | 2000-11-11 10:21:42 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2000-11-11 10:21:42 +0000 |
commit | 81655756c2d83769174f29bb8a1cb730ff704abd (patch) | |
tree | 9a0bac7244c5a68f560a879f4071016ec050d927 /tests/mkdir/perm | |
parent | 2cd2cfc95c4e1b938d680c395f78bb4eab9e5639 (diff) | |
download | coreutils-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/mkdir/perm')
-rwxr-xr-x | tests/mkdir/perm | 21 |
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 |