mirror of
git://sourceware.org/git/glibc.git
synced 2025-04-06 14:10:30 +08:00
Handle files in the same directory correctly.
This commit is contained in:
parent
b9b2307456
commit
e2d554858b
@ -27,7 +27,11 @@ if test -d $1; then
|
||||
to=`cd $1 && /bin/pwd`
|
||||
else
|
||||
temp=`echo $1 | sed 's%/*[^/]*$%%'`
|
||||
to=`cd $temp && /bin/pwd`
|
||||
if test -z "$temp"; then
|
||||
to=`/bin/pwd`
|
||||
else
|
||||
to=`cd $temp && /bin/pwd`
|
||||
fi
|
||||
to="$to/`echo $1 | sed 's%.*/\([^/][^/]*\)$%\1%'`"
|
||||
fi
|
||||
to=`echo $to | sed 's%^/%%'`
|
||||
|
Loading…
x
Reference in New Issue
Block a user