1 |
Dne 31.8.2011 17:30, Michał Górny napsal(a): |
2 |
> |
3 |
>> DEPEND="sys-apps/gawk" |
4 |
> |
5 |
> gawk is in the system set. If you really want to DEP on it explicitly, |
6 |
> maybe we should create a virtual, as any POSIX-compliant awk will |
7 |
> handle this. |
8 |
> |
9 |
>> # Temporary workaround for unset units. |
10 |
>> # Backcompat. |
11 |
>> [[ "${unit//*([[:digit:]])}" ]] || unit="M" |
12 |
>> |
13 |
>> case ${unit} in |
14 |
>> G) echo "Gibibytes" ;; |
15 |
>> M) echo "Mebibytes" ;; |
16 |
>> T) echo "Tebibytes" ;; |
17 |
>> *) |
18 |
>> die "${FUNCNAME}: Unknown unit: ${unit}" |
19 |
>> ;; |
20 |
>> esac |
21 |
>> } |
22 |
> |
23 |
> case ${unit} in |
24 |
> [M0-9]) echo "mebibytes" ;; |
25 |
> ... |
26 |
> |
27 |
> And yes, they actually shall be written lowercase [1]. |
28 |
> |
29 |
> [1]:http://www.bipm.org/en/si/si_brochure/chapter5/5-2.html |
30 |
> |
31 |
Wonder if it would not be easier just to talk on irc so we don't bother |
32 |
everyone :P |
33 |
|
34 |
Anyway addressed :) |