cannot pass arguments to EDITOR command
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
editmoin |
Fix Released
|
Undecided
|
Gustavo Niemeyer | ||
editmoin (Ubuntu) |
Triaged
|
Medium
|
Unassigned |
Bug Description
Binary package hint: editmoin
per "http://
| Hint: to use gvim as your editor, make sure you use the -f flag.
However:
$ EDITOR='gvim -f' editmoin https:/
error: [Errno 2] No such file or directory
editmoin invokes EDITOR with:
| editor = os.environ.
| subprocess.
because that doesn't pass through sh, the command "gvim -f" is what is attempted to execute.
Note, this can easily be worked around with a wrapper program:
$ cat mygvim
#!/bin/sh
exec gvim -f "$1"
$ EDITOR=mygvim editmoin https:/
ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: editmoin 1.15-1
ProcVersionSign
Uname: Linux 2.6.35-10-generic x86_64
Architecture: amd64
Date: Mon Jul 26 13:15:55 2010
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 10.04 "Lucid Lynx" - Beta amd64 (20100318)
PackageArchitec
ProcEnviron:
PATH=(custom, user)
LANG=en_US.utf8
SHELL=/bin/bash
SourcePackage: editmoin
Related branches
- Gustavo Niemeyer: Approve
-
Diff: 14 lines (+3/-1)1 file modifiededitmoin (+3/-1)
Changed in editmoin (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → Medium |
That's fixed in 1.16, thanks to your patch.