Hello Richard, Richard Hum wrote:
For some reason, the -p flag for ed requires a non-empty arguement. Is this really necessary?
Of course it isn't really necessary, but it is documented[1][2][3] this way and so I have maintained it this way.
[1]http://www.gnu.org/software/ed/manual/ed_manual.html#Invoking-Ed [2]http://pubs.opengroup.org/onlinepubs/9699919799/utilities/ed.html [3]http://linux.die.net/man/1/ed
I edited carg_parser.c, commented out lines 194-196 and it still works perfectly.
You did what? If all you want is to make the argument to -p optional, you should have changed line 148 of main.c to
{ 'p', "prompt", ap_maybe },
I only did this because without the -p flag, ed does not output correctly when using a netcat bind shell. I believe this has something to do with how ed handles output. I don't know exactly why though.
What do you mean by "ed does not output correctly"? Did you try to toggle the prompt with the 'P' command? Regards, Antonio. _______________________________________________ bug-ed mailing list bug-ed@gnu.org https://lists.gnu.org/mailman/listinfo/bug-ed