Hi,
I stumbled about another bash problem today:
for item in $(false);
echo $item
done || { echo for failed; }
doesn't fail. I think it's bad that there is no
set -e
like switch which really catches all failures of this kind.
If you want to ignore non zero exit status you can always use |
On Mon, 22 Jun 2009, Greg Wooledge wrote:
> On Fri, Jun 19, 2009 at 11:05:27AM -0700, bitozoid wrote:
> > > edua...@ceo ~ $ printf "%02d\n" 8
> > > -bash: printf: 8: invalid number
>
> > Sorry, not a bug, but octal representation. Really sorry.
>
> Others will make the sa
On Fri, Jun 19, 2009 at 11:05:27AM -0700, bitozoid wrote:
> > edua...@ceo ~ $ printf "%02d\n" 8
> > -bash: printf: 8: invalid number
> Sorry, not a bug, but octal representation. Really sorry.
Others will make the same mistake (it's very common), so for the
benefit of peop