|
From: Branden A. <b.m...@gm...> - 2015-12-23 04:55:52
|
James,
Thanks for the patch, and sorry for not getting around to it before now.
Can you describe why the patch is necessary? Namely, does the awk on
Solaris not work as it does on GNU/Linux with respect to escapes in strings
for regular expressions?
I'm not as familiar with awk, so I attempted a little experiment to see how
awk on my system works when either escaping a special character with one
slash:
$ printf "\a" | xxd
0000000: 07 .
$ printf "\a" | awk '{if ($0 ~ "[\a]") print }' | xxd
0000000: 070a ..
$
or with two slashes:
$ printf "\a" | xxd
0000000: 07 .
$ printf "\a" | awk '{if ($0 ~ "[\\a]") print }' | xxd
$
The behavior is different. Namely, at least for OSX escaping with two
slashes does not match the bell character, but escaping with one slash does.
Does this behavior match that on Solaris, or is it the opposite? If so, is
there gawk <https://www.gnu.org/software/gawk/> available on your system
which could be used instead?
- Branden
On Fri, Dec 4, 2015 at 2:49 PM, Morris, James <jm...@us...> wrote:
> I have attached a patch for checkmk so the awk script will run under
> Solaris. This is for version 0.10.0.
>
> Jim
>
>
> ------------------------------------------------------------------------------
> Go from Idea to Many App Stores Faster with Intel(R) XDK
> Give your users amazing mobile app experiences with Intel(R) XDK.
> Use one codebase in this all-in-one HTML5 development environment.
> Design, debug & build mobile apps & 2D/3D high-impact games for multiple
> OSs.
> http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140
> _______________________________________________
> Check-devel mailing list
> Che...@li...
> https://lists.sourceforge.net/lists/listinfo/check-devel
>
>
|