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
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
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
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
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
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.
>
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