From owner-cvs-all@FreeBSD.ORG Mon Jun 20 03:43:26 2005 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2438516A41C; Mon, 20 Jun 2005 03:43:26 +0000 (GMT) (envelope-from gad@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 105FB43D1F; Mon, 20 Jun 2005 03:43:26 +0000 (GMT) (envelope-from gad@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j5K3hPb2090573; Mon, 20 Jun 2005 03:43:25 GMT (envelope-from gad@repoman.freebsd.org) Received: (from gad@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j5K3hP03090572; Mon, 20 Jun 2005 03:43:25 GMT (envelope-from gad) Message-Id: <200506200343.j5K3hP03090572@repoman.freebsd.org> From: Garance A Drosehn Date: Mon, 20 Jun 2005 03:43:25 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/usr.bin/env Makefile env.1 env.c envopts.c envopts.h X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Jun 2005 03:43:26 -0000 gad 2005-06-20 03:43:25 UTC FreeBSD src repository Modified files: usr.bin/env Makefile env.1 env.c Added files: usr.bin/env envopts.c envopts.h Log: Add the '-S' and '-P' options. The '-S' option can be used to split apart a string, and supports some text substitutions. This can be used to provide all the flexibility (and more!) that was lost by recent changes to how the kernel parses #!-lines in shell scripts. The '-P' option provides a way to specify an alternate set of directories to use when searching for the 'utility' program to run. This way you can be sure what directories are used for that search, without changing the value of PATH that the user has set. Note that on FreeBSD 6.0, this option is worthless unless the '-S' option is also used. Approved by: re (blanket `env') Revision Changes Path 1.6 +2 -0 src/usr.bin/env/Makefile 1.6 +341 -29 src/usr.bin/env/env.1 1.15 +19 -3 src/usr.bin/env/env.c 1.1 +430 -0 src/usr.bin/env/envopts.c (new) 1.1 +37 -0 src/usr.bin/env/envopts.h (new)