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

 
 

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

Submitted by:  Arthur A. Gleckler <aag>
Submitted on:  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: 

Add a New Comment (Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Wed 03 Feb 2021 04:05:49 PM UTC, comment #1: 
Taylor R. Campbell <riastradh>
Project 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>
Project 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)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    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.5