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

    Joined:
    Dec 17, 2009
    Messages:
    15
    Likes Received:
    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?
     

Share This Page