Arguments after shell redirection not before?

Mike Frysinger vapier@gentoo.org
Mon May 6 15:57:00 GMT 2013


On Sunday 05 May 2013 13:01:10 Carlos O'Donell wrote:
> We have scripts in intl/ for testing that use:
> 
> ${objpfx}tst-gettext > ${objpfx}tst-gettext.out ${objpfx}domaindir
> 
> e.g. tst-gettext.sh
> 
> Which has argument *after* redirection.
> 
> Why? I find this style uncommon and prone to confusion.
> 
> I like the redirection to be the last thing in the list.
> 
> When is the above useful?

i tend to prefer to put the redirections last unless it looks better (it 
usually doesn't), but i can handle either ;)
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20130506/27bc07fc/attachment.sig>


More information about the Libc-alpha mailing list