Command substitution in bash
(and other shells) is a very versatile technique, and it comes in many forms:
- Assigning command output to a variable
- Using command output as a parameter for another command
- Naming files after command output
- etc.
Many questions involving command substitution are effectively duplicates. However, due to the multitude of forms that command substitution takes, it's hard to close them as such. There seems to be no canonical question which could be used to link those new questions to.
People at Electronics SE had a similar experience with questions about power supplies, so they came up with this canonical question, and now have a happy life. If you need a PSU, they won't care if it's for your Arduino, mobile phone, toy robot or laptop: you'll have to understand basic concepts if you don't want your question closed. In my opinion, command substitution merits a similar canonical question here.
So, my questions are:
Do you think that duplicate questions revolving around command substitution concept are a problem, or is it just me?
If you do, how about we make a canonical question about this?