Maybe someone here would be able to help me out. Have installed Ubuntu 12.04 LTS (kubuntu) on two machines. The .bashrc and .bash_profile files are identical as the file structures on each machine is the same. On machine 1: I run bash scripts within a terminal window with the simple: ./scriptname.sh On machine 2: I cannot do this and must use: sh scriptname.shNor can I use ./ and tab-complete the script filename.All executable bits are set correctly, all files and folders have the correct permissions. In the header of the scripts the shebang is set correctly. Any ideas why this would be occurring? When I try ls -l, I get:-rwxrwxrwx 1 adelie adelie 351 Nov 4 20:32 file_motion_grab.shOutput of getfacl is:# file: file_motion_grab.sh# owner: adelie# group: adelieuser::rwxgroup::rwxother::rwxMore general - any new script on the second machine must be invoked with: sh scriptname.sh Something probably wrong in the .bash files. But not sure where to look.EDITYep parent directory is all set correctly.
tab-expansion and ./ bash shell
bash;ubuntu;scripting;environment variables