GothenburgBitFactory / GothenburgBitFactory/taskwarrior
new environment variable expansion in rcfile does not extend to command line
Open
eval:reproduced
type:bug
- Dominant language
- C++
- Stars
- 6.1k
- Forks
- 423
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 11
Description
the changes from GothenburgBitFactory/libshared#63 pass rcfile values through libshared `Path::expand()`, allowing to expand environment variables:
```
$ echo "rc.alias.foo=$foo >> ~/.taskrc"
$ foo=bar src/task show alias.foo | grep alias
alias.foo bar
```
but this expansion doesn't happen when the values come from the command line instead of rcfile:
```
$ sed -i /alias.foo/d ~/.taskrc
$ foo=bar src/task rc.alias.foo='$foo' show alias.foo | grep alias
alias.foo $foo
```
not sure if this is by design or oversight
Contributor guide
Assessment
This issue has not been assessed yet.