On Sun, Jun 29, 2025 at 06:39:18 -0600, Stan Marsh wrote:
> Note, incidentally, that it is not strictly true that a negative offset has
> to be preceded by a space. A zero will work as well. And I think that is
> clearer. I.e., instead of:
>
> # Print the last 2 characters of $HOME
> $ echo ${HOME: -2}
>
> You can do:
>
> $ echo ${HOME:0-2}
Or ${HOME:(-2)} if you like.
