c shell environment variable error: "Bad : modifier in $"
- by Marshall Ward
Hi, I am using tcsh and define an environmental variable as follows:
setenv mycomp [email protected]
so that when I need to copy files from the remote my.computer.com, I type the following:
scp $mycomp:sourcepath destpath
But when I do this, I get the following error: "Bad : modifier in $ (m)." where (m) is the first character after the colon.
What is this error telling me, and how can I fix it?