Skip to content

Commit 2c2a766

Browse files
authored
Merge pull request rpm-software-management#56 from dmnks/bz1411692
docs: clarify variable name matching
2 parents 82dd6c8 + 29367e4 commit 2c2a766

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs/yum.conf.5

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1340,6 +1340,13 @@ the same name. If the shell environment variable does not exist then the
13401340
configuration file variable will not be replaced.
13411341

13421342
.LP
1343+
When variable names are parsed in a string, all alphanumeric characters and
1344+
underscores immediately following a $ sign are interpreted as part of a name.
1345+
If a variable is undefined, it will not be replaced.
1346+
For example, the strings $releasever-foo or $releasever/foo will be expanded
1347+
with the $releasever value accordingly, whereas $releaseverfoo or
1348+
$releasever_foo will not be expanded.
1349+
13431350
As of 3.2.28, any properly named file in /etc/yum/vars is turned into
13441351
a variable named after the filename (or overrides any of the above variables).
13451352
Filenames may contain only alphanumeric characters and underscores

0 commit comments

Comments
 (0)