1
What was the point of [ “x$var” = “xval” ]?
In shell scripting you sometimes come across comparisons where each value is prefixed with "x". Here are some examples from GitHub:
Visit vidarholen.net → On Hacker News Apr 2017 – Jul 2025
Software Engineering 10Tools & Productivity 4Systems & Performance 2Programming Languages 2Math & Algorithms 1History & Retro Computing 1
In shell scripting you sometimes come across comparisons where each value is prefixed with "x". Here are some examples from GitHub:
There is a subreddit /r/nononoyes for videos of things that look like they’ll go horribly wrong, but amazingly turn out ok.