this post was submitted on 17 Jun 2026
-5 points (36.8% liked)
Explain Like I'm Five
21442 readers
113 users here now
Simplifying Complexity, One Answer at a Time!
Rules
- Be respectful and inclusive.
- No harassment, hate speech, or trolling.
- Engage in constructive discussions.
- Share relevant content.
- Follow guidelines and moderators' instructions.
- Use appropriate language and tone.
- Report violations.
- Foster a continuous learning environment.
founded 3 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
$indicates that the string following is an env variable, but you just have a closing quote, so bash is confused.If you want the literal character
$in your command, you must escape it:\$Edit: afaik my answer does not change based on the fact that this is
fishinstead ofbashorzsh. The$is outside of the single quotes, and is thus being interpreted as an env var anchor.They are using fish, FYI. Not sure how much of a difference this makes.
Fish is different ?
Of course. It could work totally different from bash.
To be fair I saw some cool fish stuff and thought about using it but when maintaining a few thousand servers with bash its not viable to load an alternative shell to all of them.