Hi Matt,

On Mon, 18 Mar 2013 08:45:17 -0700 Matt Welland <m...@kiatoa.com> 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 "*")))'


Best wishes.
Mario
-- 
http://parenteses.org/mario

_______________________________________________
Chicken-hackers mailing list
Chicken-hackers@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-hackers

Reply via email to