It may have to do with bash. I don’t have a Linux up and running, so I can’t check for you. One workaround is to make a command and save it in a *.gmic file. E.g.
It doesn’t have to be user.gmic. Could be any *.gmic as long as you insert it, just as you insert image files. E.g., gmic foo.gmic [...].