fsl wrapper

Artifact Content
Login

Artifact a8ab4b6366f158136fdd0f5024ef01a2a3b9b49c:

Wiki page [mv semantics] by kiatoa 2012-02-17 06:17:40.
D 2012-02-17T06:17:40.327
L mv\ssemantics
P 09c3b47fa471253bd00c3b53eb40813c0ee62aae
U kiatoa
W 943
<h3>Move semantics</h3>

<table border=1 cellspacing=0>
<tr><td>Source</td><td>Target</td><td>Action</td></tr>
<tr><td>file</td><td>non-existing</td><td>fsl_file2file</td></tr>
<tr><td>file</td><td>existing file</td><td>error</td></tr>
<tr><td>dir</td><td>non-existing</td><td>fsl_dir2dir</td></tr>
<tr><td>dir</td><td>existing-dir</td><td>fsl_dir2dir targ/dir</td><tr>
</table>

  #  mv dir1 dir2 # dir2 NOT exists<verbatim>
      => dir2</verbatim>
  #  mv dir1 dir2 # dir2 exists<verbatim>
      => dir2/dir1</verbatim>
  #  mv f1 f2     # f2 not exists, otherwise error<verbatim>
      => f2</verbatim>
  #  mv f1 dir1   # dir1 exists<verbatim>
      => dir1/f1</verbatim>
  #  mv f1 dir1/f2 # dir1 may or may not exist, error if f2 exists<verbatim>
      => dir1/f2</verbatim>
  #  mv f1 dir1 ../f2 dir2/f3 dir3 # dir3 exists (error otherwise)<verbatim>
      => dir3/dir1 
         dir3/f2 
         dir3/dir2/f3

Z f983c0ee82986e8e1bd4e704290169c2