[PLUG] bash question

Paul Heinlein heinlein at attbi.com
Mon Aug 19 18:24:28 UTC 2002


On Mon, 19 Aug 2002, Richard Seymour wrote:

> But what if the 1 in the above statement is itself a variable?
> 
> Y=1
> X=$(date --date='+ $Y week' +%m)

You need to use double quotes instead of single (noninterpolating) 
quotes around "+ $Y week".

--Paul Heinlein <heinlein at attbi.com>





More information about the PLUG mailing list