scsh-users
[Top] [All Lists]

Re: setting the current working directory

To: scsh@zurich.csail.mit.edu
Subject: Re: setting the current working directory
From: Andreas Bernauer <andreas.bernauer@gmx.de>
Date: Sun, 22 Feb 2004 15:33:23 -0500
Mail-followup-to: scsh@zurich.csail.mit.edu
Terrence Brannon wrote:
> I have a script that I would like to run from (getenv "HOME")
> 
> Is there a way to set the current working directory of a scsh script? 
> Code enclosed for reference.

Besides with-cwd and alike that somebody else mentioned already, you
can also use the bash trampolin:

#!/bin/sh
cd $HOME
exec /home/metaperl/install/scheme48/bin/scsh -o let-opt -e main -s $0 "$@"
!#

# Here goes your Scheme-Code

<Prev in Thread] Current Thread [Next in Thread>