Path: utzoo!utgpu!water!watmath!clyde!cbosgd!ihnp4!alberta!edm!steve From: steve@edm.UUCP (Stephen Samuel) Newsgroups: comp.unix.wizards Subject: Re: csh oddity Summary: the digit does it... Keywords: csh variables substitution Message-ID: <218@edm.UUCP> Date: 21 Jan 88 04:44:50 GMT References: <826@murphy.UUCP> <590@devon.UUCP> Organization: Unexsys Systems Inc., Edmonton,AB. Lines: 27 In article <590@devon.UUCP>, paul@devon.UUCP writes: | In article <826@murphy.UUCP> dcornutt@murphy.UUCP (Dave Cornutt) writes: | +---------- | | I have discovered something peculiar about csh variable substitution. Is | | this a bug or am I doing something wrong? Watch this: | | % set xy1z=qwert | | % echo $xy1z | | qwert | | % set xy1z=${xy1z}_123 | | Variable syntax. | | % echo $xy1z | | qwert (bloody include counter.....) It seems to be something with having the '1' inside the braces... The one fix (workaround) I have is to take the qy1z out of the braces and trail it with a null ('') string (delimits the end of the name.): ....... % set qy1z=$qy1z''_123 % echo $qy1z qwert_123 -- ------------- Stephen Samuel Disclaimer: You betcha! {ihnp4,ubc-vision,seismo!mnetor,vax135}!alberta!edm!steve BITNET: USERZXCV@UQV-MTS