Skip to content

Faulty documentation for reading Taskfile from stdin #2610

@UlrichEckhardt

Description

@UlrichEckhardt

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

No one assigned

    Labels

    area: docsChanges related to documentation.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions