Command-line arguments
Lars Ivar Igesund
larsivar at igesund.net
Sat Jul 5 06:40:43 PDT 2008
Christopher Wright 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.
I agree that part should be available to the user.
--
Lars Ivar Igesund
blog at http://larsivi.net
DSource, #d.tango & #D: larsivi
Dancing the Tango
More information about the Digitalmars-d
mailing list