Re: Question about Shell Script.

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



On Fri, Jan 30, 2009 at 13:59, R P Herrold <herrold@xxxxxxxxxx> wrote:
> or for those who are used to being burned:
>      [ 0$NUMBEROFPRO -gt 150 ]

Still going to explode if $NUMBEROFPRO contains spaces. Putting in
double quotes will not help you either, since it will complain about
it not being numeric...

Doing math with the shell is always tricky, almost never robust...

Filipe
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux