In /usr/src/usr.bin/vi/common/main.c:
...
* Change "+" into "-c$".
...
if (argv[0][0] == '+') {
if (argv[0][1] == '\0') {
argv[0] = strdup("-c$");
On 5/22/06, Alexander Farber <[EMAIL PROTECTED]> wrote:
/usr/src/gnu/usr.bin/lynx/src/LYEdit.c
calls in edit_temporary_file():
i.e. smth like "vi +9 /tmp/file"
And then vi edits its name in ps and adds -c somewhere there.
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.