Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

echo differs from GNU coreutils #7

Closed
tryone144 opened this issue Sep 12, 2023 · 2 comments
Closed

echo differs from GNU coreutils #7

tryone144 opened this issue Sep 12, 2023 · 2 comments

Comments

@tryone144
Copy link
Member

The bundled echo command from the coreutils module in the examples handles its parameters differently than the "usual" GNU variant.

In particular, quotes (", ') are not filtered and passed from input to output (parameter -> stdout) verbatim.
Furthermore, the -n flag to omit the trailing newline seems to be ignored (newline is always present).
Screenshot CTO vs GNU

The improper handling of quotes might be a result of the used "local echo" implementation (see #6) and not an issue with the coreutils modules per-se.

@tryone144
Copy link
Member Author

After some further testing, it appears that neither echo from coreutils nor the "local echo" implementation is at fault here. We just don't properly parse the command line into argument parts.

@tryone144
Copy link
Member Author

Proper handling of the command line input (i.e. parsing) should be handled by the shell-quote dependency newly introduced in #9.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant