From: Daniel Stenberg Date: Wed, 2 Aug 2023 06:31:21 +0000 (+0200) Subject: variable.d: setting a variable again overwrites it X-Git-Tag: curl-8_3_0~242 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4169943d15d9a6b47de5f41bdafe251fa3615968;p=thirdparty%2Fcurl.git variable.d: setting a variable again overwrites it Reported-by: Niall McGee Bug: https://twitter.com/niallmcgee/status/1686523075423322113 Closes #11571 --- diff --git a/docs/cmdline-opts/variable.d b/docs/cmdline-opts/variable.d index 99dadc3b86..fb638d5f51 100644 --- a/docs/cmdline-opts/variable.d +++ b/docs/cmdline-opts/variable.d @@ -14,8 +14,8 @@ if set to a single dash (-)). The name is a case sensitive identifier that must consist of no other letters than a-z, A-Z, 0-9 or underscore. The specified content is then associated with this identifier. -The name must be unique within a command line invoke, setting the same -variable name again will be ignored. +Setting the same variable name again will overwrite the old contents with the +new. The contents of a variable can be referenced in a later command line option when that option name is prefixed with "--expand-", and the name is used as