> DEPEND="sys-apps/gawk"

gawk is in the system set. If you really want to DEP on it explicitly,
maybe we should create a virtual, as any POSIX-compliant awk will
handle this.

>       # Temporary workaround for unset units.
>       # Backcompat.
>       [[ "${unit//*([[:digit:]])}" ]] || unit="M"
> 
>       case ${unit} in
>               G) echo "Gibibytes" ;;
>               M) echo "Mebibytes" ;;
>               T) echo "Tebibytes" ;;
>               *)
>                       die "${FUNCNAME}: Unknown unit: ${unit}"
>               ;;
>       esac
> }

case ${unit} in
        [M0-9]) echo "mebibytes" ;;
        ...

And yes, they actually shall be written lowercase [1].

[1]:http://www.bipm.org/en/si/si_brochure/chapter5/5-2.html

-- 
Best regards,
Michał Górny

Attachment: signature.asc
Description: PGP signature

Reply via email to