lj@spdcc.COM (Len Jacobs) (02/04/90)
1. While using bash-1.04 on a Sun 3/160 running SunOS 3.5, creating a new window by executing "shelltool &" the new window is created but "echo" is turned off of the stty settings in the new window. 2. Is there any way to run an aliased command without the alias being in effect? In csh I can "\rm" to produce the unalised effect of "rm". 3. Is there a bash equivalent to the csh "repeat" command? Thanks. -- Len Jacobs lj@ursa-major.SPDCC.COM
trost@reed.bitnet (Bill Trost,Box 607,ext 640,) (02/07/90)
In message <1510@ursa-major.SPDCC.COM>, lj@ursa-major.spdcc.COM (Len Jacobs) writes: .... >Is there a bash equivalent to the csh "repeat" command? Excluding oddities in the behavior of csh (involving redirecting, job control, and the like), this should do the job. I've found the oddities of csh to be non-intuitive anyhow. Awk doesn't seem right for this, but I'm being lazy and it was the only thing I could think of that is commonly available. A calculator program should do the job; a C program would be easy enough (and useful in its own right). repeat () { local count count=$1 shift for i in `awk 'BEGIN { for (i = 1; i <= '$count'; i++) print i }' < /dev/null` do $* # use "$@" in bash 1.05 and later done }