koleman@pnet51.orb.mn.org (Kurt Koller) (11/06/90)
Since no one cares about my Wshell question (GUILT) how about this... I've been hearing alot about the * = #? option of the 2.0 OS. Something about setting a bit somewhere, and Voila! you can now use * for a #?. How? Kurt "Koleman" Koller - tcnet!orbit!pnet51!koleman
252u3130@fergvax.unl.edu (Phil Dietz) (11/06/90)
In article <3422@orbit.cts.com> koleman@pnet51.orb.mn.org (Kurt Koller) writes: > > >Since no one cares about my Wshell question (GUILT) how about this... > >I've been hearing alot about the * = #? option of the 2.0 OS. Something about >setting a bit somewhere, and Voila! you can now use * for a #?. How? > >Kurt "Koleman" Koller - tcnet!orbit!pnet51!koleman The * and ? flag has been here the whole time. All you have to do is set the external variable 'msflag' to a non-zero value. This is what it says in my Lattice 5.04 manual..... BTW..I totally agree that #? is a respectable pattern but its placement on the keyboard is too goofy for me. Why use 7 fingers to enter #? when all you have to do is slap the * key on the numeric keypad! :) Phil Dietz <<<=================--------- Cheap Ad ---------===================<<< Phil Dietz SWL Lincoln 565 MEGS! 2 lines 252u3130@fergvax.unl.edu (402)421-1963 AMIGA, IBM, MAC, GIFS IBM'ers and Mac'ers are shopping for a life. Amiga the best!
markv@kuhub.cc.ukans.edu (11/13/90)
>I've been hearing alot about the * = #? option of the 2.0 OS. Something about > setting a bit somewhere, and Voila! you can now use * for a #?. How? The problem with *=#? is one I am dealing with in a program and is one of my gripes with #? in general. #? isn't quite like * because #? requires at least one charecter. So if I have a dir like: Program Program.c Program.o Program.info Progranny If I want all the files for Program, I cant do "dir Program#?" because I wont match Program. On the otherhand if I do "dir Progra#?" its a kludge because I have to keep from typing the last char, and I might get files I don't care about, like Progranny. (I realize this is a dumb example, but it makes my point). -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Mark Gooderum Only... \ Good Cheer !!! Academic Computing Services /// \___________________________ University of Kansas /// /| __ _ Bix: markgood \\\ /// /__| |\/| | | _ /_\ makes it Bitnet: MARKV@UKANVAX \/\/ / | | | | |__| / \ possible... Internet: markv@kuhub.cc.ukans.edu ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lphillips@lpami.wimsey.bc.ca (Larry Phillips) (11/14/90)
In <26889.273fce5f@kuhub.cc.ukans.edu>, markv@kuhub.cc.ukans.edu writes: >>I've been hearing alot about the * = #? option of the 2.0 OS. Something about >> setting a bit somewhere, and Voila! you can now use * for a #?. How? > >The problem with *=#? is one I am dealing with in a program and is one >of my gripes with #? in general. #? isn't quite like * because #? >requires at least one charecter. So if I have a dir like: > > Program Program.c Program.o Program.info Progranny > >If I want all the files for Program, I cant do "dir Program#?" because >I wont match Program. On the otherhand if I do "dir Progra#?" its a >kludge because I have to keep from typing the last char, and I might >get files I don't care about, like Progranny. (I realize this is a >dumb example, but it makes my point). Say what? Both in the spec (#? means match 0 or more occurrences of any character), and by observed operation, 'dir Program#?' will indeed match all of the items you mentioned except 'Progranny'. At least it has worked this way for me for as long as I can remember. -larry -- The only things to survive a nuclear war will be cockroaches and IBM PCs. +-----------------------------------------------------------------------+ | // Larry Phillips | | \X/ lphillips@lpami.wimsey.bc.ca -or- uunet!van-bc!lpami!lphillips | | COMPUSERVE: 76703,4322 -or- 76703.4322@compuserve.com | +-----------------------------------------------------------------------+
mrush@ecst.csuchico.edu (Matt "C P." Rush) (11/14/90)
In article <26889.273fce5f@kuhub.cc.ukans.edu> markv@kuhub.cc.ukans.edu writes: > >The problem with *=#? is one I am dealing with in a program and is one >of my gripes with #? in general. #? isn't quite like * because #? >requires at least one charecter. So if I have a dir like: > > Program Program.c Program.o Program.info Progranny > >If I want all the files for Program, I cant do "dir Program#?" because >I wont match Program. On the otherhand if I do "dir Progra#?" its a >kludge because I have to keep from typing the last char, and I might >get files I don't care about, like Progranny. (I realize this is a >dumb example, but it makes my point). Are you sure you aren't using ARP, or something? Standard AmigaDOS commmands will find all those programs except "Proganny" if you use "Program#?" It's a great way of getting rid of Trashcans on floppies: delete df0:Trashcan#? all Deletes "Trashcan.info", everything in the "Trashcan" directory, and then deletes the "Trashcan" directory. No "kludge" required. Make sure you're using REAL AmigaDOS commands... -- Matt *~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~* % "I programmed three days % Beam me up, Scotty. % % And heard no human voices. % There's no Artificial % % But the hard disk sang." % Intelligence down here. % % -- Yoshiko % % E-mail: mrush@cscihp.ecst.csuchico.edu % *~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~* This is a SCHOOL! Do you think they even CARE about MY opinions?!
jesup@cbmvax.commodore.com (Randell Jesup) (11/14/90)
In article <26889.273fce5f@kuhub.cc.ukans.edu> markv@kuhub.cc.ukans.edu writes: >The problem with *=#? is one I am dealing with in a program and is one >of my gripes with #? in general. #? isn't quite like * because #? >requires at least one charecter. So if I have a dir like: > > Program Program.c Program.o Program.info Progranny > >If I want all the files for Program, I cant do "dir Program#?" because >I wont match Program. Wrong. Try it. (1.3 and 2.0 both have program#? match program) -- Randell Jesup, Keeper of AmigaDos, Commodore Engineering. {uunet|rutgers}!cbmvax!jesup, jesup@cbmvax.cbm.commodore.com BIX: rjesup Common phrase heard at Amiga Devcon '89: "It's in there!"
mndaily@ux.acs.umn.edu (Linda Seebach) (11/22/90)
In article <3422@orbit.cts.com> koleman@pnet51.orb.mn.org (Kurt Koller) writes: > > >Since no one cares about my Wshell question (GUILT) how about this... > >I've been hearing alot about the * = #? option of the 2.0 OS. Something about >setting a bit somewhere, and Voila! you can now use * for a #?. How? > >Kurt "Koleman" Koller - tcnet!orbit!pnet51!koleman No idea. I'd love it, though... I do know that the "Amiga" routine that comes with Aztec C for matching file patterns uses * and ?, and will not recognize #?... Thus, it's easier to write programs which match *... --SeebS-- Prophet in Exile
ggk@tirith.UUCP (Gregory Kritsch) (11/15/20)
markv@kuhub.cc.ukans.edu writes: >The problem with *=#? is one I am dealing with in a program and is one >of my gripes with #? in general. #? isn't quite like * because #? >requires at least one charecter. So if I have a dir like: From the AmigaDOS manual (first Bantam edition), p. 71, describing patterns: #<p> Matches zero or more occurrences of the pattern <p>. Also, the following example is listed: LIST PAT A#BC matches AC ABC ABBC, and so forth. >If I want all the files for Program, I cant do "dir Program#?" because Try it - I think you'll like it! >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >Mark Gooderum Only... \ Good Cheer !!! >Academic Computing Services /// \___________________________ >University of Kansas /// /| __ _ >Bix: markgood \\\ /// /__| |\/| | | _ /_\ makes it >Bitnet: MARKV@UKANVAX \/\/ / | | | | |__| / \ possible... >Internet: markv@kuhub.cc.ukans.edu >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- Gregory Kritsch | University of Waterloo Fido: 1:221/208.11110 [1:163/109.30] | 1A Computer Engineering UUCP: ggk@tirith.UUCP |-------------------------- ...!watmath!xenitec!tirith!ggk | Amiga Fanatic