Thread View: gnu.bash.bug
2 messages
2 total messages
Started by Len Jacobs
Sat, 03 Feb 1990 17:26
questions re bash-1.04
Author: Len Jacobs
Date: Sat, 03 Feb 1990 17:26
Date: Sat, 03 Feb 1990 17:26
14 lines
901 bytes
901 bytes
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
Re: questions re bash-1.04
Author: Bill Trost,Box 607,ext 640,
Date: Wed, 07 Feb 1990 01:00
Date: Wed, 07 Feb 1990 01:00
24 lines
1110 bytes
1110 bytes
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
}
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads