delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:subject:to:references:from:message-id:date | |
:mime-version:in-reply-to:content-type | |
:content-transfer-encoding; q=dns; s=default; b=HBkBpFkefqyDkgub | |
ISpxB9AHtjvlhSMlZVIqLfkiN/yBk8xz0xnVNIDmdrJroJ0QJuDW+CsEPJFmV6Dk | |
mas6PsptD0f9k/RlQvsk/DXeCJKETw04N95LAGT9RHeVpJ8WWJbsiNZLv0If3n3g | |
xp9Kogv63ny4nbIwbBHM6ibQ8n4= | |
DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:subject:to:references:from:message-id:date | |
:mime-version:in-reply-to:content-type | |
:content-transfer-encoding; s=default; bh=jsq2+g/Ga/ECoP/Uu9mLDO | |
Jif0Q=; b=a7WAmHgJ6d8erquLKrp9BpRsyBJMqomUgSWnqRtzESyCsqVvS6dVha | |
gE2K5UpJ35ptvbhBrTjJTE7aWAg25mRKidnUrNR4EgI3XJUYnnsHOv5tp0TsPXPN | |
FSj5RLh2gyTJFbClWcYtqzWy0ZF2ao8f1bdttq4SIfSQ4XGJ4VRc0= | |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Authentication-Results: | sourceware.org; auth=none |
X-Virus-Found: | No |
X-Spam-SWARE-Status: | No, score=-0.9 required=5.0 tests=BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD autolearn=no version=3.3.2 spammy=HX-Envelope-From:sk:Christi, H*MI:sk:1be7896, H*f:sk:1be7896, H*i:sk:1be7896 |
X-HELO: | mailout11.t-online.de |
Subject: | Re: Use a default path in exec*p*() if PATH is unset? |
To: | cygwin AT cygwin DOT com |
References: | <d1bc1cea-2438-5e03-e84c-8d4e169d9592 AT t-online DOT de> <ae107c01-bea2-b562-1bc6-f5ba188eeba9 AT towo DOT net> <7b94712a-465d-421b-bc76-720e443708d3 AT t-online DOT de> <6991638b-2400-dacd-28ee-e2d2c9d91ed4 AT gmail DOT com> <36d1b8e6-4d03-eb00-37f0-e12c9f1c792b AT t-online DOT de> <1be7896a-700a-5384-2220-cc7bc25065e8 AT gmail DOT com> |
From: | Christian Franke <Christian DOT Franke AT t-online DOT de> |
Message-ID: | <a64e772d-3b7f-2bd8-d12f-0950d1539aab@t-online.de> |
Date: | Wed, 12 Apr 2017 18:41:34 +0200 |
User-Agent: | Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Firefox/52.0 SeaMonkey/2.49 |
MIME-Version: | 1.0 |
In-Reply-To: | <1be7896a-700a-5384-2220-cc7bc25065e8@gmail.com> |
X-IsSubscribed: | yes |
cyg Simple wrote: > ... > But I don't believe that env --ignore-environment should be using execvp > and should be using execv instead. That is for the upstream coreutils > team to decide though. Possibly not, as it would also require to check whether PATH is set later in the command line. Always using execv() if -i is specified would break: env -i PATH=/bin:/usr/bin prog To force execv()-like behavior with -i, simply use env -i PATH=. prog Christian -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |