Re: [List] Re: [List] Re: Nice easy sed question
- Reply: Frank Leonhardt : "Re: Nice easy sed question"
- In reply to: Frank Leonhardt : "Re: [List] Re: [List] Re: Nice easy sed question"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
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