A better approach is to check whether the directory exists first, for example use -d.
Don't handle known conditions as "exceptional" ones.
In reply to Re: store a warning in a variable
by PeterPeiGuo
in thread store a warning in a variable
by bazong
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |