29 Jul
2008
29 Jul
'08
2:22 a.m.
Aaron Griffin wrote:
On Mon, Jul 28, 2008 at 4:12 PM, Xavier <shiningxc@gmail.com> wrote:
What about handling it just like a normal variable ? [xavier@nx7400 ~]$ array=({foo,bar,baz}) [xavier@nx7400 ~]$ [ -z "$array" ] || echo array not empty array not empty [xavier@nx7400 ~]$ unset array [xavier@nx7400 ~]$ [ -z "$array" ] || echo array not empty [xavier@nx7400 ~]$
That'd work, except for cases of idiocy, like... array=('' {foo,bar,baz})
That would be telling makepkg to strip files in / so that is multiple-idiocy to me - firstly for putting files in / and secondly for realizing it and thinking it would be a good idea to strip them. I am happy to go with that fix and will point and say idiot to any person who strikes this... Allan