diff --git a/tren.rst b/tren.rst index ca3723d..f6d9769 100644 --- a/tren.rst +++ b/tren.rst @@ -879,7 +879,7 @@ regular expression rather than literally if the option to do so is in effect. - 5) Process each file found on the command line in left to right + 6) Process each file found on the command line in left to right order, applying each renaming request, in the order it appeared from left to right on the command line. @@ -922,6 +922,8 @@ Notice that we can drop the ``-f`` option because there is no longer a naming conflict (see the next section for more about forced renaming). +.. NOTE:: Always remember" **The Rightmost Renaming Request "Wins"!** + The point here, as we've said already, is that you have to be very careful when constructing command lines, keeping track of options, and *what order* you specify both renaming requests *and* the files- and @@ -1209,7 +1211,8 @@ ``My`` gets replaces with ``Your``, but as soon as the second renaming request is processed, the whole string is thrown away and replaced -with the final name ``New-MyFile.txt``. +with the final name ``New-MyFile.txt``. This is yet another +example of, **"The Rightmost Renaming Request Wins!"** Renaming Tokens: The Gory Details @@ -1619,7 +1622,7 @@ :: - $Id: tren.rst,v 1.154 2010/03/26 20:09:32 tundra Exp $ + $Id: tren.rst,v 1.155 2010/03/26 20:15:41 tundra Exp $ You can find the latest version of this program at: