Re: BUG in decompose-file-name

From: Giorgio Cesana <cesana_at_venus.sgs-thomson.it>
Date: Wed, 22 Mar 1995 14:49:56 +0100

Dear all,

I succeded in debugging the decompose-file-name function.

The file to be fixed is Lib/unix.stk and the fix consists in changing the
following line:

66c66
< (if (equal? file "/")
---
>                                    (if (or (equal? file "/") (equal? file "."))
The documentation should be also changed as:
(decompose-file-name string)
Returns an "exploded" list of path name components given in string. The first
element in the list denotes if the file-name is an absolute-path-name or a 
relative-path-name being "/" or "." respectively. Each component of this list is
a string.
	(decompose-file-name "/a/b/c.stk")
		==> ("/" "a" "b" "c.stk")
	(decompose-file-name "a/b/c.stk")
		==> ("." "a" "b" "c.stk")
Regards
Giorgio
-------------------------------------------------------------------------------
Giorgio Cesana                      |  SGS-THOMSON Microelectronics
phone   +39/39/603.6006             |  Central R&D - DAIS
fax     +39/39/603.5820             |  via C. Olivetti, 2
e-mail  cesana_at_venus.sgs-thomson.it |  20041 Agrate B.za (MI) - ITALY
Received on Wed Mar 22 1995 - 14:51:23 CET

This archive was generated by hypermail 2.3.0 : Mon Jul 21 2014 - 19:38:59 CEST