1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Problem with /R description-range

Discussion in 'Support' started by Christian Albaret, Oct 15, 2010.

  1. Christian Albaret

    Joined:
    Jul 1, 2008
    Messages:
    154
    Likes Received:
    1
    Problem with /R description-range

    touch /c a b
    describe a b "descr"
    dir /i"des*" => correctly lists a and b
    dir /r"des*" => lists only a

    TCC 11.00.49 Windows XP [Version 5.1.2600]
    TCC 12.00.21 Windows XP [Version 5.1.2600]
     
  2. Steve Fabian

    Joined:
    May 20, 2008
    Messages:
    3,523
    Likes Received:
    4
    Christian Albaret wrote:

    | Problem with /R description-range
    |
    | touch /c a b
    | describe a b "descr"
    | dir /i"des*" => correctly lists a and b
    | dir /r"des*" => lists only a

    The command you have problems with is incorrect. /R isan option which is
    unrelated to the /I option. Try this:

    dir /r /i"des*"

    --
    HTH, Steve
     
  3. dcantor

    Joined:
    May 29, 2008
    Messages:
    505
    Likes Received:
    3
    Christian Albaret wrote:

    Code:
    | Problem with /R description-range
    |
    | touch /c a b
    | describe a b "descr"
    | dir /i"des*" => correctly lists a and b
    | dir /r"des*" => lists only a
    
    Using TCC 11.00.52 Windows XP [Version 5.1.2600], I found
    that both dir commands list both a and b.

    Then Steve Fábián wrote:
    Code:
        The command you have problems with is incorrect. /R isan option which is 
    unrelated to the /I option. 
    Help does not list /r as having anything to do with descriptions (so I agree with Steve), but the dir /r command above does indeed seem to select files with descriptions. Is there an omission of documentation for /r"text" in the dir command help?
     
  4. Steve Fabian

    Joined:
    May 20, 2008
    Messages:
    3,523
    Likes Received:
    4
    dcantor wrote:

    | Help does not list /r as having anything
    | to do with descriptions (so I agree with Steve), but the dir /r
    | command above does indeed seem to select files with descriptions. Is
    | there an omission of documentation for /r"text" in the dir command
    | help?

    In the OT's example it did that just by chance. In fact it does not
    work. There is no omission in the documentation.
    --
    Steve
     
  5. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,732
    Likes Received:
    81
    I don't understand the problem -- /R (which turns off wrapping) has nothing to do with /I or description ranges.
     
  6. Christian Albaret

    Joined:
    Jul 1, 2008
    Messages:
    154
    Likes Received:
    1
    Well, I messed a few things up. In the real case I was looking for a way to list a bunch of files with PDIR (I use an alias to PDIR) with descriptions starting with 2 different strings. Repeating /I did not do the trick. In the help page "Description Ranges", I found "You can also search descriptions using regular expressions with /R"text"." WIth /R the result looked like what I wanted except that it did not list all files. I reduced the problem to a small case with DIR, then posted it.

    I looked at the help for DIR (/R disables wrap) and PDIR (/R not listed) after reading your answers. Still, as seen from a user, /R"…" seems to deal with descriptions.
     

Share This Page