[Vm-dev] Issue 103 in cog: Mac VM Strange Bash Argument Expansion
cog at googlecode.com
cog at googlecode.com
Thu Oct 18 16:35:54 UTC 2012
Status: Accepted
Owner: camillob... at gmail.com
Labels: Type-Defect Priority-Medium
New issue 103 by camillob... at 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)
More information about the Vm-dev
mailing list