bug-bash
[Top][All Lists]
Advanced

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

"until continue" causes bash to exit.


From: Dan Douglas
Subject: "until continue" causes bash to exit.
Date: Tue, 19 Jul 2016 18:15:21 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1

Hi, I could reproduce this in all bash versions.

bash -c 'set -x; until continue; do :; done; echo test1'; echo test2
+ continue
test2

I'm not actually sure whether this is supposed to work at all. Almost
all shells do something strange when given continue in the first
compound-list. E.g. ksh93 does like bash and exits, and zsh breaks
out of the loop.

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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