bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mishandled backslashes in patternvar in ${var#...$patternvar...} ?


From: Robert Elz
Subject: Re: Mishandled backslashes in patternvar in ${var#...$patternvar...} ?
Date: Sat, 09 Aug 2025 14:38:26 +0700

And one further comment, please stop using echo for tests like
this, use printf instead ... when these tests are run in a system
or shell where echo uses the SysV rules, then the results aren't what
you'd expect, all because the echo is changing the strings behind
the scenes (you don't get to see the actual input or results).

kre



reply via email to

[Prev in Thread] Current Thread [Next in Thread]