-
Notifications
You must be signed in to change notification settings - Fork 152
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
parameter expansion pattern replacement does not match empty string at beginning/end #29
Comments
Agreed, and zsh behaves the same as bash as well. |
Not sure if this is a bug or a legitimate implementation difference. Nothing in the ksh93 man page says that the pattern following yash does not recognise an empty pattern there either. |
It's just a difference between how shells behave differently on empty patterns like '#' and '%'. POSIX does not define how |
Yes. It could be a feature request instead of a bug. This does seems like a rather convoluted way of adding something to the beginning or end of a variable. You can simply string them together like |
bash and zsh don't agree about empty patterns. Given try.sh with
then
Here ksh acts like bash. |
But the pattern reported was
Meh. I'm with @siteshwar ... close as not a bug. |
ksh ignores empty string pattern and does not perform substitution
by contrast bash matches and substitutes as expected
The text was updated successfully, but these errors were encountered: