File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -34,7 +34,8 @@ whose names match a predefined prefix/regexp.
3434 This option doesn't work when ` -v ` is used.
3535* ` -p regexp ` : Limit substitution to variables that match this prefix.
3636 You can use some regular expression as prefix.
37- Default to ` [^}]+ ` .
37+ Default to ` [^}]+ ` . Can be used as an alternative
38+ to ` SHELL-FORMAT ` option in the original GNU ` envsubst `
3839
3940It's highly recommended to use ` -u ` option. It's the original idea
4041why this tool was written.
@@ -65,8 +66,9 @@ To limit substitution to variables that match some prefix, use `-p` option:
6566The second command raises an error because the variable ` TEST_VAR ` matches
6667the expected prefix ` TEST_ ` and its value is not set.
6768
68- You can also specify exactly a few variables to be substituted (which is exactly an alternative
69- to the ` shell-format ` in the original GNU tool ` envsubst ` :
69+ You can also specify exactly a few variables to be substituted
70+ (which is exactly an alternative to the ` shell-format ` option
71+ in the original GNU tool ` envsubst ` ):
7072
7173 $ echo '${TEST_VAR}' | ./genvsub -u -p 'VAR_NAME_3|VAR_NAME_3|VAR_NAME_3'
7274
You can’t perform that action at this time.
0 commit comments