Re: psql \i handling ~ in specified file name - Mailing list pgsql-patches

From Bruce Momjian
Subject Re: psql \i handling ~ in specified file name
Date
Msg-id 200401082044.i08KiOC02573@candle.pha.pa.us
Whole thread Raw
In response to Re: psql \i handling ~ in specified file name  (Andrew Dunstan <andrew@dunslane.net>)
List pgsql-patches
Andrew Dunstan wrote:
> >>>As I remember, MSDOS uses the "~" to specify short versions of long file
> >>>names.
> >>>
> >>>
> >>>
> >>I is not just msdos, it is cmd.exe which exists on (to my knowledge) all
> >>versions of windows. For example:
> >>Program Files == progra~1
> >>
> >>
> >
> >Yes, I meant it is a hold-over from dealing with MS-DOS style 8.3 file
> >names.
> >
> >
>
> This pattern should not cause tilde expansion on any platform, I
> believe.  Only a *leading* ~/ or ~username/ should be expanded.
>
> The normal "home" directory on a (modern) Windows machine is usually
> "C:\Documents and Settings\username", IIRC.

Yes, I understand, but on an OS that uses tilde so much inside the file
name, do we want special meaning when it is leading the file name?

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

pgsql-patches by date:

Previous
From: Jan Wieck
Date:
Subject: Re: fork/exec patch: pre-CreateProcess finalization
Next
From: Tom Lane
Date:
Subject: Re: Patch of intarray module in v7.4.1