[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Chicken-janitors] Re: #52: ##sys#expand-home-path bug on OS X
From: |
Chicken Trac |
Subject: |
[Chicken-janitors] Re: #52: ##sys#expand-home-path bug on OS X |
Date: |
Sat, 27 Jun 2009 23:11:47 -0000 |
#52: ##sys#expand-home-path bug on OS X
----------------------------+-----------------------------------------------
Reporter: zbigniew | Owner:
Type: defect | Status: new
Priority: minor | Milestone:
Component: core libraries | Version: 4.0.x
Keywords: |
----------------------------+-----------------------------------------------
Comment(by zbigniew):
OK, I see this is done to support ~user -> /home/user, which can't be done
reliably without getpwnam(3).
I would be satisfied with the simple fix of "~" -> (getenv "HOME"), while
leaving "~user" broken, in ##sys#expand-home-path. As you probably wish
to avoid a getpwnam call in library.scm.
However, the posix unit should really have its own expansion code used by
change-directory etc., which uses getpwnam / getpwuid for tilde expansion.
I could produce a patch if you are interested.
--
Ticket URL: <http://www.irp.oist.jp/trac/chicken/ticket/52#comment:1>
Chicken Scheme <http://www.call-with-current-continuation.org/>
Chicken Scheme is a compiler for the Scheme programming language.