From owner-freebsd-questions Sun Sep 13 08:41:41 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA12299 for freebsd-questions-outgoing; Sun, 13 Sep 1998 08:41:41 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from jaguar.ir.miami.edu (jaguar.ir.miami.edu [129.171.32.10]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA12286 for ; Sun, 13 Sep 1998 08:41:34 -0700 (PDT) (envelope-from marcus@miami.edu) Received: from jaguar.ir.miami.edu ("port 2337"@jaguar.ir.miami.edu) by jaguar.ir.miami.edu (PMDF V5.1-10 #24029) with SMTP id <0EZ8001O2BKQX5@jaguar.ir.miami.edu> for freebsd-questions@FreeBSD.ORG; Sun, 13 Sep 1998 11:41:14 -0400 (EDT) Date: Sun, 13 Sep 1998 11:41:14 -0400 (EDT) From: "Joe \"Marcus\" Clarke" Subject: Re: editor for vipw In-reply-to: <5060100023353721000002L012*@MHS> To: Ghulum Dastgir Cc: freebsd-questions@FreeBSD.ORG Message-id: MIME-version: 1.0 Content-type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In root's .profile file, enter: EDITOR=/usr/local/bin/emacs; export EDITOR Then you should be using the emacs editor. Though it sounds like some paths might be screwed up on your system if you have ee in /usr/bash. /usr/bash is not a default binary directory. Usually, /usr/bin /bin /usr/sbin /sbin Should be in root's path (and optionally /stand, /usr/local/bin, and /usr/X11R6/bin). Joe Clarke On Sun, 13 Sep 1998, Ghulum Dastgir wrote: > Hi, > > i've had problem adding test users to master.passwd, and it's because i've been > accessing this file directly through emacs, since vipw uses the vi editor by > default. > Now if i want to get vipw to use the emacs editor by default then presumably I > change the EDITOR env. variable to emacs, like so: > > EDITOR=emacs export EDITOR > > right? > > I usually do this on the command line and it works ... usually ... i think! > > i've tried adding this command to one of the shell startup files and when i > reboot vipw resorts to using vi. ahh, also when i echo $EDITOR it returns > "/bin/bash/ee". what is this? is ee an editor. > > thanx, > > ghulam > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message