help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: some.. bug .. ?


From: Alex fxmbsw7 Ratchev
Subject: Re: some.. bug .. ?
Date: Thu, 2 Dec 2021 17:57:32 +0100

yea suxx

ill recode the bashlink somewhen and see then

On Thu, Dec 2, 2021, 17:56 Greg Wooledge <greg@wooledge.org> wrote:

> On Thu, Dec 02, 2021 at 05:44:14PM +0100, Alex fxmbsw7 Ratchev wrote:
> > well no idea
> >
> > printf 'e=. ; (( $# > 1 )) && $e afile "${@:1:$# -1}"' >afile ; set -x ;
> .
> > afile 1 2 3 4 ; set +x
> >              + . afile 1 2 3 4
> > ++ e=.
> > ++ ((  4 > 1  ))
> > ++ '' afile 1 2 3
> >        bash: : command not found
> >              + set +x
>
> I can't reproduce this in bash 5.1.
>
> unicorn:/tmp/x$ printf 'e=. ; (( $# > 1 )) && $e afile "${@:1:$# -1}"'
> >afile
> unicorn:/tmp/x$ set -x
> unicorn:/tmp/x$ . afile 1 2 3 4
> + . afile 1 2 3 4
> ++ e=.
> ++ ((  4 > 1  ))
> ++ . afile 1 2 3
> +++ e=.
> +++ ((  3 > 1  ))
> +++ . afile 1 2
> ++++ e=.
> ++++ ((  2 > 1  ))
> ++++ . afile 1
> +++++ e=.
> +++++ ((  1 > 1  ))
> unicorn:/tmp/x$ echo "$BASH_VERSION"
> + echo '5.1.4(1)-release'
> 5.1.4(1)-release
>
>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]