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

Re: problem changing to userdirs with a . in them



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;

-- 
Peter Stephenson <pws@xxxxxxx>                  Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK                          Tel: +44 (0)1223 692070



Messages sorted by: Reverse Date, Date, Thread, Author