Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: problem changing to userdirs with a . in them
- X-seq: zsh-users 13037
- From: Vincent van Leeuwen <zsh@xxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: problem changing to userdirs with a . in them
- Date: Tue, 15 Jul 2008 17:49:27 +0200
- In-reply-to: <200807151520.m6FFK5Xf018368@xxxxxxxxxxxxxx>
- Mail-followup-to: zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20080715150452.GJ12642@xxxxxxxxxxxxxxxxxxxx> <200807151520.m6FFK5Xf018368@xxxxxxxxxxxxxx>
On Tue, Jul 15, 2008 at 04:20:05PM +0100, Peter Stephenson wrote:
> Vincent van Leeuwen wrote:
> > On some of our servers, customers have usernames with a . in them, of
> > the form domain.tld.
>
> This isn't currently handled in ~ expansion.
>
> Index: Src/utils.c
> ===================================================================
> RCS file: /cvsroot/zsh/zsh/Src/utils.c,v
> retrieving revision 1.195
> diff -u -r1.195 utils.c
> --- Src/utils.c 1 Jul 2008 08:36:02 -0000 1.195
> +++ Src/utils.c 15 Jul 2008 15:13:16 -0000
> @@ -2981,7 +2991,7 @@
> typtab[t0] = IALPHA | IALNUM | IIDENT | IUSER | IWORD;
> #endif
> typtab['_'] = IIDENT | IUSER;
> - typtab['-'] = IUSER;
> + typtab['-'] = typtab['.'] = IUSER;
> typtab[' '] |= IBLANK | INBLANK;
> typtab['\t'] |= IBLANK | INBLANK;
> typtab['\n'] |= INBLANK;
>
Excellent, this patch works. Thanks for the speedy help! And I see you've
already checked this into the CVS repo, you're my new hero ;)
Vincent van Leeuwen
Media Design - http://www.mediadesign.nl/
Messages sorted by:
Reverse Date,
Date,
Thread,
Author