Re: should not specify default group for users
Jim Knoble wrote:
>
> På 2000-Mar-23 klokka 02:33:18 -0500 skrivet tytso@mit.edu:
>
> : [...] If they need to use id's between 100 and 999 they should be able
> : to force the user add program, but they should be asked the "are you
> : sure" question.
>
> A pedantic detail: No interactive questions. A '-f' or '--force' flag
> or similar is fine, but system utilities should not query for input
> unless the user requests it. And querying only sometimes is even worse
> than always querying, since there's no good way for a shell script to
> know when the utility expects user input and when it doesn't, causing
> some things to break or hang mysteriously.
>
... unless you have an -i --interactive flag, like cp or rm. However, a
number of utilities have -b --batch flags, which cause them to behave
nicely in scripts. I think this is an acceptable solution, since
putting a flag in a script is less onerous than having to type it in
when using interactively (or alias it.)
-hpa
Reply to: