-
Notifications
You must be signed in to change notification settings - Fork 80
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
Regular Expressions: Escape character #9
Comments
Backslashes are not special with default
Your issue is probably mentioned in this thread: https://unix.stackexchange.com/questions/65803/why-is-printf-better-than-echo Edit: That said, I just checked it from my TUI apps and I see the behavior as you mention. I'll look into it further or may be just use |
Okay, thanks for the answer. Btw, I see the same behavior with printf. |
Ah, I meant |
I've fixed this and similar other examples to use |
Hi, in the regular expressions chapter, I found an inaccuracy related to escaping characters in the incoming input.
Matching the metacharacters
Using string literal as a regexp
In these examples, we don't escape the incoming text
'\learn\\by\\example'
with extra slashes and so echo returns the wrong string\learyample
on pipe for awk.The text was updated successfully, but these errors were encountered: