bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Unexpected result while constructing strings


From: Hermann Peifer
Subject: Unexpected result while constructing strings
Date: Sat, 30 Oct 2010 13:05:01 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.2.12) Gecko/20101027 Thunderbird/3.1.6

Hello Arnold,

I found this somewhat unexpected result while constructing strings. I am not quite sure if this is a bug or rather a feature.

$ gawk-stable/gawk 'BEGIN{a = "str" FS ++c ; print a}' | cat -A
str0$

This works as expected:

$ gawk-stable/gawk 'BEGIN{a = "str" FS c ; print a}' | cat -A
str $

$ gawk-stable/gawk 'BEGIN{a = "str" (FS) ++c ; print a}' | cat -A
str 1$

Hermann



reply via email to

[Prev in Thread] Current Thread [Next in Thread]