call function
r/bin/sh > # > function outmessage > { >echo $1; >: >: > } > #Main > echo "Welcome" > : > : > outmessage "hello amy" > outmessage "hello peter" > : > : > exit 0 > > I try to call function outmessage in Cygwin, b
call function
In Unix, "function" can be added in script, e.g. #!/usr/bin/sh # function outmessage { echo $1; : : } #Main echo "Welcome" : : outmessage "hello amy" outmessage "hello peter" : : exit 0 I try to call function outmessage in Cygwin, but it does wo