Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Feb 2013 18:49:01 +0100
From:      Christoph Moench-Tegeder <cmt@burggraben.net>
To:        freebsd-ports@freebsd.org
Subject:   Re: GNU style getopt problem
Message-ID:  <20130204174900.GA93932@elch.exwg.net>
In-Reply-To: <1359729741318-5782951.post@n5.nabble.com>
References:  <1359717012393-5782884.post@n5.nabble.com> <20130201113618.GA2371@reindeer.exwg.net> <1359729522801-5782949.post@n5.nabble.com> <1359729741318-5782951.post@n5.nabble.com>

next in thread | previous in thread | raw e-mail | index | archive | help
## Beeblebrox (zaphod@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130204174900.GA93932>