Command-line arguments

Christopher Wright dhasenan at gmail.com
Sat Jul 5 06:32:25 PDT 2008


Lars Ivar Igesund wrote:
> superdan wrote:
>> then parse this using tango arguments please:
>>
>> ssh -v ls -la
>>
>> thanks.
> 
> Everything until ls is easy (including the hostname which is required by
> ssh), but it appears to ignore the -la part which I have noted to the
> implementors. I believe I did say that although the requirments document (I
> probably wrongly said design document) mandates that this should be
> possible, the implementation and design is not fully reviewed yet and may
> have bugs.
> 
> The order is completely preserved and enforcable though.
> 

What about "ssh -v -- ls -la", I wonder.

Actually, I don't wonder. The documentation says that the empty -- is 
ignored. That's contrary to normal UNIX usage; everything after the "--" 
should be interpreted as an argument rather than a flag.



More information about the Digitalmars-d mailing list