Squeak scripts in UNIX
David T. Lewis
lewis at mail.msen.com
Wed Feb 14 23:43:18 UTC 2007
On Wed, Feb 14, 2007 at 09:51:17PM +0100, Bert Freudenberg wrote:
> On Feb 14, 2007, at 21:12 , Lex Spoon wrote:
> >Bert Freudenberg <bert at freudenbergs.de> writes:
> >>The harder part is that there is no concept of a current working
> >>directory in Squeak. To find the script, you need to convert a
> >>relative path to the absolute one using cwd. This can either be done
> >>in the shell script, or one could abuse the SecurityPlugin which
> >>listens to environment variables ... or extend the VM ... or use
> >>OSProcess ...
> >On Unix, "FileDirectory default" gives you the Unix cwd.
> No. It gives you the image directory.
There is a "current working directory" introduced into CommandShell,
but as Bert says is a concept that does not exist in Squeak, so it
had to be added. Furthermore, it works on a per-volume basis in Windows
(C: drive versus D: drive, etc), so it's not clear that this is a
very portable concept.
More information about the Squeak-dev