Skip to content
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
Closed

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

maxfl opened this issue Aug 8, 2012 · 4 comments
Milestone

Comments

@maxfl
Copy link
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
Copy link

Yes!

@ridiculousfish
Copy link
Member

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

@ridiculousfish
Copy link
Member

I think I agree. Should be fixed here:

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

@maxfl
Copy link
Contributor Author

maxfl commented Oct 16, 2012

thank you

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 19, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants