AIX 4.3.3 gives a different diagnostic.

Recognize it, too.  Reported by Ralf Wildenhues, in
http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00192.html
This commit is contained in:
Jim Meyering committed 2006-05-28 09:32:54 +00:00
1 parent 59985f42e6
commit 8542aa6622
1 file changed
+6
+6
View File
@@ -37,6 +37,12 @@ cat <<\EOF > exp || fail=1
rm: cannot remove `rel': Permission denied
EOF
# AIX 4.3.3 fails with a different diagnostic.
# Transform their diagnostic
# ...: The file access permissions do not allow the specified action.
# to the expected one:
sed 's/: The file access permissions.*/: Permission denied/'<out>o1;mv o1 out
cmp out exp || fail=1
test $fail = 1 && diff out exp 2> /dev/null