On 16.10.2012 21:11, Gian Piero Carrubba wrote:
> +setlimits() {
> +  while [ $# -gt 0 ]; do
> +    parm=$1 ; shift
> +    if [ -n "$1" -a "${1#-}" = "$1" ]; then
> +      value=$1 ; shift
> +      ulimit $parm $value
> +    else
> +      ulimit $parm
> +    fi
> +  done
> +}
> +

> +test -n "$LIMITS" && setlimits $LIMITS

Can't you just do

 test -n "$LIMITS" && ulimit $LIMITS

?

/mjt


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to