Re: getopts appears to not be shifting $@ when consuming options

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

set -- -a foo -a bar # for testing
while getopts :a: arg; do
...

You can use typical array cryptic emulation with dash for this :)

But i can not send this cryptic script to maillist, his parser crashing:
"for recipient address <dash@xxxxxxxxxxxxxxx> the policy analysis reported:
zpostgrey: Read timed out !!!" :))

See ftp://simtreas.ru/pub/my/dash/arg2array.sh


--v
vodz



[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux