[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [coreutils] -avrd option ?
From: |
Yann |
Subject: |
Re: [coreutils] -avrd option ? |
Date: |
Tue, 21 Sep 2010 10:18:39 +0900 |
2010/9/20 Eric Blake <address@hidden>:
> On 09/20/2010 05:22 AM, Yann wrote:
>>
>> Dear all,
>>
>> I searched into "man cp" and the online manual, but did not find any
>> clue...
>>
>> What is the meaning of -avrd option after cp command ? (Is it the same
>> as -a option ?)
>
> POSIX requires support for option-letter compression, and GNU tools obey
> this by virtue of getopt_long(). That is:
>
> cp -avrd
>
> is strictly equivalent to:
>
> cp -a -v -r -d
>
> The basic rule of thumb is that you can omit ' -' after any short option
> that does not take an argument and which is followed by another short
> option. And for short options that take mandatory arguments, such as cp -t,
> you can omit the space between the option and its argument, so these are the
> same:
>
> cp -a -t . foo
> cp -at. foo
ok, thank you Eric !
~Yann