When it's that hard to use something, that's why I'm such a fan of AMOS Pro.
(I couldn't even really find an AmigaDOS users guide.)
Support Amiga Fantasy cases!!! How to program: 1. Start with lots and lots of 0's. 10. Add 1's, liberally. "Details for OS 5 will be made public in the fourth quarter of 2007, ..." - Bill McEwen Whoah!!! He spoke, a bit late.
That example on the page is incorrect. I don't see anything in the documentation drawers about pattern matching, but this has been mostly the same since OS 1.x
But so does #?.info So "~" and "#?" are the same now?
Okay, I tried (from that url): list <~.info>
and nothing is listed out at all.
Support Amiga Fantasy cases!!! How to program: 1. Start with lots and lots of 0's. 10. Add 1's, liberally. "Details for OS 5 will be made public in the fourth quarter of 2007, ..." - Bill McEwen Whoah!!! He spoke, a bit late.
~ is a "not" for only the next character/expression. To not show .info files, you need ~(#?.info)
edit: oh, and there are bugs in the OS4 pattern matching routines, for example #(AB|BA) doesn't work as it should. ~.info probably should do the same as ?info but missing out the file called .info
Gives this error message list: unable to open redirection file.
But I thought THIS was the proper way of typing it: list ~<.info> from the URL.
It would be helpful if actual command examples are given. But, I didn't scroll down that page, I saw that it has quite a few actual examples. My bad.
I recognize that ADOS is incredibly powerful. (Knew for a loooooong time it was very powerful.)
Can anyone comment, ms-dos got up to what 7.x? Is ADOS as powerful, or moreso than ms's?
Support Amiga Fantasy cases!!! How to program: 1. Start with lots and lots of 0's. 10. Add 1's, liberally. "Details for OS 5 will be made public in the fourth quarter of 2007, ..." - Bill McEwen Whoah!!! He spoke, a bit late.
The <p> is meant as a placeholder for a character OR an expression. The angle brackets are not part of the pattern matching! Take a look at the examples.
<p> could be A or B or ? or (#?.info) or (A|B|C) and so on ...
As Chris wrote ~ will only negate the next expression which could be a single character OR an expression which must be enclosed in parentheses.
~(.info) will match anything except ".info"
#?.info will match anything ending with ".info"
If you want the opposite you negate the expression.
1. Enclose the expression with parantheses: (#?.info) 2. Negate it: ~(#?.info)