[jamming] Naming a variable instead of expanding it

Arnt Gulbrandsen arnt at gulbrandsen.priv.no
Tue Apr 5 05:06:21 PDT 2005


Hi,

can any of you find a prettier way to do this?

TEST = 1 ;
TEST = "$" "(TEST)" ; TEST = $(TEST:J="") ;
echo TEST is $(TEST) ;

The desired output:

TEST is $(TEST)

If I try to express the assignment in a less hacky way, I invariably get 
wrong output, e.g.:

TEST is 1

Any ideas?

Arnt



More information about the jamming mailing list