Path: utzoo!utgpu!water!watmath!clyde!bellcore!faline!thumper!ulysses!andante!princeton!njin!rutgers!ucsd!nosc!helios.ee.lbl.gov!lll-tis!ati.tis.llnl.gov!bae From: bae@ati.tis.llnl.gov.UUCP Newsgroups: comp.unix.questions Subject: Re: what's the use of "{ list }" in /bin/sh? Message-ID: <22305@tis.llnl.gov> Date: 7 Jul 88 23:07:40 GMT References: <23590@teknowledge-vaxc.ARPA> <409@fmeed1.UUCP> <11755@agate.BERKELEY.EDU> Sender: news@tis.llnl.gov Reply-To: bae@ati.tis.llnl.gov (Hwa Jin Bae) Organization: Lawrence Livermore National Laboratory, Livermore CA Lines: 13 Besides obvious uses mentioned in previous articles thus far, recent Bourne shells allow a rudimentary aliasing using "{" and "}". For example, when I work on a system that has only /bin/sh, I alias the command "ls" to mean "ls -aCF" by doing this: ls() { /bin/ls -aCF $*; } Hwa Jin Bae | Standard excuses...not responsible.../dev/null...etc. Control Data Corp. | (415) 463 - 6865 4234 Hacienda Drive | bae@tis.llnl.gov (Internet) Pleasanton, CA 94566 | {ames,ihnp4,lll-crg}!lll-tis!bae (UUCP)