Tilde expansion on Win32

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: PostgreSQL-development <pgsql-hackers(at)postgreSQL(dot)org>
Subject: Tilde expansion on Win32
Date: 2005-06-10 14:30:58
Message-ID: 200506101430.j5AEUw702204@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

I noticed that we don't expand tildes in Win32 because of the use of
tilde in short versions of long file names:

char *
expand_tilde(char **filename)
{
if (!filename || !(*filename))
return NULL;

/* MSDOS uses tilde for short versions of long file names, so skip it. */
#ifndef WIN32

/* try tilde expansion */
if (**filename == '~')
{

However, I thought the tilde was usually used toward the end of the file
name, not at the beginning. Is this true? Should this code be modified?

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

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Mark Wong 2005-06-10 14:38:25 Re: Daily DBT-3 (DSS) Results on CVS head
Previous Message Andreas Pflug 2005-06-10 14:14:20 Re: Server instrumentation