<p>Hi Leon, the only way I know of doing this is to expand $@ within double quotes at the point of command dispatch.  Here's the illustration of the magic incantation:</p>
<p>ZENITY_ARGS=<br>
echo 'YES!!!'<br>
for a in ${ZENITY_ARGS:="$@"}; do<br>
echo $a<br>
done</p>
<p>so the right form would be</p>
<p>ZENITY_ARGS=<br>
if [ $# -eq 0 && which zenity &>/dev/null ]; then<br>
ZENITY_ARGS=$(zenity --title 'Select an image' --file-selection --file-filter '.image' --file-filter '')<br>
fi</p>
<p>LD_LIBRARY_PATH="$PLUGINS:$SVMLLP:${LD_LIBRARY_PATH}" exec $GDB "$BIN/squeak" ${ZENITY_ARGS:="$@"}</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/408?email_source=notifications&email_token=AIJPEWYUN374UPHRJMB354LP42YM7A5CNFSM4HYXR4FKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODY3OM2I#issuecomment-506914409">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AIJPEWYTSBANLRRRZ65TC3DP42YM7ANCNFSM4HYXR4FA">mute the thread</a>.<img src="https://github.com/notifications/beacon/AIJPEW7XB5OKRNKM2CURSPDP42YM7A5CNFSM4HYXR4FKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODY3OM2I.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/408?email_source=notifications\u0026email_token=AIJPEWYUN374UPHRJMB354LP42YM7A5CNFSM4HYXR4FKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODY3OM2I#issuecomment-506914409",
"url": "https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/408?email_source=notifications\u0026email_token=AIJPEWYUN374UPHRJMB354LP42YM7A5CNFSM4HYXR4FKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODY3OM2I#issuecomment-506914409",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>