chicken-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-hackers] [PATCH 3/4] Remove ##sys#expand-home-path.


From: Felix
Subject: Re: [Chicken-hackers] [PATCH 3/4] Remove ##sys#expand-home-path.
Date: Mon, 18 Mar 2013 22:17:24 +0100 (CET)

From: Mario Domenech Goulart <address@hidden>
Subject: Re: [Chicken-hackers] [PATCH 3/4] Remove ##sys#expand-home-path.
Date: Mon, 18 Mar 2013 13:02:01 -0400

> Hi Matt,
> 
> On Mon, 18 Mar 2013 08:45:17 -0700 Matt Welland <address@hidden> wrote:
> 
>> Please please keep the expansion of ~. 
>> Pragmatically speaking what is at risk? 
> 
> Here's a simple example:
> 
>   $ mkdir some-dir
>   $ cd some-dir/
>   $ mkdir '~'
>   $ echo data > '~/some-file'
>   $ echo 'very important data' > ~/some-file
>   $ csi -e '(delete-file "~/some-file")'
>   $ cat '~/some-file'
>   data
>   $ cat ~/some-file
>   cat: /home/mario/some-file: No such file or directory
> 
> 
> Another one, potentially more dangerous if you use a destructive
> operator instead of `print':
> 
>   $ mkdir some-dir
>   $ cd some-dir/
>   $ mkdir '~'
>   $ csi -e '(use srfi-1 posix) (for-each print (map directory (glob "*")))'

Yes, sure, all true. Still, it strikes me as constructed, with the
same "hole" existing in countless other languages, in a similar manner
or in another. But there is nothing I can bring against it, so I'll
keep my mouth shut on this issue from now on.


cheers,
felix



reply via email to

[Prev in Thread] Current Thread [Next in Thread]