#!/bin/bash
-# (C) 2006-2011 Andre Noll
+# Copyright (C) 2006 Andre Noll
+# Licensed under the LGPL, version 3. See COPYING and COPYING.LESSER.
_gsu_init_errors()
{
gsu_is_a_number()
{
result="$1"
- if (("$1" == "$1")) &> /dev/null; then
+ if [ "$1" -eq "$1" ] &> /dev/null; then
ret=$GSU_SUCCESS
else
ret=-$E_GSU_NOT_A_NUMBER