From: Alexander Monakov <amonakov@ispras.ru>
To: dash@vger.kernel.org
Cc: Vladislav Ivanishin <vlad@ispras.ru>
Subject: bug with --enable-glob
Date: Fri, 4 Aug 2023 19:05:35 +0300 (MSK) [thread overview]
Message-ID: <1a62e3dc-039b-36ae-c314-5f9a93f65841@ispras.ru> (raw)
Hello,
We found a bug where latest dash (v0.5.12) behaves incorrectly
when built with --enable-glob.
To reproduce:
touch 'echo a'
dash -c 'trap "echo a/" 0'
This prints
a
instead of the correct
a/
We noticed this because it results in contents of giant trap handlers
from configure scripts passed to glob and eventually to syscalls.
Thanks.
Alexander
reply other threads:[~2023-08-04 16:13 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1a62e3dc-039b-36ae-c314-5f9a93f65841@ispras.ru \
--to=amonakov@ispras.ru \
--cc=dash@vger.kernel.org \
--cc=vlad@ispras.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).