bug-gawk
[Top][All Lists]
Advanced

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

[bug-gawk] Missing double quotes in SYMTAB example in docs


From: Jaromir Obr
Subject: [bug-gawk] Missing double quotes in SYMTAB example in docs
Date: Sun, 10 Jul 2016 19:24:31 +0200

Hi,

in https://www.gnu.org/software/gawk/manual/gawk.html#index-differences-in-awk-and-gawk_002c-SYMTAB-variable there is an example:

# Indirect multiply of any variable by amount, return result
function multiply(variable, amount)
{
    return SYMTAB[variable] *= amount
}

There are missing double quotes around variable, aren't they ? (expected isĀ return SYMTAB["variable"] *= amount

Regards

Jaromir

reply via email to

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