Re: Simple question regarding touch and mv

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Roger Heflin wrote:
> 
>>>   
>>
>> Don't some programs interpret -- as stdin?
>>
>>
>>
> 
> No.
> 
> But some programs do interpret -- as no more options after this.
> 
> so:
> 
> "touch -- -foo" will work as the -- tells touch that there are no
> options after this.
> 
I think it works for almost all command line programs - probably all
the ones written in C. I believe it is build into the library
function that separates out options. ./-foo also works because you
are giving the path, so the - is not seen as an options. (./ = in
current directory.)

Mikkel
-- 

  Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!

Attachment: signature.asc
Description: OpenPGP digital signature

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux