Skip to main content
added 6 characters in body
Source Link
user88036
user88036

Given a command like this:

command <inputfile> <outputfile>

And then called like this:

command FileA > FileC FileB

It takes AA and BB as input and outputs to C. ButC, but how can it parse the third argument, since the output redirection is between the arguments?

Given a command like this:

command <inputfile> <outputfile>

And then called like this:

command FileA > FileC FileB

It takes A and B as input and outputs to C. But how can it parse the third argument, since the output redirection is between the arguments?

Given a command like this:

command <inputfile> <outputfile>

And then called like this:

command FileA > FileC FileB

It takes A and B as input and outputs to C, but how can it parse the third argument, since the output redirection is between the arguments?

Source Link

How does redirection work between arguments

Given a command like this:

command <inputfile> <outputfile>

And then called like this:

command FileA > FileC FileB

It takes A and B as input and outputs to C. But how can it parse the third argument, since the output redirection is between the arguments?