i write bash file to copy files from unix to windows and i pass the path of files as parameter to bash file :-
scp -r /$1/ user@hostname:/cygdrive/c/unix_file
when i execute the bash and don't pass any parameter it is copy all file in "current directory "
example :-
roor@hostname/>./bash.sh now it copy all file in root .... when i test exit code it is equal ( 0 ) !!!!