[前][次][番号順一覧][スレッド一覧]

ruby-changes:52694

From: nobu <ko1@a...>
Date: Wed, 3 Oct 2018 15:48:39 +0900 (JST)
Subject: [ruby-changes:52694] nobu:r64906 (trunk): Use cd -P

nobu	2018-10-03 15:48:35 +0900 (Wed, 03 Oct 2018)

  New Revision: 64906

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=64906

  Log:
    Use cd -P
    
    Setting PWD in the process does not let `cd` traverse symlinks in
    /bin/sh on macOS.

  Modified files:
    trunk/configure.ac
Index: configure.ac
===================================================================
--- configure.ac	(revision 64905)
+++ configure.ac	(revision 64906)
@@ -262,7 +262,7 @@ AS_CASE(["$build_os"], https://github.com/ruby/ruby/blob/trunk/configure.ac#L262
 	@%:@error ignore linker warnings
 	@%:@endif
 SRC
-	CC_WRAPPER=`PWD=; cd "$srcdir/tool" && pwd`/darwin-cc
+	CC_WRAPPER=`cd -P "$srcdir/tool" && pwd`/darwin-cc
 	CC="$CC_WRAPPER $CC"
     ])
   ])

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]