bugMIT/GNU Scheme - Bugs: bug #58912, working-directory-pathname is not...

 
 

bug #58912: working-directory-pathname is not a parameter.

Submitter:  Arthur A. Gleckler <aag>
Submitted:  Fri 07 Aug 2020 05:51:44 PM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Wont Fix Privacy:  Public
Assigned to:  None Originator Name: 
Open/Closed:  Closed
Keywords: 
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 03 Feb 2021 04:05:49 PM UTC, comment #1: 
Taylor R. Campbell <riastradh>
Group Member
Fri 07 Aug 2020 05:51:44 PM UTC, original submission:  

Per the docs, I'm trying to switch from using with-working-directory-pathname to using working-directory-pathname with parameterize.  Unfortunately, I get this result:


1 ]=> (parameterize ((working-directory-pathname "/tmp/")) (lambda () 1))

;The object #[compiled-procedure 481 (working-directory-pathname "wrkdir" #x3) #x1c #x106be11ec], passed as an argument to hash-table-ref, is not in the correct range.
;To continue, call RESTART with an option number:
; (RESTART 1) => Return to read-eval-print level 1.

2 error> (parameter? working-directory-pathname)

;Value: #f

2 error>


It seems that *working-directory-pathname* is the underlying parameter, but it's not bound in (user).

It looks like the reason for the distinction between the two bindings is that the former implements a fallback for the latter when the working directory hasn't explicitly been set.

Is there a reason that the working directory parameter can't be set  using the value from the microcode primitive when the process starts?  That would solve the problem.

Arthur A. Gleckler <aag>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by riastradh (Posted a comment)
  • -email is unavailable- added by aag (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-02-03 riastradh StatusNone Wont Fix
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code