GNU ed won't accept redirected input

  • This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
Dec 17, 2009
15
0
Germany
#1
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?