|
From: | david kerns |
Subject: | Re: [bug-gawk] Missing double quotes in SYMTAB example in docs |
Date: | Sun, 10 Jul 2016 13:25:49 -0700 |
# Indirect multiply of any variable by amount, return result
function multiply(a, b) { return SYMTAB[a] *= b }
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 resultfunction multiply(variable, amount) { return SYMTAB[variable] *= amount }There are missing double quotes around variable, aren't they ? (expected isĀ return SYMTAB["variable"] *= amountRegardsJaromir
[Prev in Thread] | Current Thread | [Next in Thread] |