On 6/6/05, Randall R Schulz <rschulz@sonic.net> wrote:
Markus,
On Monday 06 June 2005 13:05, Markus Natter wrote:
...
Hi Randall,
I've forgotten to put the else part in mail.. and to redirect the output to stderr.. It's not my day..
beeing able to give more than one ID at a time is much more than I thought of, but a million thanks,
The specs are yours to dictate, of course, but if you want to allow only one ID per invocation, then two other things arise:
1) Diagnose improper invocation with other than 1 argument. (Not that my example diagnosed invocation with zero arguments...) 2) Don't use "$@", which means individually quote each argument. Or, at least, be aware of the difference between "$*" and "$@".
Markus
Randall Schulz
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
Hello Randall, the "$@" was left from your first example by accident. I would use just a simple $1 and show a usage message if a $2 exists or the $1 doesn't. I'd like to keep things simple and readable for others. I never really got the difference of the discribed IFS states "unset" (unset IFS) and "null"(IFS=), which creates nearly the opposit results in the context of "$*".. sounds both like "undefined" to me, but I guess there is one I don't see at the moment.. but thanks for the advice, Markus