[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-idutils] eid bug
From: |
Bruno Haible |
Subject: |
[bug-idutils] eid bug |
Date: |
Tue, 2 May 2006 16:41:21 +0200 |
User-agent: |
KMail/1.5 |
Hi,
I have the EDITOR variable set:
$ echo "$EDITOR"
emacs -nw
and now when I use the "eid" command on a clisp source tree, I get
$ eid lispbibl
lispbibl build/genclisph.c utils/txt2c.c doc/extend.txt
edit? [y1-9^S/nq] y
y
lid: can't exec `emacs -nw': Datei oder Verzeichnis nicht gefunden
It is common that the EDITOR variable contains the beginning of a shell
command line, i.e. a program name with options. The "cvs" command for
example understands this perfectly fine.
The "eid" command should support EDITOR="emacs -nw" as well.
There are two possible implementations:
- parse the value of $EDITOR, like a shell would do, and use the exec()
system call,
- construct a shell command line from $EDITOR and the file names (using
proper quoting for spaces, backslashes or quotes in the file names),
and execute it using system().
Bruno
- [bug-idutils] eid bug,
Bruno Haible <=