1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

GNU ed won't accept redirected input

Discussion in 'Support' started by Arminius, May 28, 2010.

  1. Arminius

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

    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?

Share This Page