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
Description
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. :-)