Menu

#507 Problems in shell scripts

open
nobody
None
5
2014-08-30
2008-02-13
No

Hello, I am using Jalopy on Linux (CentOS 4). Two problems.

(1) Bash seems to be confused by cr-nl line endings ("DOS" line endings) in the .sh files in Jalopy proper and the console plug-in. Bash complains about syntax errors in the scripts. However, by simply converting the .sh scripts to nl-only ("Unix") line endings, bash is happy and the script runs OK.

(2) There is some logic in preferences.sh in the jalopy-console plugin to find .jar files, but as executed by bash, the classpath is messed up. Looks like the DIRLIBS=... stuff needs to be changed. I changed it to

DIRLIBS=`ls lib/*.jar`

but that's just a cheap workaround (requires the script be executed in the directory above lib).

HTH
Robert Dodier

Discussion


Log in to post a comment.