Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Make opendiff wait for FileMerge to finish' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Make opendiff wait for FileMerge to finish
Authored by: efge on Feb 23, '07 03:51:20PM
Using backquotes is pretty dangerous, it means "execute the result of the command inside the backquotes". If for some reason opendiff outputs text that can be interpreted as a dangerous command, you're screwed.

You can simply use:


/usr/bin/opendiff $@ | cat
Also you should always use $@ inside quotes (man sh explains why in the Special Parameters section). So:

/usr/bin/opendiff "$@" | cat


[ Reply to This | # ]
Make opendiff wait for FileMerge to finish
Authored by: dwave on Feb 24, '07 07:22:19AM

you could also use:

tmp=`/usr/bin/opendiff "$@"`

which wouldn't execute the output of opendiff, but take the output of opendiff and place it in the variable $tmp.



[ Reply to This | # ]