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

Problematic Characters in Path? #54

Closed
baskerville opened this issue Jul 3, 2012 · 6 comments
Closed

Problematic Characters in Path? #54

baskerville opened this issue Jul 3, 2012 · 6 comments

Comments

@baskerville
Copy link
Contributor

It seems like brackets in file names with lead to tricky situations:

awk: cmd. line:32: (FILENAME=- FNR=67) fatal: Invalid range end: //home/foo/bar/Foo.-.[12-3-4567]/
@rupa
Copy link
Owner

rupa commented Jul 3, 2012

Just tested it out, completion seems to work OK, to use brackets in search patterns looks like you have to double escape them eg z \\[12-3

@baskerville
Copy link
Contributor Author

I didn't type any bracket characters, just:

z Foo

@rupa
Copy link
Owner

rupa commented Jul 3, 2012

Hmm, I can't reproduce that. Am I doing anything different than you?

~$ mkdir Foo.-.\[12-3-4567\]
~$ cd Foo.-.[12-3-4567]
~/Foo.-.[12-3-4567]$ cd
~$ z Foo
~/Foo.-.[12-3-4567]$

@baskerville
Copy link
Contributor Author

If I do the same thing, I get the aforementioned error after the last command:

awk: cmd. line:32: (FILENAME=- FNR=73) fatal: Invalid range end: //home/me/Foo.-.[12-3-4567]/

@rupa
Copy link
Owner

rupa commented Jul 3, 2012

Huh, what OS are you using. If it's a *nix, what awk is installed (on the Ubuntu machine I'm on at the moment it's mawk)?

@baskerville
Copy link
Contributor Author

Arch Linux, gawk 4.0.1.

@rupa rupa closed this as completed in 9162239 Jul 4, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants