ENOSIG Discussie (threads)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bash append
Edwin Mons wrote on 20130114:
> Op 14 jan 2013, om 18:12 heeft casper-enosig@xxxxxxxxxxx het volgende geschreven:
>> Op 14-01-13 17:59, H schreef:
...
>>> [ -f /isernie ] || (
>>> TODO+=' noot.'
>>> )
...
>> Your problem is that TODO+=' noot.' is executed inside a subshell, as
>> denoted by the parenthesis ( and ) .
Ah yes of course. Thanks for the headsup.
> What's wrong with
>
> if [ ! -f /isernie ]; then
> TODO+=' noot'
> fi
>
> and avoid the sub-shell problem altogether (test/[ is internal in bash)?
Even better. Thanks.
-- Hans
Gerelateerd:
[
Date Index]
[
Thread Index]