Re: [List] Re: [List] Re: Nice easy sed question

From: Dag-Erling_Smørgrav <des_at_FreeBSD.org>
Date: Sat, 04 Oct 2025 20:33:56 UTC
Frank Leonhardt <freebsd-doc@fjl.co.uk> writes:
> Bob Proulx <bob@proulx.com> writes:
> > Dag-Erling Smørgrav <des@FreeBSD.org> writes:
> > > Incorrect, dollar-quoted strings are part of POSIX.
> > Ah!  I always thought that was in the extensions.  I wonder if it was
> > at one time and then it was promoted?  [...]
> I second Bob! You've linked to a very useful page there. I note it's
> 2024, so I'd be a bit careful of using all of it but at least I can
> point to it and say "It's POSIX so it's not my fault" :-) It says
> ${#parameter} is definitely POSIX, which is another thing I've avoided
> until now.

Parameter length existed in Issue 6 (2001), and probably much earlier,
but I didn't bother going further back in time.  Dollar-single-quotes
were added in Issue 8 (2024) but the decision to do so was made around
2010 or 2011 (https://www.austingroupbugs.net/view.php?id=249) and
support for them was added to FreeBSD in 2011 (svn r221513 / git
a62ab0274a1a).  They are, perhaps unsurprisingly, a Kornism.

DES
-- 
Dag-Erling Smørgrav - des@FreeBSD.org