From owner-freebsd-doc Mon Aug 11 07:50:01 1997 Return-Path: <owner-freebsd-doc> Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id HAA07563 for doc-outgoing; Mon, 11 Aug 1997 07:50:01 -0700 (PDT) Received: from pop.cc.nih.gov (pop.cc.nih.gov [137.187.120.140]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id HAA07528 for <freebsd-doc@FreeBSD.ORG>; Mon, 11 Aug 1997 07:49:56 -0700 (PDT) Received: (from aling@localhost) by pop.cc.nih.gov (8.8.4/8.8.3) id KAA07240; Mon, 11 Aug 1997 10:49:54 -0400 (EDT) Message-Id: <199708111449.KAA07240@pop.cc.nih.gov> From: "A Ling" <al52x@nih.gov> To: "freebsd-doc@FreeBSD.ORG" <freebsd-doc@FreeBSD.ORG> Date: Mon, 11 Aug 97 10:49:49 -0400 Reply-To: "A Ling" <al52x@nih.gov> Priority: Normal X-Mailer: Alexander Ling's Registered PMMail 1.53 For OS/2 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Subject: ee (default) word-wrap can cause vipw/chsh indigestion Sender: owner-freebsd-doc@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk As a newbie to FreeBSD 2.2.2-R, I had set my default editor to ee (in an effort to avoid vi). When I used vipw or chsh to change the default shell (specified at the end of a line in the /etc/passwd file), ee word-wrapped (evidently obeying the right margin option is on by default), and inserted a newline in the process. Unfortunately, this resulted in pwd_mkdb errors, and no change to the default shell: "/etc/pw.000237" 14 lines, 303 characters chsh: rebuilding the database... pwd_mkdb: corrupted entry pwd_mkdb: at line #13 pwd_mkdb: /etc/pw.000237: Inappropriate file type or format chsh: /etc/master.passwd: unchanged I still think ee is easier to get started with than vi, but perhaps a caveat or other warning either in the man page for ee, or in the FAQ (even though it likely won't be frequently asked -- perhaps a troubleshooting grab bag: "warnings, pitfalls, and unanticipated interactions"? ;-) will help someone else who's digested http://www.freebsd.org/tutorials/newuser/newuser.html but still has a long way to go before knowing the ropes. To be honest, the ee man page already says: There are three states for text operation in ee: free- form, margins, and automatic formatting. "Free-form" is best used for things like programming. There are no restrictions on the length of lines, and no formatting takes place. I just needed to be hit over the head more emphatically that using chsh/vipw is a "thing like programming". Many thanks and best regards to all of you who are making FreeBSD useful to even those of us who are still learning those ropes! Alex Ling, MD AL52x@nih.gov (301) 496-7700 x235 (voice) Bldg 10, Rm 1C-660 NIH Clinical Center Bethesda, Md 20892-1182