Re: Removing a file that starts with dashes

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



On Wed, Apr 02, 2014 at 07:59:28PM -0500, John R. Dennison wrote:
> On Wed, Apr 02, 2014 at 04:46:51PM -0700, benfell@xxxxxxxxxxxxxxxxx wrote:
> > 
> > This issue is all about shell interpretation--before the command
> > string even gets to the command.
> 
> Apparently zsh handles this differently from what was stated here
> earlier.  If this is indeed the case this is arguably a zsh bug.
> 
I don't know. I couldn't reproduce the behavior today:

[benfell@munich]~% print $SHELL
/bin/zsh
[benfell@munich]~% touch -- --DoingMyselfIn
[benfell@munich]~% ls -al -- --DoingMyselfIn
-rw-rw-r-- 1 benfell benfell 0 Apr  2 18:10 --DoingMyselfIn
[benfell@munich]~% rm -- --DoingMyselfIn
[benfell@munich]~% ls -al -- --DoingMyselfIn
ls: cannot access --DoingMyselfIn: No such file or directory
[benfell@munich]~% 

-- 
David Benfell <benfell@xxxxxxxxxxxxxxxxx>
See https://parts-unknown.org/node/2 if you don't understand the
attachment.

Attachment: pgp8pSW5SL6EK.pgp
Description: PGP signature

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux