rupa / z

z - jump around
Do What The F*ck You Want To Public License
16.4k stars 1.17k forks source link

Fix special char escaping so `mawk` likes it #152

Closed somasis closed 9 years ago

somasis commented 9 years ago

One difference in functionality between GNU awk and mawk is that mawk does not like unescaped brackets as much as gawk does. As such, without this fix, you get a message whenever you run z <dir> from mawk, complaining about the unescaped bracket.

From my own testing, this works just fine across both mawk and GNU awk.