Ur script is executed in a new child bash shell. And the child exits as the script ends.
Execute it like this (with out double quotes)
". Yourscript"
-----Original Message-----
From: Ronald Hermans [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 11, 2002 08:56
To: '[EMAIL PROTECTED]'
Subject: Bash question
Hi there,
I wrote a little script to change to an other directory:
#!/bin/bash
cd /home/ronald/scripts
clear
ls -l *.sh
Everything goes allright except the fact that when the script is ended I'm still in /home/ronald and not in /home/ronald/scripts The scripts folder is in the PATH so I can call the script from any place.
What is going wrong?
Thanx in advanced
Ronald.
--
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list