From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1044c2,fb87ccfc9e8baf0a X-Google-Attributes: gid1044c2,public X-Google-Thread: 1103af,fb87ccfc9e8baf0a X-Google-Attributes: gid1103af,public X-Google-Thread: f66ab,fb87ccfc9e8baf0a X-Google-Attributes: gidf66ab,public X-Google-Thread: f678f,fb87ccfc9e8baf0a X-Google-Attributes: gidf678f,public X-Google-Thread: f71eb,fb87ccfc9e8baf0a X-Google-Attributes: gidf71eb,public X-Google-ArrivalTime: 1995-01-04 12:31:17 PST Newsgroups: comp.os.linux.misc,comp.os.os2.misc,comp.unix.osf.misc,comp.os.msdos.misc,comp.os.mach Path: nntp.gmd.de!Germany.EU.net!howland.reston.ans.net!swiss.ans.net!newsgate.watson.ibm.com!watnews.watson.ibm.com!bocanews.bocaraton.ibm.com!news From: aviolette@vnet.ibm.com (Andrew Violette) Subject: Re: The big Question Sender: news@bocanews.bocaraton.ibm.com (News Admin ID) Message-ID: Date: Wed, 4 Jan 1995 20:31:17 GMT Reply-To: aviolette@vnet.ibm.com (Andrew Violette) References: <3dpmo9$6fh@calvin.st-and.ac.uk> <1995Jan2.135536.27035@imec.be> <1995Jan4.051639.24693@prpa.philips.com> <3eel96$h74@rowan.coventry.ac.uk> Nntp-Posting-Host: violette2.bocaraton.ibm.com Organization: IBM Boca Raton, FL X-Newsreader: IBM NewsReader/2 v1.02 Xref: nntp.gmd.de comp.os.linux.misc:37623 comp.os.os2.misc:125406 comp.unix.osf.misc:2252 comp.os.msdos.misc:28439 comp.os.mach:3434 In <3eel96$h74@rowan.coventry.ac.uk>, wweston@rowan.coventry.ac.uk (WILLIAM WESTON) writes: >In article <1995Jan4.051639.24693@prpa.philips.com>, >Ross Morley wrote: >>buytaert@imec.be (Steven Buytaert) writes: >> >>>cdlevin (cdlevin@shadow.net) wrote: >> >>> exhibit A >> >>>: Dos has features that were patterned after UNIX? Name them, and tell >>>: me why you think they're corrupted. >> >>> OK, just to have an apetizer. I know this example has nothing to do with >>> a kernel on the unix side, but let's say 'pipes' and 'wildcards' ? >> >>Oh, that reminds me. Wildcards. DOS screws them up too. DOS *doesn't* >>do wildcards, each individual application program has to process them, >>hence you get inconsistencies in the way "*" and "?" are handled in >>difference command lines. In UNIX, the command interpreter (shell) >>handles the wildcards so the apps don't have to worry about them and >>you get consistency. > >I am no expert. I have only just got Linux installed on my PC, and it's >not a big deal, but I've spent a couple of hours checking thru Linux >groups so I thought I'd better say something.... > >Surely expanding wildcards in the shell is a BAD THING ? > >rm proggy1.c rm proggy2.c shorthand rm prog* happiness > typo rm prog * gets expanded to wipe directory. > >rm cannot check, because it just gets a list of files expanded >by the shell and does its duty. OS/2, like Unix, has the ability to use different shells. The Environment variable is OS2_SHELL. The default is CMD.EXE, which does not expand wildcards. CMD.EXE is no where near as good as GNU's bash and other shells, however it is much better than the default shell that comes with most Unices - Bourne Shell. My personal belief is that wildcards SHOULD get expanded in the shell for consistency, and if the port of BASH for OS/2 could run all OS/2 apps nicely I would use it as my OS2_SHELL (but, alas, it does not). Most Unix shells which support wildcard expansion allow you to disable it if you do not like it. ----------------------------------------------- Andrew Violette Workplace Shell Subsystem - OpenDoc Development IBM Boca Raton, FL (407) 443-5679