why does not set in csh?

Status
Not open for further replies.

u24c02

Advanced Member level 1
Joined
May 8, 2012
Messages
404
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,298
Visit site
Activity points
4,101
Hi.

When I trying to run in csh like this it does not working well.


$!/bin/csh -f
...

set source_directory = "../SRC"
set library_list = 'ls $source_directory' // What is wrong?
...
 

you should use
set library_list = `ls $source_directory`

see difference? I've used the character ` instead of '
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…