* Support for dash

* chage usage is sent to stdout instead of stderr
This commit is contained in:
nekral-guest
2010-08-26 19:39:01 +00:00
parent 6a94f65dc6
commit 79bd47d726
+5 -2
View File
@@ -39,7 +39,10 @@ save
# restore the files on exit
trap 'if [ "$?" != "0" ]; then echo "FAIL"; fi; restore' 0
cp data/{passwd,group,shadow,gshadow} /etc/
for i in passwd group shadow gshadow
do
cp data/$i /etc
done
echo -n "testing option -l"
chage -l myuser1 > tmp/out
@@ -195,7 +198,7 @@ chage -l myuser7 > tmp/out
diff -au data/chage7b tmp/out
echo "usage"
chage -h 2> tmp/out || {
chage -h > tmp/out || {
if [ "$?" != "2" ]; then false; fi
}
diff -au data/usage tmp/out