/usr/src/gnu/usr.bin/lynx/src/LYEdit.c

calls  in edit_temporary_file():

   char *editor_arg = "";
...
       format = "%s +%s%s %s";
       HTAddXpand(&command, format, params++, editor);
       HTAddParam(&command, format, params++, position);
       HTAddParam(&command, format, params++, editor_arg);
       HTAddParam(&command, format, params++, filename);
       HTEndParam(&command, format, params);

i.e. smth like "vi +9 /tmp/file"

And then vi edits its name in ps and adds -c somewhere there.

Regards
Alex

On 5/22/06, Rod.. Whitworth <[EMAIL PROTECTED]> wrote:
Finally it bugged me enough that I used "ps www|grep vi " to see that
vi was being started with -c9 (as an example) and from there it grew.
Tonight I found that it went from 9 to 16, 29, 31, 40, 49, 50, 56. It
is not always the same sequence. Just now it began at 8.

I grepped around for anything like "vi -c" to no avail. I though that
was too obvious anyway.

Reply via email to