Why echo $1 doesn't print $1 in this simple bash script?
#!/bin/bash
# function.sh
print_something () {
echo $1
}
print_something
$ ./function.sh 123 -> why does not print '123' as result?
Why echo $1 doesn't print $1 in this simple bash script?
#!/bin/bash
# function.sh
print_something () {
echo $1
}
print_something
$ ./function.sh 123 -> why does not print '123' as result?