We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19db7a9 commit b0df222Copy full SHA for b0df222
src/uu/echo/src/echo.rs
@@ -29,7 +29,8 @@ fn handle_double_hyphens(args: impl uucore::Args) -> impl uucore::Args {
29
let mut result = Vec::new();
30
31
for (i, arg) in args.enumerate() {
32
- if arg == "--" && i == 1 {
+ // check for argument at index 1 which is the first argument to echo (0 being "echo")
33
+ if i == 1 && arg == "--" {
34
result.push(OsString::from("--"));
35
}
36
result.push(arg);
0 commit comments