what's the use of "{ list }" in /bin/sh?

bae at ati.tis.llnl.gov.UUCP bae at ati.tis.llnl.gov.UUCP
Fri Jul 8 09:07:40 AEST 1988


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 at tis.llnl.gov			   (Internet)
Pleasanton, CA 94566 | {ames,ihnp4,lll-crg}!lll-tis!bae    (UUCP)



More information about the Comp.unix.questions mailing list