Subject: Re: toolchain/32983: pwd -P, found in build.sh, doesn't work with
To: None <gnats-bugs@netbsd.org>
From: Andrew Cagney <cagney@gnu.org>
List: netbsd-bugs
Date: 03/04/2006 14:36:46
Jeremy C. Reed wrote:
> The following reply was made to PR toolchain/32983; it has been noted by GNATS.
> 
> From: "Jeremy C. Reed" <reed@reedmedia.net>
> To: gnats-bugs@netbsd.org
> Cc: 
> Subject: Re: toolchain/32983: pwd -P, found in build.sh, doesn't work with
>  GNU/Linux
> Date: Sat, 4 Mar 2006 07:40:47 -0800 (PST)
> 
>  Is this causing a problem with build.sh?
>  
>  The revision 1.124 says:
>  
>  "Ignore errors when running pwd -P.  (GNU coreutils incorrectly 
>  complains)"
>  
>  The change in 1.123 was:
>  
>  -       if [ "${uname_s}" = "SunOS" ]; then
>  -               TOP=$(pwd -P)
>  -       else
>  -               TOP=$(pwd)
>  -       fi
>  +       TOP=$(/bin/pwd -P)
>  

-P was added between version 2, and version 3:
http://www.opengroup.org/onlinepubs/007908799/xcu/pwd.html
http://www.opengroup.org/onlinepubs/009695399/utilities/pwd.html
the patch I saw posted should work (but I can't revert my build.sh to 
apply it since cvs is down).

>  On NetBSD, the -P is the default.
>  
>  (Also I don't see the -P switch documented in man pages for pwd I found 
>  for Solaris on the web.)
>  
>  
>  
>  
>   Jeremy C. Reed
>  
>   	  	 	 technical support & remote administration
>  	  	 	 http://www.pugetsoundtechnology.com/
>  
>