Skip to content
This repository was archived by the owner on Dec 29, 2021. It is now read-only.
This repository was archived by the owner on Dec 29, 2021. It is now read-only.

echo "42" #15

Closed
Closed
@colin-kiegel

Description

@colin-kiegel

when I run echo "42" on my shell it prints 42, just as echo 42 does.

However

assert_cmd!(echo "42").succeeds().prints("\"42\"").unwrap();

Assert::command(&["echo", "\"42\""]) behaves identical.

I would have naively expected the behaviour from my shell. But I don't know how other shell APIs behave. Is there any particular reason for the current behaviour?

PS: I'll get to the code too .. I'm just familiarizing myself with this crate first. :-)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions