Re: Help needed with debconf
"Christoffer Sawicki" <qerub@home.se> wrote:
>> Thanks... are there any more pitfalls like this?
>
> [ expr -a expr ] is a pretty common "mistake".
> [ expr ] && [ expr ] should be used instead.
> (The same with OR.)
Another common one (and somewhat annoying, since the bash feature is
rather useful) is path expansion with curly braces as in
/etc/{foo,bar}/baz.
If there are many components to expand, replacing such constructs with
'for' loops is usually acceptable (if you don't want to use bash, of
course).
--
Florent
Reply to: