GNU style getopt problem
Christoph Moench-Tegeder
cmt at burggraben.net
Mon Feb 4 17:49:04 UTC 2013
## Beeblebrox (zaphod at berentweb.com):
> Interesting - when I switch to bash and try it:
> getopt --help 2> &1 | grep long
> bash: syntax error near unexpected token `&'
Ah, bash...
> while this one gives no message - I guess I'll try a test with this.
> $ getopt --help 2>&1 | grep long
After I re-checked this: only "2>&1" is correct and (hopefully)
portable, everything else "may or may not work", that is, fail
on every other different platform/shell.
Regards,
Christoph
--
Spare Space
More information about the freebsd-ports
mailing list