Difference in command line argument order in Linux and OS X
Russell Allen
mail at russell-allen.com
Sat Feb 1 10:55:48 UTC 2014
Just in case anyone has any ideas, I get this in OS X as expected:
Macintosh-2:mio russellallen$ Self -port 4000 -headless
Self Virtual Machine Version 4.1.13, Thu 09 Jan 14 15:06:29 Mac OS X i386 (4.4-272-g885323f-dirty)
Copyright 1989-2003: The Self Group (type _Credits for credits)
for I386: LogVMMessages = true
for I386: PrintScriptName = true
for I386: Inline = true
for I386: SICDeferUncommonBranches = false (not implemented)
for I386: SICReplaceOnStack = false (not implemented)
for I386: SaveOutgoingArgumentsOfPatchedFrames = true
VM# _CommandLine
<0>: ( | parent* = <1>. | object array: {'/Applications/Self Control.app/Contents/Resources/Self.app/Contents/MacOS/Self', '-port', '4000', '-headless'} )
but I get this in Linux (Fedora 19):
[self at messaging ~]$ ./selfvm -port 4000 -headless
Self Virtual Machine Version 4.1.13, Sat 01 Feb 14 08:00:32 Linux i386 (4.5.0-7-gb833000)
Copyright 1989-2003: The Self Group (type _Credits for credits)
for I386: LogVMMessages = true
for I386: PrintScriptName = true
for I386: Inline = true
for I386: SICDeferUncommonBranches = false (not implemented)
for I386: SICReplaceOnStack = false (not implemented)
for I386: SaveOutgoingArgumentsOfPatchedFrames = true
VM# _CommandLine
<0>: ( | parent* = <1>. | object array: {'./selfvm', '-port', '-headless', '4000'} )
Why on earth would the order of the command line arguments vary between platforms? Or more precisely, why is Linux reordering my arguments?
Russell
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.selflanguage.org/pipermail/self-interest/attachments/20140201/5181df7f/attachment.html>
More information about the Self-interest
mailing list