When using a netcat bind shell, it does not output the p, l, and n commands until ed is exited. Everything else outputs correctly as far as I can see.
On Thu, Oct 13, 2011 at 10:36 AM, Antonio Diaz Diaz <[email protected]> wrote: > 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 > [email protected] > https://lists.gnu.org/mailman/listinfo/bug-ed > -- -----BEGIN PGP PUBLIC KEY BLOCK----- Version: GnuPG v2.0.14 (GNU/Linux) mQENBEyZQwwBCAC0LOoLCQHzibwRVbAq0G/61lfwppAYdPpiY27DZjJ1KIdB5vUn UDtYmqJ3jwt0gI+nT8/vsZIyUDsxDqkkFZgy4pJ4M3kB2yyWT8ky0AOI+2lFovF8 C9I7VjQqVf36k1uDpaqqqFU1woYJ9JvaPYwyHrkvr9YnfOwBG6qYa+8whnasZ4yc ODvawtpNMMmy9bUAnwO71Gi6XBIndhL4cqjdtDNpWK5PUlPoXSPc4j0hsizBpF77 SVcGiLPLtXdJfJWBrmpVgczgd7mjYC1e/Kmm7lmqvWHBF40kankr3Xh1VL6pKcgH nqRtU+cuq62/NxY5tD7jvPafY2ECTfMupm93ABEBAAG0LVJpY2hhcmQgSmlhbiBZ aW5nIEh1bSA8aHVtLnJpY2hhcmRAZ21haWwuY29tPokBOAQT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IL9NZod5+vhKb36dFd1PHoyT+qax/dJYwD /+4ygcNDl3CVQnuPppG09Bh+VISruQ/pG/mc/Evr7UqGWf8zQdZwOa1yzjQ= =VOhG -----END PGP PUBLIC KEY BLOCK----- _______________________________________________ bug-ed mailing list [email protected] https://lists.gnu.org/mailman/listinfo/bug-ed
