Command-line arguments

Bruce Adams tortoise_74 at yeah.who.co.uk
Sat Jul 5 06:37:33 PDT 2008


On Sat, 05 Jul 2008 14:32:25 +0100, Christopher Wright  
<dhasenan at gmail.com> wrote:

> 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.

Documents (and requirements specs) can have bugs too.



More information about the Digitalmars-d mailing list