Description
The documentation says that environment variables set through env can be used as $VAR. But this Taskfile (slightly modified from the example in the docs) fails:
version: '3'
env:
GREETING: Hey, there!
tasks:
greet:
cmds:
- echo Greeting = $GREETING
Output:
> task greet
task: [greet] echo Greeting = $GREETING
Expected:
> task greet
task: [greet] echo Greeting = Hey, there!
Side note: This syntax worked until recently.
Version
3.44.1
Operating system
macOS Sequoia 15.5
Experiments Enabled
No response
Example Taskfile
version: '3'
env:
GREETING: Hey, there!
tasks:
greet:
cmds:
- echo $GREETING
Description
The documentation says that environment variables set through
envcan be used as$VAR. But this Taskfile (slightly modified from the example in the docs) fails:Output:
Expected:
Side note: This syntax worked until recently.
Version
3.44.1
Operating system
macOS Sequoia 15.5
Experiments Enabled
No response
Example Taskfile