Re: psql \i handling ~ in specified file name

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To:
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: psql \i handling ~ in specified file name
Date: 2004-01-08 18:18:41
Message-ID: 3FFD9F01.5060707@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

Bruce Momjian wrote:

>Joshua D. Drake 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.

cheers

andrew

In response to

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Jan Wieck 2004-01-08 19:26:09 Re: fork/exec patch: pre-CreateProcess finalization
Previous Message Bruce Momjian 2004-01-08 18:04:12 Re: psql \i handling ~ in specified file name