New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.* should not match '.' and '..' folders #270

Closed
maxfl opened this Issue Aug 8, 2012 · 4 comments

Comments

Projects
None yet
3 participants
@maxfl
Contributor

maxfl commented Aug 8, 2012

Current behaviour is quite annoying, because in most of cases you do not want '.' and '..' directories to be matched.
Especially it is dangerous for "rm -R * .*".

In any case when one needs '.' and '..' folders they can be added explicitly: 'echo . .. .*'.

So I propose to remove '.' and '..' from filenames expansion.

@levantis

This comment has been minimized.

Show comment
Hide comment
@levantis

levantis commented Aug 16, 2012

Yes!

@ridiculousfish

This comment has been minimized.

Show comment
Hide comment
@ridiculousfish

ridiculousfish Oct 14, 2012

Member

Looks like bash, tcsh, ksh do include . and .., zsh does not.

Member

ridiculousfish commented Oct 14, 2012

Looks like bash, tcsh, ksh do include . and .., zsh does not.

@ridiculousfish

This comment has been minimized.

Show comment
Hide comment
@ridiculousfish

ridiculousfish Oct 16, 2012

Member

I think I agree. Should be fixed here:

To git@github.com:fish-shell/fish-shell.git
3d5a3f0..833abc2 master -> master

Member

ridiculousfish commented Oct 16, 2012

I think I agree. Should be fixed here:

To git@github.com:fish-shell/fish-shell.git
3d5a3f0..833abc2 master -> master

@maxfl

This comment has been minimized.

Show comment
Hide comment
@maxfl

maxfl Oct 16, 2012

Contributor

thank you

Contributor

maxfl commented Oct 16, 2012

thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment