Why doesn't "cd" work in a bash shell script?
- by askgelal
I'm trying to write a small script to change the current directory to my project directory:
#!/bin/bash
cd /home/askgelal/projects/java
I saved this file as proj, changed the chmod, copied it to /usr/bin. When I call it by:
proj, it does nothing. What am I doing wrong?