The actual arguments that the ed executable sees in its "main(argc,argv)" 
argument list depend on how you shell parses the command you typed at your 
prompt and then composes the resulting exec system call.

I'm not seeing the same problems you're seeing ... my shell happens to parse 
these command strings as you (and I) expect.

Perhaps the following will help dissect this issue.  What does the following 
output, when typed as a command at your shell's prompt:

for i in ed -p '' foo.txt; do echo A"${i}"B; done

(Were the first '' is a pair of single quotes, and the other two " are each a 
double quote.)

I get this output:

AedB
A-pB
AB
Afoo.txtB

-- 
Paul Jackson
  jack...@fastmail.fm

Reply via email to