The Windows version of GNU ed refuses to work with TCC's redirected input, no matter what method is used to provide it:
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?
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?