Hi Mikkel,
mikkel meinike wrote on Sun, Nov 02, 2014 at 08:31:08PM +0100:
> Ulrich Lauther wrote:
>> rose=${1%.pnm}
> Thank you ulrich. That is a good tip. Yes bash can do a lot of things
> by it self. I tend to always use the external commands.
Note that in portable software (and for build systems), you should
not blindly use random features of bash(1), but only features of the
portable POSIX shell, see
http://pubs.opengroup.org/onlinepubs/9699919799/
in this case
http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_06_02
In the case at hand, Ulrich is right, the percent syntax for suffix
removal *is* portable.
Yours,
Ingo