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 18:17:48 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!newsserver.jvnc.net!howland.reston.ans.net!EU.net!sun4nl!sci.kun.nl!hoeij From: hoeij@sci.kun.nl (Mark van Hoeij) Subject: Re: The big Question Message-ID: Sender: news@sci.kun.nl (News owner) Nntp-Posting-Host: canteclaer.sci.kun.nl Organization: University of Nijmegen, The Netherlands X-Newsreader: NN version 6.4.19 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> Date: Wed, 4 Jan 1995 20:41:23 GMT Xref: nntp.gmd.de comp.os.linux.misc:37576 comp.os.os2.misc:125246 comp.unix.osf.misc:2239 comp.os.msdos.misc:28397 comp.os.mach:3418 In <3eel96$h74@rowan.coventry.ac.uk> wweston@rowan.coventry.ac.uk (WILLIAM WESTON) writes: >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 ? It is often very convenient, just like these other things DOS doesn't have e.g. filename completion, good io redirection, command history like !jo to repeat the last command that started with jo (i.e. jove paper.tex) or !ma instead of maple < test_file. >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. If you are used to DOS it might be a good idea to change the default behavior of the dangerous commands cp, mv and rm. Include the lines alias mv 'mv -i' alias cp 'cp -i' alias rm 'rm -i' in your .cshrc file (if you are using csh) or in your .profile file (if you are using bash). You'll still be able to use the good old rm with rm -f or /bin/rm Good luck, Mark van Hoeij