Learning the Mac OS X Terminal: Part 1
Subject:   crontab -e
Date:   2003-03-10 16:03:06
From:   anonymous2
Response to: crontab -e

Any idea on how to have pico invoked as the default editor for OS X Terminal with the -w switch (so it won't mangle wrapped text); i.e., what should be placed in the .cshrc file?

% setenv EDITOR "pico -w"

... works at the command line (well, the OS doesn't complain anyway), but when placed in .cshrc, (and after .cshrc is sourced) I get:

% crontab -e
crontab: pico -w: No such file or directory
crontab: "pico -w" exited with status 1

I'm told that on a Red Hat system it works in the .cshrc file, but in Gentoo Linux (and Mac OS X), it gives the errors above. All three Unix systems use Vixie cron. I also tried:

setenv EDITOR "/usr/bin/pico" -w

... but that doesn't parse:

setenv: Too many arguments.

1 to 1 of 1
  1. crontab -e
    2003-07-15 11:10:50  anonymous2 [View]

1 to 1 of 1