From owner-freebsd-hackers Thu Mar 30 13:20:19 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 1157037B814 for ; Thu, 30 Mar 2000 13:20:16 -0800 (PST) (envelope-from Doug@gorean.org) Received: from slave (doug@slave [10.0.0.1]) by dt051n0b.san.rr.com (8.9.3/8.9.3) with ESMTP id NAA61965 for ; Thu, 30 Mar 2000 13:20:15 -0800 (PST) (envelope-from Doug@gorean.org) Date: Thu, 30 Mar 2000 13:20:15 -0800 (PST) From: Doug Barton X-Sender: doug@dt051n0b.san.rr.com To: freebsd-hackers@freebsd.org Subject: Re: Proposed new Bourne shell init files In-Reply-To: <38E2F801.548AAAF1@gorean.org> Message-ID: MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="0-1118915418-954451215=:61945" Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. Send mail to mime@docserver.cac.washington.edu for more info. --0-1118915418-954451215=:61945 Content-Type: TEXT/PLAIN; charset=US-ASCII The use of allexport in my previous submission was considered "too clever," and the source of possible user confusion. Rather than fight that battle, here is a version with explicit exporting of variables, and a helpful message at the top that attempts to explain why exporting is important. The following one line would still need to be added to root's dot.profile, however the line numbering in the patch below will be off. > For root's dot.profile you need to add the following: > > --- dot.profile Sat Mar 25 23:24:25 2000 > +++ dot.profile.root Sat Mar 25 23:41:15 2000 > @@ -8,6 +8,8 @@ > # Export all the environment variables to clean things up a bit > set -o allexport > > +HOME=/root > + > # Remove /usr/games and /usr/X11R6/bin if you want > > PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/sbin:/usr/X11R6/bin:/usr/games:$HOME/bin All opinions to the contrary aside, I welcome additional comments or suggestions. 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." --0-1118915418-954451215=:61945 Content-Type: TEXT/PLAIN; charset=US-ASCII; name="dot.profile" Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: Bourne shell .profile script Content-Disposition: attachment; filename="dot.profile" IyAkRnJlZUJTRCQNCiMNCiMgLnByb2ZpbGUgLSBCb3VybmUgU2hlbGwgc3Rh cnR1cCBzY3JpcHQgZm9yIGxvZ2luIHNoZWxscw0KIw0KIyBzZWUgYWxzbyBz aCgxKSwgZW52aXJvbig3KS4NCiMNCg0KIyBZb3Ugc2hvdWxkIHNldCB2YXJp YWJsZXMgaW4gdGhpcyBmaWxlIHRoYXQgYXJlIG5lZWRlZCBieSBib3RoIHlv dXIgc2hlbGwNCiMgYW5kIG90aGVyIHByb2Nlc3NlcyB0aGF0IGFyZSBzdGFy dGVkIGZyb20gaXQuICBUaGVzZSB2YXJpYWJsZXMgc2hvdWxkDQojIGJlIGV4 cG9ydGVkIHNvIHRoYXQgcHJvY2Vzc2VzIG91dHNpZGUgdGhlIHNoZWxsIGNh biBzZWUgdGhlbS4gIE90aGVyDQojIHZhcmlhYmxlcyB0aGF0IGFyZSBvbmx5 IG5lZWRlZCBieSB0aGUgc2hlbGwsIG9yIHRoYXQgb25seSBhcHBseSB0bw0K IyBpbnRlcmFjdGl2ZSAoYW5kL29yIGxvZ2luKSBzaGVsbHMgc2hvdWxkIGJl IHNldCBpbiAuc2hyYy4NCg0KIyBSZW1vdmUgL3Vzci9nYW1lcyBhbmQgL3Vz ci9YMTFSNi9iaW4gaWYgeW91IHdhbnQNClBBVEg9L3Vzci9iaW46L2Jpbjov dXNyL3NiaW46L3NiaW46L3Vzci9sb2NhbC9iaW46L3Vzci9sb2NhbC9zYmlu Oi91c3IvWDExUjYvYmluOi91c3IvZ2FtZXM6JEhPTUUvYmluDQpleHBvcnQg UEFUSA0KDQojIFNldHRpbmcgVEVSTSBpcyBub3JtYWxseSBkb25lIHRocm91 Z2ggL2V0Yy90dHlzLiAgT25seSBvdmVycmlkZQ0KIyBpZiB5b3UncmUgc3Vy ZSB0aGF0IHlvdSdsbCBuZXZlciBsb2cgaW4gdmlhIHRlbG5ldCwgeHRlcm0g b3IgYQ0KIyBzZXJpYWwgbGluZS4NCiMgVXNlIGNvbnMyNWwxIGZvciBpc28t KiBmb250cw0KVEVSTT0ke1RFUk06LWNvbnMyNX0NCmV4cG9ydCBURVJNDQoN CkVESVRPUj12aQ0KZXhwb3J0IEVESVRPUg0KUEFHRVI9bW9yZQ0KZXhwb3J0 IFBBR0VSDQpCTE9DS1NJWkU9Sw0KZXhwb3J0IEJMT0NLU0laRQ0KDQojIFNl dCBFTlYgdG8gYSBmaWxlIGludm9rZWQgZWFjaCB0aW1lIHNoIGlzIHN0YXJ0 ZWQgZm9yIGludGVyYWN0aXZlIHVzZS4NCkVOVj0kSE9NRS8uc2hyYzsgZXhw b3J0IEVOVg0KDQo= --0-1118915418-954451215=:61945-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message