Re: reporting a bug

2022-12-15 Thread Greg Wooledge
On Thu, Dec 15, 2022 at 10:55:51AM +, y...@liberman.co.il wrote: > function sa { > for y in $(seq $1 $e2); do > echo "echo search $y " > done > } As others have pointed out, you've written $e2 instead of $2. In addition to that, you're relying on the Linux-speci

Re: reporting a bug

2022-12-15 Thread Andreas Schwab
On Dez 15 2022, y...@liberman.co.il wrote: > function sa { > for y in $(seq $1 $e2); do The variable e2 is not defined. > echo "echo search $y " > done > } > > > > bug description: > asking to search from 10 to 20 got search from 1 to 10 > > > example: > > source

Re: reporting a bug

2022-12-15 Thread Martin Schulte
Hello! > function sa { > for y in $(seq $1 $e2); do > echo "echo search $y " > done > } I assume you should write $2 instead of $e2 in line 2. Best regards, Martin

reporting a bug

2022-12-15 Thread yair
function sa { for y in $(seq $1 $e2); do echo "echo search $y " done } bug description: asking to search from 10 to 20 got search from 1 to 10 example: source test.sh sa 10 20 echo search 1 echo search 2 echo search 3 echo search 4 echo search 5 echo sea

Re: reporting a bug: output of a long line, longer than fits on winow-size, breakes bash

2022-07-11 Thread Chet Ramey
On 7/10/22 8:35 AM, Anton Wessel wrote: I am working with Kubuntu 22.04 and KNOPPIX 9.1, bash version is reported by KNOPPIX: 5.1.4(1)-release (i686-pc-linux-gnu) My bash script contains many bash one-liners and comments. The one-liners are put into the history list by code like: history -s

Re: reporting a bug: output of a long line, longer than fits on winow-size, breakes bash

2022-07-10 Thread Greg Wooledge
On Sun, Jul 10, 2022 at 02:35:40PM +0200, Anton Wessel wrote: > When a one-liner is long, longer than fits on current window size, then > problems in bash occure. > > This has nothing to do with what is the contents of the long line. > > Bash is broken by the fact that window size is exceeded. >

reporting a bug: output of a long line, longer than fits on winow-size, breakes bash

2022-07-10 Thread Anton Wessel
I am working with Kubuntu 22.04 and KNOPPIX 9.1, bash version is reported by KNOPPIX: 5.1.4(1)-release (i686-pc-linux-gnu) My bash script contains many bash one-liners and comments. The one-liners are put into the history list by code like: history -s ': # ' After this script had been run o