-
-
Notifications
You must be signed in to change notification settings - Fork 775
Open
Labels
area: docsChanges related to documentation.Changes related to documentation.
Description
Description
Hi! :)
Check out the documentation for reading the Taskfile from stdin. There is one example that simply does not work:
task -t - <(cat Taskfile.yaml)I think what you actually mean is one of these:
# input redirection
task -t - < Taskfile.yaml
# process substitution
task -t <(cat Taskfile.yaml)If you're not familiar with Bash process substitution (I'm unsure if a POSIX shell even supports that), run echo -t <(cat Taskfile.yaml), which will show you what the shell resolves this to. On my system, it gave me task -t /dev/fd/63, with /dev/fd/63 being the a name by which stdout of the cat Taskfile.yaml process can be accessed.
BTW: I think the examples implicitly assume Bash or a POSIX shell, which could be written in a more explicit way. That would be a major overhaul though.
Cheers!
Uli
Version
n/a
Operating system
Ubuntu 24.04
Experiments Enabled
No response
Example Taskfile
Metadata
Metadata
Assignees
Labels
area: docsChanges related to documentation.Changes related to documentation.