Hi,
While playing around with parameter expansion I noticed that the
following didn't work in dash (dash 0.5.5.1-7.4ubuntu1) as compared
to bash even though I believe it should be POSIX-compliant:
my_str=swan; last_char="${my_str#${my_str%?}}"; echo ${last_char}
If the double quotes are removed, the last character is printed correctly.
At a quick glance through the commits after the 0.5.5.1 release I saw
the following bug fix. Could it be related?
0d7d66039b614b642c775432fd64aa8c11f9a64d
[EXPAND] Fix quoted pattern patch breakage
Thanks,
Todor
--
To unsubscribe from this list: send the line "unsubscribe dash" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html