I'm trying to copy some files from current directory in a bash script but the problem is that the cp command doesn't work with the current directory. I can use the following command without any problem on Backtrack 5 (based on Ubuntu) but not in Kali linux (based on Debian):cp -f -v *.{html,txt,php} /var/www/I can execute this command directly from the terminal by first changing directory to the directory where these files are. But using script I get the following error:cp -f -v *.{html,txt,php} /var/www/cp: cannot stat `*.{html,txt,php}': No such file or directoryAgain I have no problem with this command in the script when I use Ubuntu.
cp won't work on current bash script's directory
bash;file copy