Parameters in env EDITOR

ericx

Member

Reaction score: 6
Messages: 47

Can one parameterize the string used in EDITOR?

e.g.: vipw will fail when EDITOR='emacsclient -c'
with the error message:
Code:
# vipw
vipw: pw_edit(): No such file or directory
[Exit 1 ]
But vipw will function normally with EDITOR='emacsclient'
 

Petr Fischer

Active Member

Reaction score: 12
Messages: 111

Maybe you can write short sh script "myemacsclient" and call emacsclient with some parameters inside this custom script. Then set EDITOR to /path/myemacsclient.
 
OP
ericx

ericx

Member

Reaction score: 6
Messages: 47

Thank you. I already have too many glue scripts and I can live without the '-c' option. I've recently been made responsible for a number of Ubuntu and Debian machines and the option seems to work fine with the Linuxian vipw. I'm hoping to grok the differences between BSD and Linux.
 
Top