On Thu, Mar 19, 2015 at 10:50 AM, Brad Beyenhof <bbeyen...@icloud.com>
wrote:

> For that matter, is there a significant difference between
> <file $COMMAND $ARGS
> and
> $COMMAND $ARGS <file
> ?
>
> I honestly didn't know about & hadn't tried the former until just now.
>

Only if there are interacting redirections (e.g. "2>&1 >foo" and ">foo
2>&1" do not do the same thing: the former puts the command's stderr in the
shell's stdout and then the command's stdout in "foo", whereas the latter
puts both the command's stdout and stderr in "foo"; redirections happen in
the order they are specified). All redirections take place before starting
the command (and, if you think about it, must do so) so there is otherwise
no visible difference.

-- 
brandon s allbery kf8nh                               sine nomine associates
allber...@gmail.com                                  ballb...@sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net
_______________________________________________
Tech mailing list
Tech@lists.lopsa.org
https://lists.lopsa.org/cgi-bin/mailman/listinfo/tech
This list provided by the League of Professional System Administrators
 http://lopsa.org/

Reply via email to