summaryrefslogtreecommitdiff
path: root/Master/tlpkg/dev/dev.sys_redir.README
blob: 860d859a458bdf7fe6e0a7a00333787da697a5b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Replacement for system('foo <bar >bar') without using a shell.
Would solve quoting problems once and for all.

includes a test routine with a few tests, lacking tests for stderr redirection
right now

needs to be tested on windows too!

Ideas for running tests (Unix):

# echo abc > Cin; echo 123 >> Cin
perl redir.pl # interactive, just keep typing 'y' <ENTER>
yes | perl redir.pl
yes | perl redir.pl >Pout 2>Perr
yes | perl redir.pl >Pcomb 2>&1