It seems
USER_NAME=abc task ctx:greet_user works on linux
but
task ctx:greet_user USER_NAME=abc does not work on linux.
version: '3'
tasks:
greet_user:
desc: "Greet the user with a name."
vars:
USER_NAME:
sh: 'echo "${USER_NAME:-DefaultUser}"'
cmds:
- echo "Hello, {{.USER_NAME}}!"