D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] Simple Script Problem

 

On Fri, 19 Jan 2007, Peter Lloyd-Jones wrote:

> Thanks Steve. I have tried removing   #!/bin/sh, and it seems to have made no
> difference at all?

Futher to what Jamie said, I think you can run a script in your current 
shell instance rather than spawning a new one using source:

$ source script

or the same thing, but shorthand:

$ . script

So if you're desparate to have a script cd for you, this should achieve 
this.  All previous comments about why this is an unusual thing do to 
apply though.

Alex.

-- 
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html