Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: problem changing to userdirs with a . in them



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