mirror of
https://https.git.savannah.gnu.org/git/coreutils.git
synced 2026-01-26 07:27:53 +00:00
tests: chgrp: allow a numeric user id to be printed
* tests/chgrp/from.sh: If 'id' cannot find a user name for user id 1, expect the user id to be printed in the message of 'chgrp'. Reported by Bruno Haible.
This commit is contained in:
parent
ebb856730c
commit
c3894e0723
@ -30,7 +30,7 @@ set _ $(ls -n f); shift; test ":$4" = ':1' || fail=1
|
||||
# Make sure the correct diagnostic is output
|
||||
# Note we output a name even though an id was specified.
|
||||
chgrp -v --from=42 43 f > out || fail=1
|
||||
printf "group of 'f' retained as $(id -nu 1)\n" > exp
|
||||
printf "group of 'f' retained as $(id -nu 1 || printf 1)\n" > exp
|
||||
compare exp out || fail=1
|
||||
|
||||
chgrp --from=:1 010 f || fail=1
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user