[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-ed] ed -p flag

From: Antonio Diaz Diaz
Subject: Re: [Bug-ed] ed -p flag
Date: Thu, 13 Oct 2011 16:36:29 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.7.11) Gecko/20050905

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.


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?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]