gap-packages / JupyterKernel

Native Jupyter kernel for GAP
https://gap-packages.github.io/JupyterKernel/
BSD 3-Clause "New" or "Revised" License
19 stars 12 forks source link

exec command in jupyter-kernel-gap script #112

Closed johnbamberg closed 4 years ago

johnbamberg commented 4 years ago

On a MAC (bash or zsh shell), the exec command in the jupyter-kernel-gap script command has an issue when $JUPYTER_GAP_EXECUTABLE has a "-l" switch. The error can be replicated by considering the following two instances:

GAP="gap -o 2000M" exec $GAP

GAP="gap -l \".;\"" exec $GAP

There is an error in the second instance:

gap: hmm, I cannot find 'lib/init.g' maybe use option '-l '?

which indicates that the -l switch was not parsed. How do we fix this?

johnbamberg commented 4 years ago

I found the solution ... use parentheses:

GAP=(gap -l ".;")