Alexander Burger <a...@software-lab.de> writes:

Hi Alex,

>> why does this work in the Shell command line:
>> | $ java -cp $WEKAHOME/weka.jar weka.classifiers.functions.SMO -h
>> ...
>> but this does not work in the PicoLisp commandline:
>>  | : (call "java" "-cp" "$WEKAHOME/weka.jar" 
>> "weka.classifiers.functions.SMO" "-h")
>
> The shell expands the variable $WEKAHOME when it evaluates the command
> line, which does not happen if you call "java" directly.
>
> You might try this:
>
>    (call "java"
>       "-cp"
>       (pack (sys "WEKAHOME") "/weka.jar")
>       "weka.classifiers.functions.SMO"
>       "-h" )

I still get the same error. 

,----------------------------------------------------------
| $ $WEKAHOME
| -bash: /home/tj/java/weka/weka-3-6-9: Ist ein Verzeichnis
| $ $TERM
| -bash: xterm-256color: Kommando nicht gefunden.
`----------------------------------------------------------

the variable is set and known to BASH, but somehow PicoLisp does not
know about it:
,--------------------
| : (sys "WEKAHOME")
| -> NIL
| : (sys "TERM")    
| -> "xterm-256color"
`--------------------

-- 
cheers,
Thorsten

-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Reply via email to