Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

GNU ed won't accept redirected input

Dec
39
0
The Windows version of GNU ed refuses to work with TCC's redirected input, no matter what method is used to provide it:

Code:
ed.exe -v d2xl.txt <<<,g/delta/l 

type scripted_commands.lst | ed.exe -v d2xl.txt

ed.exe -v d2xl.txt  < scripted_commands.lst

all result in the error message: script, line 1: Invalid command suffix

The text file is loaded correctly.

scripted_commands.lst contains just this line: ,g/delta/l

Entered via ed's prompt, the same command works fine, however.

I am not sure where the problem lies - AFAIK, TCC does not add any characters to redirects?
 

Similar threads

Back
Top