[Top][All Lists]

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

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

From: Mario Domenech Goulart
Subject: Re: [Chicken-hackers] [PATCH 3/4] Remove ##sys#expand-home-path.
Date: Mon, 18 Mar 2013 13:02:01 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux)

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'
  $ 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 "*")))'

Best wishes.

reply via email to

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