REGEX Option Syntax Issue with Case #647
-
Hello. My name is Russ, and I am new to this community since I have only recently discovered it. I have been writing Korn Shell scripts since 1990 and am very pleased to find this project. Since the issue came up in r/ksh about EREs in globbing, I have been experimenting with REGEX in various contexts and have run across a curious behavior in case blocks. This bit of code:
returns the following error in u+ and u+m:
But, the following prints 'YES':
Why would the first not work, and why would an empty string prefixed to the pattern make it work? Cheers, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Welcome. :) I think you found another bug. It makes no sense that these should be different. |
Beta Was this translation helpful? Give feedback.
-
An initial set of testing reveals the syntax error was introduced by the changes made in ksh93t 2008-10-31. Subsequently, this is what the changelog for that version says: Lines 1225 to 1229 in cfba37d |
Beta Was this translation helpful? Give feedback.
Welcome. :)
I think you found another bug. It makes no sense that these should be different.