NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bin/50557: build.sh does not run on Nixos



The following reply was made to PR bin/50557; it has been noted by GNATS.

From: Robert Elz <kre%munnari.OZ.AU@localhost>
To: Joerg Sonnenberger <joerg%bec.de@localhost>
Cc: gnats-bugs%NetBSD.org@localhost, gnats-admin%netbsd.org@localhost, netbsd-bugs%netbsd.org@localhost,
        paspanag%gmail.com@localhost
Subject: Re: bin/50557: build.sh does not run on Nixos
Date: Mon, 30 May 2016 20:27:59 +0700

     Date:        Mon, 30 May 2016 14:49:05 +0200
     From:        Joerg Sonnenberger <joerg%bec.de@localhost>
     Message-ID:  <20160530124905.GA20925%britannica.bec.de@localhost>
 
   | The idea here was to explicitly force the external pwd and "env pwd"
   | does exactly that?
 
 That's not guaranteed, env can be builtin too.   There's no way (except
 exec) to guarantee running an external executable.
 
 What is best depends whether this is to deal with one specific system,
 in which case it is fine to just use /bin/pwd (or wherever it is found)
 or whether you want something that is supposed to work everywhere.
 
 If the latter, then perhaps
 
 	TOP=$( (exec pwd -P 2>/dev/null) || (exec pwd 2>/dev/null) )
 
 kre
 


Home | Main Index | Thread Index | Old Index