From: | "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com> |
---|---|
To: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
Cc: | PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Tilde expansion on Win32 |
Date: | 2005-06-10 14:38:32 |
Message-ID: | 42A9A5E8.2080607@commandprompt.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Bruce Momjian wrote:
> 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?
>
If you talking about WIn32 ~ they are typically in the middle. Like:
program files === progra~1
Sincerely,
Joshua D. Drake
--
Your PostgreSQL solutions provider, Command Prompt, Inc.
24x7 support - 1.800.492.2240, programming, and consulting
Home of PostgreSQL Replicator, plPHP, plPerlNG and pgPHPToolkit
http://www.commandprompt.com / http://www.postgresql.org
From | Date | Subject | |
---|---|---|---|
Next Message | Dave Page | 2005-06-10 14:40:52 | Re: Tilde expansion on Win32 |
Previous Message | Mark Wong | 2005-06-10 14:38:25 | Re: Daily DBT-3 (DSS) Results on CVS head |