Live data from Hacker News

Enter a command to see help text for each arg

explainshell.com

11–20 of 30 posts

Re: Enter a command to see help text for each arg

#12
post #11

I think this is supposed to be a fork bomb? https://explainshell.com/explain?cmd=%3A%28%29%7B%20%3A%7C%3... That's not clear at all from the explanation.

It seems to explain everything correctly though? Read through and it should make sense why it is a fork bomb .

Re: Enter a command to see help text for each arg

#14
The service is pretty neat. It's probably parsing the man pages somehow to create this. I wonder if it would be possible to utilize this parsed information to create type checking tools for shell scripts... Something which checks if correct count of arguments is given for command etc.

Re: Enter a command to see help text for each arg

#16
post #9

Imagine if a programming language had at least two compilation targets from the start: machine code/byte code and prose.

This is a really neat idea! I wonder how close you could get the prose to actually explaining the codes purpose as opposed to just saying "this is a for loop"?

The purpose (intent) wouldn’t be explained, but it could be useful for tools which have oddball syntax and are only used sometimes (infrequent enough for you to forget).

Re: Enter a command to see help text for each arg

#17
post #14

The service is pretty neat. It's probably parsing the man pages somehow to create this. I wonder if it would be possible to utilize this parsed information to create type checking tools for shell scripts... Something which checks if correct count of arguments is given for command etc.

You can see how the parsing works in the source code (with a specific high level explanation of how this part works), as the site is an open source project.

https://github.com/idank/explainshell#how

Post reply on HN