[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Proposed integration of 'man awk'
From: |
Ennio-(Sr) |
Subject: |
Proposed integration of 'man awk' |
Date: |
Mon, 24 Apr 2006 17:16:40 +0200 |
User-agent: |
slrn/0.9.8.1 (Debian) |
Hi all!
Kind attn of Arnold Robbins
^^^^^^^^^^^^^^^^^^^^^^^^^^^
[Sorry if this is not formally correct, but I was unable to find
the 'canonical' way to submit a 'diff'.]
In the message of Date: Sun, 23 Apr 2006 00:52:13 +0200 on
Newsgroups: comp.lang.awk
Subject: Re: Multiple conditional expression?
Jürgen Kahrs <address@hidden> suggested me to:
> Insert the sentence above into the file doc/gawk.1
> and post a diff to gnu.utils.bug. Arnold Robbins will
> eventually read the posting and may apply the patch to
> his source tree.
Having no idea on how to do that I'm copying the sentence:
"Beware, however, that locale settings may interfere with the way"
"decimal numbers are treated: the decimal separator of the numbers you"
"are feeding to awk must conform to what your locale would expect, be it"
"a comma (,) or a period (.)."
which could be added at the end of the following para of man awk:
> > Variable Typing And Conversion
> > Variables and fields may be (floating point) numbers, or strings,
> > or
> > both. How the value of a variable is interpreted depends upon its
> > con-
> > text. If used in a numeric expression, it will be treated as a
> > number,
> > if used as a string it will be treated as a string.
> > To force a variable to be treated as a number, add 0 to it; to force
> > it
> > to be treated as a string, concatenate it with the null string.
> >
to recall newbies' attention on potential problems with locale setting when
dealing with numbers in awk.
Thanks for your attention.
Regards,
Ennio.
--
[Perche' usare Win$ozz (dico io) se ..."anche uno sciocco sa farlo. \\?//
Fa' qualche cosa di cui non sei capace!" (diceva Henry Miller) ] (°|°)
Ennio. (Please change . for .dot. and @ for .at. in my Reply-To) )=(
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Proposed integration of 'man awk',
Ennio-(Sr) <=