Is there a way to declare and pass parameters for shell functions, like so ?
function msg( m )
{
read -p "Task #" + m + "done. Press any key to continue
}
|
Is there a way to declare and pass parameters for shell functions, like so ?
| |||
|
feedback
|
|
you didn't specify which shell, but assuming bash (or zsh):
and then you just use it like
with | |||
|
feedback
|