scsh-hackers
[Top] [All Lists]

[Scsh-hackers] in 0.6: behavior of cwd and chdir weird

To: scsh-hackers@lists.sourceforge.net
Subject: [Scsh-hackers] in 0.6: behavior of cwd and chdir weird
From: Andreas Bernauer <andreas.bernauer@student.uni-tuebingen.de>
Date: Tue, 28 Aug 2001 20:01:08 +0200
List-id: Discussion among the implementors <scsh-hackers.lists.sourceforge.net>
Sender: scsh-hackers-admin@lists.sourceforge.net
Hi!

In scsh 0.6 there seems to be something wrong with 'cwd' and 'chdir'.
Precisely, following does not make sense to me:

heap size 4000000 is too small, using 4280936
welcome to scsh-0.6 alpha 
> (cwd)
"/home/andreas/hiwi/scsh-0.6"
> (chdir ".")      
> (cwd)
"/home/andreas/hiwi/sunet"
> 

"." is supposed to refer to the current working directory, as returned
by cwd, isn't it?

Same thing happens if an error encounters (in continuation to the
listing above):

> (asd)

Error: undefined variable
       asd
       (package user)
1> (cwd)
"/home/andreas/hiwi/scsh-0.6"
1> (chdir ".")
1> (cwd)
"/home/andreas/hiwi/sunet"
1> ,reset

Top level
> (cwd)        ; actually, we 'fixed' this above with (chdir ".")
"/home/andreas/hiwi/scsh-0.6"   ; but nevertheless...
> (chdir ".")
> (cwd)
"/home/andreas/hiwi/sunet"
> 

Moreover, the behavior of 'chdir' changed to the one stated in the
manual of 0.53 (p. 60). It says, 'chdir' with no arguments changes to
the home directory of the user. But in fact in 0.6:

> (chdir)

Error: wrong number of arguments
       ('#{Procedure 10326 (chdir in scsh-level-0)})
1>


Both problems don't appear in scsh 0.53.


-- 
Andreas.
interp@sf.net


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