Home | History | Annotate | Download | only in jruby
      1 patch required for correct interpretation of symbolic links stating from "../"
      2 --- jruby	2008-09-19 14:44:28.000000000 +0200
      3 +++ jruby	2008-09-19 17:42:43.750000000 +0200
      4 @@ -28,7 +28,11 @@
      5    ls=`ls -ld "$PRG"`
      6    link=`expr "$ls" : '.*-> \(.*\)$'`
      7    if expr "$link" : '.*/.*' > /dev/null; then
      8 +  if expr "$link" : '^../' > /dev/null; then
      9 +  PRG=`dirname $PRG`/`dirname $link`/$progname
     10 +  else 
     11    PRG="$link"
     12 +  fi
     13    else
     14    PRG="`dirname $PRG`/$link"
     15    fi
     16