On Saturday, June 13, 2015 06:59:21 AM Janis Papanagnou wrote:
It seems that ksh's printf %R is producing wrong results for negated
glob-patterns:
$ printf %R\n !(*bak)
^(.*bak)!$
$ echo $'abc\nabcbak\ndef' | grep -E '^(.*bak)!$'
...empty result...
[...]
Is a regex
On Saturday, June 13, 2015 06:59:21 AM Janis Papanagnou wrote:
It seems that ksh's printf %R is producing wrong results for negated
glob-patterns:
$ printf %R\n !(*bak)
^(.*bak)!$
$ echo $'abc\nabcbak\ndef' | grep -E '^(.*bak)!$'
...empty result...
I'm aware that a conversion of a
It seems that ksh's printf %R is producing wrong results for negated
glob-patterns:
$ printf %R\n !(*bak)
^(.*bak)!$
$ echo $'abc\nabcbak\ndef' | grep -E '^(.*bak)!$'
...empty result...
I'm aware that a conversion of a negation glob to regexp is not trivial to
implement,
but I'd like to know: