This is the mail archive of the kawa@sourceware.org mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: please try out the Kawa binary pre-release


I noticed a minor problem: The automatic CLASSPATH-setting code in the
'kawa' shell script does not do the intended (I think) thing when that
shell script is invoked as "./kawa" (leading to an error "Could not find
or load main class kawa.repl).  I believe a small change to the sed
command in the kawa script does the trick:

  kawadir=`echo "$thisdir" | sed -e 's|/bin\(/.\)*$||'`

Perhaps it is safe to replace the '*' with a '?', but the above will
cover the case of multiple trailing './' substrings if they somehow
appear.  I am including a context diff below for completeness sake.

Regards,

-chaw

*** kawa-2.1.91/bin/kawa	2016-11-03 04:48:26.773976949 -0400
--- kawa-2.1.91/bin/kawa.orig	2016-11-02 15:02:26.000000000 -0400
***************
*** 5,15 ****
    /*) ;;
    *) thisfile="$PWD/$thisfile"  ;;
  esac
  while test -L "$thisfile"; do thisfile=$(readlink -f "$thisfile"); done
  thisdir=`dirname "$thisfile"`
! kawadir=`echo "$thisdir" | sed -e 's|/bin\(/.\)*$||'`
  if [ "$#" -eq 0 ]
  then
     command_line="$0"
  else
     command_line="$0 $*"
--- 5,15 ----
    /*) ;;
    *) thisfile="$PWD/$thisfile"  ;;
  esac
  while test -L "$thisfile"; do thisfile=$(readlink -f "$thisfile"); done
  thisdir=`dirname "$thisfile"`
! kawadir=`echo "$thisdir" | sed -e 's|/bin$||'`
  if [ "$#" -eq 0 ]
  then
     command_line="$0"
  else
     command_line="$0 $*"

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]