From owner-freebsd-current Mon Oct 28 23:21:36 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id XAA02959 for current-outgoing; Mon, 28 Oct 1996 23:21:36 -0800 (PST) Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id XAA02939 for ; Mon, 28 Oct 1996 23:21:28 -0800 (PST) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by irz301.inf.tu-dresden.de (8.6.12/8.6.12-s1) with ESMTP id IAA23344 for ; Tue, 29 Oct 1996 08:21:09 +0100 Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id IAA00688 for freebsd-current@FreeBSD.org; Tue, 29 Oct 1996 08:21:08 +0100 Received: (from j@localhost) by uriah.heep.sax.de (8.8.2/8.6.9) id HAA03985 for freebsd-current@FreeBSD.org; Tue, 29 Oct 1996 07:55:23 +0100 (MET) From: J Wunsch Message-Id: <199610290655.HAA03985@uriah.heep.sax.de> Subject: Re: cvs commit: src/bin/sh main.c options.c options.h sh.1 To: freebsd-current@FreeBSD.org (FreeBSD-current users) Date: Tue, 29 Oct 1996 07:55:22 +0100 (MET) Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <199610290312.TAA18784@freefall.freebsd.org> from Steve Price at "Oct 28, 96 07:12:56 pm" X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E X-Mailer: ELM [version 2.4ME+ PL17 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-current@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk As Steve Price wrote: > steve 96/10/28 19:12:54 > > Modified: bin/sh main.c options.c options.h sh.1 > Log: > Add the -p (privileged) commandline switch > found in bash, zsh, and friends. > > Reviewed by: joerg Actually, it originates from ksh, where our (Posix') $ENV usage originates, too. The most important part now though is (sorry for shouting :): IT IS HIGHLY RECOMMENDED THAT YOU START YOUR SHELL SCRIPTS WITH #!/bin/sh -p NOW! This is in particular true for things that can be invoked by random users like login shell scripts, but might also come handy for things like /dev/MAKEDEV. For the reasoning why this is useful, refer to PR docs/1383. (This PR can now be closed after updating the ppp man page.) -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)