I am using QProcess to call ‘find’, which works fine with most parameters and search options, until I try to use the -exec feature. For example, this command:
find -exec pwd \;
…should print out the cwd n times, where n is the number of files ‘find’ found (not a practical example of course, but just to keep things simple). However, the result of this is: /usr/bin/find: missing argument to `-exec’
I don’t completely understand the need for the \; demarcation at the end (although I have been using it for years ! :) but perhaps this is causing some kind of unusual situation that QProcess cannot deal with?
I realize that the pwd here is starting a whole new process, so maybe QProcess simply cannot do that? Just wondering if this is a lost cause, or whether I can do something about it.
↧