Skip to content

New potential error proposal: piping into eval without operands #522

@Artoria2e5

Description

@Artoria2e5

There is a common mistake in new users:

echo echo 1 | eval

The correct method is:

source <(echo echo 1)
eval "$(echo echo 1)"

This is observed at https://unix.stackexchange.com/questions/238582. Some of my friends sometimes make this mistake, too.

This error is serious and almost definite.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions