Why doesn't "cd" work in a bash shell script?
Posted
by askgelal
on Stack Overflow
See other posts from Stack Overflow
or by askgelal
Published on 2008-11-01T02:07:08Z
Indexed on
2010/05/06
3:48 UTC
Read the original article
Hit count: 151
linux
|shell-scripting
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?
© Stack Overflow or respective owner