<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hongyi,
      <br>
      This expansion is handled in the shell, before the command is
      executed. For example, with the following:
      <br>
      $ tree test
      <br>
      test
      <br>
      ├── a
      <br>
      ├── b
      <br>
      └── c
      <br>
      <br>
      0 directories, 3 files
      <br>
      $ cp test/* /tmp
      <br>
      <br>
      cp here receives 4 parameters,
      <br>
      test/a
      <br>
      test/b
      <br>
      test/c
      <br>
      /tmp
      <br>
      <br>
      Hope that helps
      <br>
      -Nick<br>
      <br>
      On 09/06/2013 09:15 PM, Hongyi Shen wrote:<br>
    </div>
    <blockquote
cite="mid:CADQH9q4v=o0iByf0S5rj+WDoj5GvQm69xOVWACZReE0dh6QVZg@mail.gmail.com"
      type="cite">
      <div dir="ltr">Sorry, it's me again.
        <div style="">When comes to the commands like ls, rm, mv, cp,
          how do they handle the operands with regular expressions? Is
          there a library contains regex parser or something like that?</div>
        <div style=""><br>
        </div>
        <div style="">I failed to found that in source code or search on
          Google. I tried to use strace, but it only present system
          calls. </div>
        <div style=""><br>
        </div>
        <div style=""><br>
        </div>
        <div style="">Hongyi Shen.</div>
        <div style=""><br>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
cs631apue mailing list
<a class="moz-txt-link-abbreviated" href="mailto:cs631apue@lists.stevens.edu">cs631apue@lists.stevens.edu</a>
<a class="moz-txt-link-freetext" href="https://lists.stevens.edu/mailman/listinfo/cs631apue">https://lists.stevens.edu/mailman/listinfo/cs631apue</a>
</pre>
    </blockquote>
  </body>
</html>