Vidar Holen personal blog

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:
Points
414
HN comments
437
Submissions
3
Cited by
0 commenters

Software EngineeringProgramming Languages2021

On Hacker News

SubmittedTitle on HNPointsComments
Apr 12, 2021What was the point of [ “x$var” = “xval” ]? by JNRowe414227
Mar 4, 2023What was the point of [ “x$var” = “xval” ]? (2021) by pabs3257161
Sep 28, 2024What was the point of [ "x$var" = "xval" ]? (2021) by fanf28249

More from Vidar Holen

All 10 posts →

Related posts from the same era