Problem with arguments in Bash in console

61 views Asked by At

I have a Big problem and I don't know how can I solve this.

#!/bin/bash
function prueba(){
        valor=$1
        echo "Hola ${valor}"
}
prueba $valor

so, when i write in the console:

./beta1.sh prueba 123

print:

Hola

I expected to see:

Hola 123
0

There are 0 answers