On Wed, 4 Nov 2020 16:05:22 -0800, Charles Mills wrote:

>That's it! In some of my screwing around I managed to create a file name -x 
>unintentionally.
>
e.g. "touch foo -x".  Even if the apparent option results from
wildcard expansion.  And "-" may collate early.

>A bear to delete. Luckily in looking for something else I read about --. rm -- 
>-x deletes it.
> 
Since each utility interprets its arguments, some may not respect "--",
even if POSIX requires it.  "./-x" is more reliable.

-- gil

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to