Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

slicer script problem on MacOS 14.2.1 #12

Open
kcrca opened this issue Mar 22, 2024 · 0 comments
Open

slicer script problem on MacOS 14.2.1 #12

kcrca opened this issue Mar 22, 2024 · 0 comments

Comments

@kcrca
Copy link

kcrca commented Mar 22, 2024

When I download and unzip the zip file, the syntax in bin/1.20.5 shell script has a problem with parameter substitution. Specifically,
the final command build includes the line:

    printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $1_20_5_OPTS" |

/bin/sh interprets the final parameter as $1 followed by the text _20_5_OPTS. This can be fixed by telling the shell the actual bounds, as in:

    printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS ${1_20_5_OPTS}" |

It is possible that this is a problem in Apple's replacement of the Bourne shell /bin/sh with zsh, I dunno, but the replacement syntax is entirely portable shell syntax, so it seems worthwhile to fix this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant