#174: Remove cd semaphore from GetComponents ----------------------------+----------------------------------------------- Reporter: eschnett | Owner: eric9 Type: defect | Status: accepted Priority: major | Milestone: Component: GetComponents | Version: Resolution: | Keywords: ----------------------------+-----------------------------------------------
Comment (by eschnett):
You don't need a subshell for this, a subprocess is good enough. Any time you call system() or popen(), there will automatically be a subprocess created; whether the executed command is wrapped in a shell or not does not matter. That is, the example I gave above is good enough -- there is no need to explicitly call a shell.