From owner-freebsd-hackers Thu Mar 30 20:28:59 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from dt051n0b.san.rr.com (dt051n0b.san.rr.com [204.210.32.11]) by hub.freebsd.org (Postfix) with ESMTP id B78C537B82B for ; Thu, 30 Mar 2000 20:28:53 -0800 (PST) (envelope-from Doug@gorean.org) Received: from gorean.org (master [10.0.0.2]) by dt051n0b.san.rr.com (8.9.3/8.9.3) with ESMTP id UAA65489; Thu, 30 Mar 2000 20:28:49 -0800 (PST) (envelope-from Doug@gorean.org) Message-ID: <38E42987.856C2215@gorean.org> Date: Thu, 30 Mar 2000 20:28:55 -0800 From: Doug Barton Organization: Triborough Bridge & Tunnel Authority X-Mailer: Mozilla 4.72 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Christian Weisgerber Cc: freebsd-hackers@freebsd.org Subject: Re: Proposed new Bourne shell init files References: <38E2F801.548AAAF1@gorean.org> <8c0k5m$9fp$1@bigeye.rhein-neckar.de> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Christian Weisgerber wrote: > > Doug Barton wrote: > > > Commentary on my files. . . Using allexport instead of an explicit > > 'export' for every variable makes the file easier to read, and gives a > > novice user one less thing to worry about. > > I think Sue has a made a good argument against allexport. > Also, from your reply to her I suspect you didn't know about > > export VAR=value You might try giving me the benefit of the doubt. :) The problem with that option is that it's not portable. If we're going to be using the .files as a teaching experience, we should teach good habits. > which is what I use and would like to suggest. > > > I added 'set -o emacs' to dot.shrc, it makes life much easier, > > FWIW, "set -E" does the same in fewer letters but is a FreeBSDism. *Nod* Portability, and I like spelling out of the options as a general principle. It makes it easier for a new user to understand what's happening. > > I fully realize that treading in this area is likely to provoke lenghty > > arguments, goring of cows, etc. :) > > I suggest we use nails with square heads for the south side of the > bike shed. *Chuckle* > > # Search path for cd(1) > > CDPATH=.:$HOME > > Hmpf. > > > # General aliases > > alias la='ls -A' > > alias lf='ls -AF' > > alias ll='ls -loaF' > > alias m=$PAGER > > alias g='egrep -i' > > These are *very much* a matter of taste. I copied the above from the current files. I use the CDPATH in my .bashrc anyway, and I've never had a problem with it. I also use the ls aliases (well, not lf) and I have no experience with the other two, I just copied them. > I don't like a single one > of them, but then again I wouldn't want to force mine on anybody > else. Yeah, the file would be a lot longer if I included the stuff from my .bashrc. :) > One alias I think worth considering is > > alias r='fc -s' Hrrmm... ok. I have no experience with that, but I wouldn't object to its inclusion. Doug -- "So, the cows were part of a dream that dreamed itself into existence? Is that possible?" asked the student incredulously. The master simply replied, "Mu." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message