zopencommunity / groovyport

A scripting language for the Java platform
Apache License 2.0
0 stars 0 forks source link

Error running #!/usr/bin/env groovy #4

Open gngrossi opened 11 months ago

gngrossi commented 11 months ago

bash-5.2$ ls -lT g02.sh t ISO8859-1 T=on -rwx------ 1 @02858 @ISCICS1 751 Dec 21 16:11 g02.sh

bash-5.2$ ./g02.sh /hewitt/zopentools/guild/groovy-DEV/bin/groovy 1: FSUM7332 syntax error: got (, expecting Newline

bash-5.2$ head g02.sh

!/usr/bin/env groovy

// // reading files //

IgorTodorovskiIBM commented 10 months ago

startGroovy, /home/itodoro/zopen/usr/local/zopen/groovy/groovy-DEV.20231212_222300.zos/bin/startGroovy has the mixed text flag set which disables auto-conversion. Since the file is text based, we should probably mark it as text.

ls -lT /home/itodoro/zopen/usr/local/zopen/groovy/groovy-DEV.20231212_222300.zos/bin/startGroovy
m ISO8859-1   T=on  -rwxr-xr-x   1 ITODORO  BASIC      13756 Dec 12 22:23 

This may be an issue with the unzip port as the original package contents are archived in zip format.

FYI @MikeFultonDev