Why doesn't the following script work correctly?
The file is called test.sh, and it's in folder /test (so it's /test/test.sh)
I ran chmod +x test.sh.
The script clears the screen, but it doesn't change the PS1, nor the current folder.
I'm using:
Red Hat Release 5.0 (Hurricanne)
Kernel 2.0.32
GNU bash, version 1.14.7(1)
Code:
#! /bin/bash
PS1="\w>"
cd "/etc"
clear
Thank you!