Dae pessoal!

Qual o valor m�ximo de codigo de retorno (return status) de uma fun�ao em
bash? 

Fiz uma funcao fat () em bash mas ela s� retorna valores menores que 1000 e
pouco... o unico modo de pegar o retorno � deste jeito a� em baixo?

-- corta --

#!/bin/bash
fat () {
        if [[ $1 = 1 || $1 = 0 ]] ; then
                return 1;
        fi

        fat $(($1 - 1))
        return $(($1 * $?))
} 

fat $1
echo $?

-- corta --

abra�os
T Vignatti


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Responder a