[Usage] How to pass an inline argument for singularity shell call? #2748
-
Its a question, rather than an issue.
This does not pass the arguments <filename, ptg, data_block, locno>. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
This is a shell scripting issue, relating to the heredoc. When you use a heredoc Single quotes... value of FOO doesn't get to the container shell.
No quotes around EOF... value of FOO does get to the container shell.
See e.g. https://phoenixnap.com/kb/bash-heredoc for more examples. |
Beta Was this translation helpful? Give feedback.
This is a shell scripting issue, relating to the heredoc.
When you use a heredoc
<< 'EOF'
then the quotes (or lack of) around theEOF
bit control whether variable names will be subsituted.Single quotes... value of FOO doesn't get to the container shell.
No quotes around EOF... value of FOO does get to the container shell.
See e.g. https://phoenixnap.com/kb/bas…