title: awk change working directory within a script
body: <p>I want change a working directory in an awk script:</p>
  
  <pre><code>  ...
    path="./some/path"
    system("pwd") ; \
    current_dir=system("pwd") ; \
    pushd_cmd="pushd " path ; \    # a "cd" doesn't work too
    print pushd_cmd ; \
    system(pushd_cmd) ; \
    system("pwd"); \               # the same directory as before
    type="xml"
    ls_cmd = "ls *." type;         # so I can't find the files. Specifying with "./some/path/*.xml" doesn't work too (without trying to change the working directory)
    ...
  </code></pre>
  
  <p>Does somebody know why system does no effect in my case?</p>