NetBSD-Bugs archive

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

Re: bin/50557: 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 <>
Subject: Re: bin/50557: 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 <>
     Message-ID:  <>
   | 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) )

Home | Main Index | Thread Index | Old Index