Missing popover description of process/command substitutions
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 14.2k
- Forks
- 851
- PR merge metrics
- No merged PRs in 30d
Description
explainshell doesn't seem to understand bash's process substitution syntax. E.g. for this common snippet:
comm -2 -3 <(sort file1) <(sort file2) > file3
The two sorts are marked together as ?. It still lets you click on each one to see the sort explained, but no explanation of the syntax is otherwise given. A comment on what this means in the context of the outer command would be elucidative. If you don't know what it's called googling for <( ) is very hard!
Docs: http://wiki.bash-hackers.org/syntax/expansion/proc_subst
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the Bash example comm -2 -3 <(sort file1) <(sort file2) > file3 and read the linked Bash process-substitution documentation. Trace how explainshell groups and displays the two substitutions, then add a contextual explanation for the syntax in the outer command and verify that the nested sort commands remain individually explainable.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- bash, python
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100