shell.how icon indicating copy to clipboard operation
shell.how copied to clipboard

Fails to parse some commands

Open amorriscode opened this issue 3 years ago • 4 comments

Hey there!

It looks like we can break the command parsing pretty easily. Here are some examples:

  • https://www.shell.how/tar%20xzf%20foo.tar.gz (tar xzf foo.tar.gz)
  • https://www.shell.how/ls%20-lah (ls -lah)

amorriscode avatar Mar 23 '22 20:03 amorriscode

Tks for reporting @amorriscode. A fix is shipped, the later command worked now!

phuctm97 avatar Mar 24 '22 08:03 phuctm97

Same thing here - try this: cat $(find . -name "*.py") | grep -E -v '^\s*$|^\s*#' | wc -l . The error is : -n: option is unknown. whereas on https://explainshell.com/ the website parses the command correctly. See: https://explainshell.com/explain?cmd=cat+%24%28find+.+-name+%22*.py%22%29+%7C+grep+-E+-v+%27%5E%5Cs*%24%7C%5E%5Cs*%23%27+%7C+wc+-l

OlliePage avatar Mar 28 '22 07:03 OlliePage

Using redirection >> Just mention it like an "argument"

rafariva avatar Sep 03 '22 13:09 rafariva

This also fails to parse sudo commands

sasial-dev avatar Sep 13 '22 04:09 sasial-dev