ruben safir wrote:
> _pkgname=${pkgname%-*}
>
> What exactly does this do?
It sets parameter $_pkgname with a value derived from the parameter $pkgname
The shell will expand ${pkgname%-*} into a string containing all the
characters from the expansion of $pkgname stopping at (and not including)
the rightmost hyphen and any characters that follow it.
For example, if
$pkgname
expands to "abc-def-ghi" then
${pkgname%-*}
expands to "abc-def"
[snip]
--
Lew Pitcher
"In Skills, We Trust"
PGP public key available upon request