Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!usc!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!aplcen!boingo.med.jhu.edu!haven!umbc3!math9.math.umbc.edu!rouben From: rouben@math9.math.umbc.edu Newsgroups: comp.unix.questions Subject: How to place a comma in 'a{b,c,d}e' metanotation Message-ID: <4890@umbc3.UMBC.EDU> Date: 24 Jan 91 17:29:18 GMT Sender: newspost@umbc3.UMBC.EDU Reply-To: rouben@math9.math.umbc.edu () Organization: Mathematics Department University of Maryland, Baltimore County Lines: 21 The csh man page explains how the metanotation "a{b,c,d}e" expands into "abe ace ade". What it does not explain is how to place commas in the output, if necessary. For instance I wish that the construction "a{b\,,c\,,d}" would expand to the comma separated list "ab, ac, ad", but it actually expands to "ab a ac a ad". I guess I do not know how to escape the ',' character in these constructions. Does anyone know how? PS: This question came up when I wanted to extend the font path directory of my X server. The command I wanted to execute was: xset fp+ /path/dir1, /path/dir2, /path/dir3 so ideally I would have liked to say: xset fp+ /path/{dir1\,,dir2\,,dir3} which does not work because the commas are not escaped correctly. -- Rouben Rostamian Telephone: (301) 455-2458 Department of Mathematics and Statistics e-mail: University of Maryland Baltimore County bitnet: rostamian@umbc.bitnet Baltimore, MD 21228, U.S.A. internet: rouben@math9.math.umbc.edu