[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: VARs
From: |
Larry Jones |
Subject: |
Re: VARs |
Date: |
Wed, 16 May 2001 11:03:48 -0400 (EDT) |
Andy Lewis writes:
>
> My question, am I not allowed to do the following?
>
> cvs commit -m "Changed initial value of $my_var"
>
> I would like $my_var to print out as is.
This has nothing whatsoever to do with CVS, it's a shell question. The
shell substitutes environment variables inside double quoted strings, so
if you want something that looks like a variable substitution literally
instead, you either have to escape the $:
cvs commit -m "Changed initial value of \$my_var"
or use single quotes instead:
cvs commit -m 'Changed initial value of $my_var'
-Larry Jones
Nobody knows how to pamper like a Mom. -- Calvin
- VARs, Andy Lewis, 2001/05/16
- Re: VARs, Matthew Riechers, 2001/05/16
- Re: VARs,
Larry Jones <=
- RE: VARs, Gianni Mariani, 2001/05/16