File tree Expand file tree Collapse file tree 7 files changed +14
-14
lines changed Expand file tree Collapse file tree 7 files changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ usage() {
2424}
2525
2626mydir=$( dirname " $0 " ) 
27- cd  " $( /bin/pwd) " &&  cd  " $mydir " ||  die " can't find self in dir: $mydir " 
27+ cd  " $( /usr/ bin/env  pwd) " &&  cd  " $mydir " ||  die " can't find self in dir: $mydir " 
2828
2929args=
3030while  [ " $1 " !=  " ${1# -} " ;  do 
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ qdirname() (
5454)
5555
5656_dirsplit " $0 " 
57- REDO=$( cd " $( pwd -P) " && 
57+ REDO=$( cd " $( /usr/bin/env  pwd  -P) " && 
5858	cd  " ${_dirsplit_dir:- .} " &&  
5959	echo  " $PWD /$_dirsplit_base " )  
6060export  REDO
@@ -89,7 +89,7 @@ if [ -z "$DO_BUILT" -a "$_cmd" != "redo-whichdo" ]; then
8989	if  [ " $# " -eq  0 ] &&  [ " $_cmd " =  " do" -o  " $_cmd " =  " redo" ;  then 
9090		set  all  #  only toplevel redo has a default target
9191	fi 
92- 	export  DO_STARTDIR=" $( pwd -P) " 
92+ 	export  DO_STARTDIR=" $( /usr/bin/env  pwd  -P) " 
9393	#  If starting /bin/pwd != $PWD, this will fix it.
9494	#  That can happen when $PWD contains symlinks that the shell is
9595	#  trying helpfully (but unsuccessfully) to hide from the user.
@@ -228,7 +228,7 @@ _realpath()
228228			# echo "Trying: $PWD--$path" >&2
229229			if  cd  -P " $path " 2> /dev/null;  then 
230230				#  success
231- 				pwd=$( pwd -P) 
231+ 				pwd=$( /usr/bin/env  pwd  -P) 
232232				# echo "  chdir ok: $pwd--$rest" >&2
233233				np=$( _normpath " ${pwd%/ } /$rest " " $relto " ) 
234234				if  [ -n  " $isabs " ;  then 
Original file line number Diff line number Diff line change @@ -136,9 +136,9 @@ mkdir y
136136ln -s .  y/x
137137check " /usr/__does_not/b" " /usr/__does_not/a/../b" " $x " 
138138check " foo" " y/x/x/x/x/x/../foo" " $PWD " 
139- check " $( /bin/pwd) " " $PWD /y/x/x/x/x/x/../foo" " $PWD " 
139+ check " $( /usr/ bin/env  pwd) " " $PWD /y/x/x/x/x/x/../foo" " $PWD " 
140140check " foo/blam" " y/x/x/x/x/x/../foo/spam/../blam" " $PWD " 
141- check " $( /bin/pwd) " " $PWD /y/x/x/../foo/spam/../blam" " $PWD " 
141+ check " $( /usr/ bin/env  pwd) " " $PWD /y/x/x/../foo/spam/../blam" " $PWD " 
142142
143143
144144SECTION _find_dofile
Original file line number Diff line number Diff line change @@ -14,10 +14,10 @@ for iter in 10 20; do
1414		cd y/x/x/x/x/x
1515		IFS= $(printf '\n')
1616		redo- ifchange static x/x/x/static $PWD/static \
17- 			$(/bin/pwd)/static /etc/passwd
17+ 			$(/usr/ bin/env  pwd)/static /etc/passwd
1818		redo- ifchange $PWD/../static 2> /dev/null &&  exit 35
1919		redo- ifchange 1.dyn x/x/x/2.dyn $PWD/3.dyn \
20- 			 $PWD/../4.dyn $(/bin/pwd)/ 5.dyn
20+ 			 $PWD/../4.dyn $(/usr/ bin/env  pwd)/ 5.dyn
2121	)
2222	[ - e y/1.dyn ] ||  exit $((iter +  1))
2323	[ - e y/2.dyn ] ||  exit $((iter +  2))
Original file line number Diff line number Diff line change 1010
1111# builds 1xx* /all to test for basic/dangerous functionality.
1212# We don't want to run more advanced tests if the basics don't work.
13- /bin/ ls 1[0- 9][0- 9]* /all.do | 
13+ ls 1[0- 9][0- 9]* /all.do | 
1414sed 's/\.do$//' | 
1515xargs redo
1616110- compile/hello > & 2
1717
1818# builds most of the rest in parallel
19- /bin/ ls [2- 9][0- 9][0- 9]* /all.do | 
19+ ls [2- 9][0- 9][0- 9]* /all.do | 
2020sed 's/\.do$//' | 
2121xargs redo
2222
@@ -25,7 +25,7 @@ xargs redo
2525# are checking for unnecessary extra rebuilds of some targets, which
2626# might happen after flush- cache.
2727# FIXME: a better solution might be to make flush- cache less destructive! 
28- /bin/ ls [s][0- 9][0- 9]* /all.do | 
28+ ls [s][0- 9][0- 9]* /all.do | 
2929sed 's/\.do$//' | { 
3030    while  read d; do
3131        redo " $d" 
Original file line number Diff line number Diff line change 1- /bin/ ls [0- 9s][0- 9][0- 9]* /clean.do | 
1+ ls [0- 9s][0- 9][0- 9]* /clean.do | 
22sed 's/\.do$//' | 
33xargs redo
44
Original file line number Diff line number Diff line change @@ -526,8 +526,8 @@ rm -f shlink ../shlink
526526ln -s . shlink
527527(quiet_stderr cd -L shlink/shlink/shlink/../shlink) || fail 120
528528(quiet_stderr cd -P shlink/shlink/shlink/../shlink) && fail 121
529- x1=$(cd shlink && basename "$(pwd -P)")
530- x2=$(cd shlink && basename "$(pwd -L)")
529+ x1=$(cd shlink && basename "$(/usr/bin/env  pwd -P)")
530+ x2=$(cd shlink && basename "$(/usr/bin/env  pwd -L)")
531531[ "$x1" = "t" ] || fail 122
532532[ "$x2" = "shlink" ] || fail 123
533533
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments