Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Problem with /R description-range

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]
 
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
 
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?
 
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
 
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]

I don't understand the problem -- /R (which turns off wrapping) has nothing to do with /I or description ranges.
 
I don't understand the problem -- /R (which turns off wrapping) has nothing to do with /I or description ranges.

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.
 

Similar threads

Back
Top