kubabuk Posted May 24, 2007 Share Posted May 24, 2007 Guys, I'm trying to dynamically create the following command opparm /out/test -v -p eframe ( `ch("../../img/all/all/f1")` ) to do that I using stringcat expression opparm /out/test -v -p eframe ( `strcat(strcat("ch\(\"../..",chs("rop")),"\/f1\"\)")` ) But I get an error because it is not possible to have double back ticks. The problem is that I need one set of them otherwise my expression will not be evaluated. So the following doesn't work: `strcat(strcat("\`ch\(\"../..",chs("rop")),"\/f1\"\)\`")` simpler test doesn't work as well echo `strcat("\`","test\`")` Do you have any idea? PS. probably answer is again pretty simple thanks kuba Quote Link to comment Share on other sites More sharing options...
B.Walters Posted May 24, 2007 Share Posted May 24, 2007 Wait for H9 & Python Quote Link to comment Share on other sites More sharing options...
ragupasta Posted May 26, 2007 Share Posted May 26, 2007 Wait for H9 & Python Sorry to side-step a little, but whats the release date for H9? Quote Link to comment Share on other sites More sharing options...
kubabuk Posted May 26, 2007 Author Share Posted May 26, 2007 Sorry to side-step a little, but whats the release date for H9? Siggraph I suppose... Quote Link to comment Share on other sites More sharing options...
Jason Posted May 26, 2007 Share Posted May 26, 2007 Hi there, The easiest solution is to break your break your command into two (and use varaibles). So, first stash the evaluation of your deepest expression in a variable, and then use the variable in the our expression. Know what I mean? set tmpvar = `firstexpression()` `secondexpression( $tmpvar )` - and thus avoid nested expressions:) Quote Link to comment Share on other sites More sharing options...
symek Posted May 28, 2007 Share Posted May 28, 2007 (edited) ( `strcat(strcat("ch\(\"../..",chs("rop")),"\/f1\"\)")` ) :thumbsup: we should setup some game on it! Who will write more aesthetically pleasing piece of WORKING code quite nice attempt Kuba! :oneeyedsmiley02: Edited May 28, 2007 by SYmek Quote Link to comment Share on other sites More sharing options...
kubabuk Posted May 28, 2007 Author Share Posted May 28, 2007 ( `strcat(strcat("ch\(\"../..",chs("rop")),"\/f1\"\)")` ) :thumbsup: we should setup some game on it! Who will write more aesthetically pleasing piece of WORKING code quite nice attempt Kuba! :oneeyedsmiley02: That's a "side effect" of my recent work - definitely too much awk stuff recently Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.