Andrew wrote: > I'll weigh in: > > ed -p '' should provide an empty prompt (no error). > ed -p'' should produce an error.
Yes - in other (and far more ... sorry) words - the prompt string requested by a -p argument must appear unambiguously (in particular, not to be confused with a specified filename) in the argv[] array of the resulting exec'd process. That implies that explicitly requesting a possibly empty prompt (perhaps as a possibly unset prompt shell variable string in a script) must be done with the "-p" and the specified prompt string ending up in separate members of the resulting argv[] array, because a null string is only discernable in argv[] when it is in its own zero length member. -- Paul Jackson jack...@fastmail.fm