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

Re: Accented chars in filenames issue



On 06/26/11 at 09:45pm, Scott Ferguson wrote:
> On 26/06/11 19:25, Tom Furie wrote:
> > On Sat, Jun 25, 2011 at 03:20:13PM +1000, Scott Ferguson wrote:
> >> On 25/06/11 10:16, lee wrote:
> 
> <snipped>
> 
> > You can't have tried very hard then: 'touch -- "-rf *"'.
> > 
> <snipped>
> > 
> > Cheers,
> > Tom
> > 
> 
> You are (also) correct.
> Turns out there's a number of ways to do that.
> 
> What does the "--" do??

POSIX standard is for -- to signify end of options, so anything beyond that
cannot be processed as a switch/option.

,-----------
| Guideline 10:
|   The first -- argument that is not an option-argument should be accepted as
| a delimiter indicating the end of options. Any following arguments should be
| treated as operands, even if they begin with the '-' character.
,-----------

-- 
Liam

Attachment: signature.asc
Description: Digital signature


Reply to: