Status: Accepted Owner: camillob...@gmail.com Labels: Type-Defect Priority-Medium
New issue 103 by camillob...@gmail.com: Mac VM Strange Bash Argument Expansion http://code.google.com/p/cog/issues/detail?id=103
Cog handles command line arguments inconsistently under mac:
cogVM Foo.image * => OK, normal expansion happening, `Smalltalk arguments` contains the names of all the files in the directory
cogVM Foo.image "*" => FAIL! `Smalltalk arguments` contains the very same files again
cogVM Foo.image * => FAIL! `Smalltalk arguments` contains the very same files again
cogVM Foo.image "*" => `Smalltalk arguments` contains a single string '*'
I expected the same arguments as when doing an echo echo * => prints all files echo "*" => prints * echo * => prints *
so somewhere there must happen a strange additional expansion (at least in the Mac VM)
Updates: Status: Invalid
Comment #1 on issue 103 by camillob...@gmail.com: Mac VM Strange Bash Argument Expansion http://code.google.com/p/cog/issues/detail?id=103
my bad. I use an intermediate bash script to launch the VM since you cannot simply symlink to the VM binary under OSX.
Of course that bash script expanded the parameters again. To avoid it do `set -f` or #!/bin/bash -f
vm-dev@lists.squeakfoundation.org