9 Kasım 2020 Pazartesi tarihinde Dale R. Worley yazdı:
> writes:
> >> On Nov 8, 2020, at 6:49 PM, Budi wrote:
> >>
> >> Need feature on while's readily flag
> >>
> >> $ i=;while ((i<5)) ;do let i++ ;echo $i ;done ;echo $?
> >> 1
> >> 2
> >> 3
> >> 4
> >> 5
> >> 0
> >>
> >> $ i=7;while ((i<5)) ;
Date:Sun, 08 Nov 2020 20:37:24 -0500
From:wor...@alum.mit.edu (Dale R. Worley)
Message-ID: <87ft5j2tuz@hobgoblin.ariadne.com>
| What cannot be controlled is the exit value if the block is not executed
| i.e. if the initial evaluation of the condition is false.
On Mon, Nov 09, 2020 at 05:27:38PM +0700, Robert Elz wrote:
> | What cannot be controlled is the exit value if the block is not executed
> | i.e. if the initial evaluation of the condition is false. In that case,
> | the exit value is always zero.
>
> That's what the standard says it has to
On 11/6/20 1:25 PM, Ivan Kozlov wrote:
> Readline tests that macro and suppresses software flow control. This is quite
> handy: I want software flow control, just not *in bash*, where it is not
> useful and I would like C-s to do incremental search instead. With
> USE_XON_XOFF, it is inactive in
Date:Mon, 9 Nov 2020 07:52:34 -0500
From:Greg Wooledge
Message-ID: <20201109125234.gy...@eeg.ccf.org>
| Not in the general case, "while somecommand". Running "somecommand"
| may have nontrivial costs and side effects that would prevent you from
| wanting to run
bash version 5.0.3(1)-release, Debian package 5.0-4, amd64.
Prompted by a discussion with someone in IRC.
unicorn:~$ key='$(date >&2)'
unicorn:~$ declare -A aa
unicorn:~$ aa[$key]=foo
unicorn:~$ echo "${aa[$key]}"
foo
unicorn:~$ [[ -v aa[$key] ]]
Mon Nov 9 18:17:30 EST 2020
bash: aa: bad array s