Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #14615

CTLESC and CTLNUL removed in certain contexts

Path csiph.com!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail
From Grisha Levit <grishalevit@gmail.com>
Newsgroups gnu.bash.bug
Subject CTLESC and CTLNUL removed in certain contexts
Date Thu, 20 Sep 2018 20:23:02 -0400
Lines 12
Approved bug-bash@gnu.org
Message-ID <mailman.1052.1537489400.1284.bug-bash@gnu.org> (permalink)
NNTP-Posting-Host lists.gnu.org
Mime-Version 1.0
Content-Type text/plain; charset="UTF-8"
X-Trace usenet.stanford.edu 1537489401 13388 208.118.235.17 (21 Sep 2018 00:23:21 GMT)
X-Complaints-To action@cs.stanford.edu
To bug-bash <bug-bash@gnu.org>
Envelope-to bug-bash@gnu.org
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=YEmtWpaXAtuOAoQGYD+uNzXwigiJNmx57L5wnOHbpxQ=; b=f5E2Cr5I5fp9NLRfNkN2a5A6tbEjR5hDJp2I4Fk5ep5WfYrwZKON7FcMWbJCDW/IsQ +0SWEQ/QOzxBq/vngGQi8nxjctK54S/R5wBGz0dzPYYY25kEoxYoC9A0NZr8wEpOTsPL Sm8hRw65uJX/mXkKVNtpvmhYvTVUGno3EJ/OY0qwGA5GDOEgeoBr6a5PlxAfn2ITqURm qTguHyiP4jX1FEQ9mYBm1JLX2XyIiUYvgc619IichRTPNId4ywmF4ePPTU1lIJKmLF8s xP43CBqh5YOdSbFdwlDlY1vDtpSIfrEI4R4UUiTH/FyFswV6Ph6C/oZfIYEibx/8PkUL 4KfQ==
X-Google-DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=YEmtWpaXAtuOAoQGYD+uNzXwigiJNmx57L5wnOHbpxQ=; b=ptPvtfm7gLr85/ATqX9Mt7u0BaQ/oHf3kwsf56mXbIk0qcAroPr9TJRLFYnGh1QgR8 3fipMzlelxmLz/Gdj8dE4qRHt8v0tmWagRlxOYi87FaLIDnhgpdWb7fYMqBlKCwKRDO8 UvbX/dbud0TUFNtBbwKNCjRGF1RpCnR3Z1YG6oXu11vz3FP1kZ6mh1/TySiIqPzhfsDf 1H5LuCLIRfx8+zUkaNld3bvsf30AZwEDOzWZmL17aulNTEtGyYr6HsWOT8etHNt8hTWV 3ga4ywDRxRF2QEeeais4BZ+XOqQ1CxBP0v8wqe3X1V3rCpoeyEbx+9qPXh3C/auwTUlJ vRJA==
X-Gm-Message-State APzg51BJHOeucdyAWPO476HLuYpgO3LfyPU1C02FOUamClYuKyuLvM6I ZmJHJa2oPjsZN8qSNvaO5x4wZrGVucRUl6fVkK04HQ==
X-Google-Smtp-Source ANB0VdaiYVkDredVQEvqEXzy7pFYH6L8/3oOCIlD+IWk0nkyvKzt6CSM/fErnus6Mg0BZtyeYwP/+YwmldeBQY/NFyg=
X-Received by 2002:a2e:21d5:: with SMTP id h82-v6mr27245531lji.46.1537489393782; Thu, 20 Sep 2018 17:23:13 -0700 (PDT)
X-detected-operating-system by eggs.gnu.org: Genre and OS details not recognized.
X-Received-From 2a00:1450:4864:20::22f
X-Content-Filtered-By Mailman/MimeDel 2.1.21
X-BeenThere bug-bash@gnu.org
X-Mailman-Version 2.1.21
Precedence list
List-Id Bug reports for the GNU Bourne Again SHell <bug-bash.gnu.org>
List-Unsubscribe <https://lists.gnu.org/mailman/options/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=unsubscribe>
List-Archive <http://lists.gnu.org/archive/html/bug-bash/>
List-Post <mailto:bug-bash@gnu.org>
List-Help <mailto:bug-bash-request@gnu.org?subject=help>
List-Subscribe <https://lists.gnu.org/mailman/listinfo/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=subscribe>
Xref csiph.com gnu.bash.bug:14615

Show key headers only | View raw


(this is maybe too edge-case to be worth looking at)

A couple circumstances cause repeated instances of \001 and any
instances of \177 to be removed from as string:

$ a=$'<\001\001><\177\177>'
$ z=$(compgen -W "$a"); echo "${z@A}"
z=$'<\001><>'
$ declare -A A=(); printf -v "A[$a]" X; declare -p A
declare -A A=([$'<\001><>']="X" )

The latter is resolved if assoc_expand_once is turned on.

Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread


Thread

CTLESC and CTLNUL removed in certain contexts Grisha Levit <grishalevit@gmail.com> - 2018-09-20 20:23 -0400

csiph-web