Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #14877
| Path | csiph.com!goblin2!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail |
|---|---|
| From | Bize Ma <binaryzebra@gmail.com> |
| Newsgroups | gnu.bash.bug |
| Subject | Re: Bash removes unrequested characters in bracket expressions (not a range). |
| Date | Wed, 28 Nov 2018 06:45:45 -0400 |
| Lines | 35 |
| Approved | bug-bash@gnu.org |
| Message-ID | <mailman.5073.1543846788.1284.bug-bash@gnu.org> (permalink) |
| References | <CAFra36hcAjBHGgd_8sHjOV4wSzjmdCyLV2aQo8Ww1bwJqkxYQA@mail.gmail.com> <1c24a279-f439-a13c-be60-901096ccd4e1@case.edu> <CAFra36hdkG+5qq94cf-sbKrnw6roJWez03aKJPU=Z=Vad2LaXg@mail.gmail.com> <63b8941d-16bc-0761-7272-83eb7347354e@case.edu> <f3ddce9d-8494-e93d-62b7-26c61ee4ef96@case.edu> |
| NNTP-Posting-Host | lists.gnu.org |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset="UTF-8" |
| Content-Transfer-Encoding | quoted-printable |
| X-Trace | usenet.stanford.edu 1543846789 31670 208.118.235.17 (3 Dec 2018 14:19:49 GMT) |
| X-Complaints-To | action@cs.stanford.edu |
| To | Chester Ramey <chet.ramey@case.edu> |
| Envelope-to | bug-bash@gnu.org |
| Resent-Date | Mon, 3 Dec 2018 09:19:38 -0500 |
| In-Reply-To | <f3ddce9d-8494-e93d-62b7-26c61ee4ef96@case.edu> |
| Resent-From | Chet Ramey <chet.ramey@case.edu> |
| Resent-To | bug-bash@gnu.org, bash@packages.debian.org |
| X-Google-DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:delivered-to:dkim-signature:mime-version :references:in-reply-to:from:date:message-id:subject:to; bh=Ba4c96+TkCmyqA5kdkrdXcynQqRug5gq1sSMoPx4XT8=; b=hMckyCfaW8G+rG+RaNZp1jHNFqcAJOfQww2yIWWvdNPG7HGtkh53jUPb4r70F3aCGV UmTSVpVb9GyI1SYMxbhcM1V0cwC8BtPkHQ6rCWJQGFSQuTVv3a/MLqIaJxwCi6G254uW RyzTIyMctlefzFh/HB4FbR2RBh2HHqH1xY107SnW060TRHHVdtujeNJOsLJwLQCzfRFl cPV+TS75l0SzeWz8FZ3Xa0HHUsjeGht6lYHKcIlF0XE9Ny9jWH8UmXAez6B+PxP6gUjq +xKFrWMy6mfERDtEC7oGy+XT7C3NgmBQjd/NDoDei8K2XgUOcEJjz0TCkUGG2dCYVMIs tOfQ== |
| X-Gm-Message-State | AA+aEWbP4VKj9D76eoc2ovRvp34L63yn/3Ur44LuZZ3VNLu8Si++JQnq +MsVLVqhm/KJCwQexvTlAHZUcGN5kxrfO8PZvmdmBnCMqB96wgQMFzLYLvWShYc+LIYadUh8ok1 jK/dda+t23DhvLjO0/CwXcDMnzu0P8JUarwDQ6wvi+D4tk53cZjmCJQ== |
| X-Received | X-Received |
| X-Received | by 2002:adf:9b11:: with SMTP id b17mr30763824wrc.168.1543401961374; Wed, 28 Nov 2018 02:46:01 -0800 (PST) |
| X-Forwarded-To | chet@chet-mail.tis.cwru.edu |
| X-Forwarded-For | cpr@case.edu chet@chet-mail.tis.cwru.edu |
| X-Delivered-To | cpr@cwru.edu |
| X-Google-Smtp-Source | AFSGD/WEDkYwXaGbCutN6hMosFHEUJugvsWzB+zZ7HExUymrBpnuLDS7geMzgQRREdnsPXOh8pHI |
| X-ARC-Seal | i=1; a=rsa-sha256; t=1543401959; cv=none; d=google.com; s=arc-20160816; b=k1mPg3atEu8MDAYt6MUUjGgyXKNaEaL55LTbu4s8PAbRI+gsoJ12aNnRkWeogGG9bN JnZSuaInJyT08e5s7R+lKLNDWADiI3AK2Eq20g8haOmoG1+8myTgB7pHjidATURxXgfX +1xx2wth3N5HouEs4ILLWH2HJaHm0CkD02AJU6ra/D3GCnBBj44aHxFz8iYy0Hq4y1AH 6hYDnu4Ds/9QzhxYUAYVSkx9pgdKh7nb1B3sM3/h5Px/TqtkUGN5RStQgR/mMZpSVuui 0YrUNFGBTRLbEVGpmVc03JrC7ZFUgAJmKztfbtRoslJaA8rmR4bfYT54fIpiHVClI9Nr 2I6g== |
| X-ARC-Message-Signature | i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=Ba4c96+TkCmyqA5kdkrdXcynQqRug5gq1sSMoPx4XT8=; b=KnACvgP7W0EZip/Aglm08Kp40YY4Gk9cAu7lH845z6OFF3ZAwivgBZpO5w7k5r6zBo /beOUfTch0zkoRAeOQaoF898sj8D986/tRY3mhcO91BrgxlVj8F0f2/xn21SLOCz/2zG uIGVuoUJI9Hy2u2ODAuu5VrbnYwVvhdf5gNJd2tTK71Fi+G7QOtRIwS30tZcxQr267YP ya7x+oYlivViwWLTDzWMxwt+//e1hTqe/wvGwNjWhN0UzyKHPVKOsZuXSbCl87NZnPv9 1Wv07CEdgwJ2rdRI0u3WF6Ohd+k1eAVhA26EhewGTh6/Xuv8hAIm72BF4jDti1FDWE/D ASGw== |
| X-ARC-Authentication-Results | i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=sUyZHS59; spf=pass (google.com: domain of binaryzebra@gmail.com designates 209.85.210.45 as permitted sender) smtp.mailfrom=binaryzebra@gmail.com |
| X-Received-SPF | pass (google.com: domain of binaryzebra@gmail.com designates 209.85.210.45 as permitted sender) client-ip=209.85.210.45; |
| X-Authentication-Results | mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=sUyZHS59; spf=pass (google.com: domain of binaryzebra@gmail.com designates 209.85.210.45 as permitted sender) smtp.mailfrom=binaryzebra@gmail.com |
| X-DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=Ba4c96+TkCmyqA5kdkrdXcynQqRug5gq1sSMoPx4XT8=; b=sUyZHS595q8yJluL2Z5XZUjZX4rNFms4f08y2Mm1vDGPZn5rPFYcvddh6+zKGskuVh I4QbyskOdCxkZ3BGzIpVtxfxvUGdxdL5OtpKECXCqnfApjctpt61rTdkcABllcVR9Ai0 zjAEV1OBKUQNTTIlt5hKHCZ7tTyUptKebShK9ML5bxb5kZLulxWhYxicOTVwHv1mE5qd ls9BzVN6Zgv00HCrV0kN0b603qCfYF7oBqYAjJUqhmEWHy4l8PDKOwaEsH62Xu4ydQwm ObMkaq74YzMlEekbCry2aQ3r8PRyyCdOjPdjxZZSaZN3O7rJE0ZRm/hlKtt9YZsj6ZgM IRyw== |
| Resent-Message-Id | <20181203141938.E6E8832D7777@caleb.ins.cwru.edu> |
| X-Junkmail-Status | score=8/90, host=mpv2-2015.case.edu |
| X-Junkmail-PrAS-Raw | score=8/90, refid=2.7.2:2018.12.3.140616:17:8.510, ip=, rules=DATE_TZ_NA, __HAS_FROM, __FRAUD_WEBMAIL_FROM, __FROM_GMAIL, __TO_MALFORMED_2, __TO_NAME, __TO_NAME_DIFF_FROM_ACC, __SUBJ_REPLY, __BOUNCE_CHALLENGE_SUBJ, __BOUNCE_NDR_SUBJ_EXEMPT, __REFERENCES, __IN_REP_TO, __X_RESENT_FROM, __HAS_MSGID, __SANE_MSGID, __MIME_VERSION, __CT, __CTYPE_MULTIPART_ALT, __HEX28_LC_BOUNDARY, __CTYPE_HAS_BOUNDARY, __CTYPE_MULTIPART, __X_GOOGLE_DKIM_SIGNATURE, __X_FORWARDED_TO, FROM_SAME_AS_TO, FROM_SAME_AS_TO_DOMAIN, __MIME_TEXT_P2, __MIME_TEXT_H2, __ANY_URI, __URI_NO_WWW, __SUBJ_ALPHA_NEGATE, __HTML_AHREF_TAG, __FORWARDED_MSG, __HAS_HTML, __HTML_TAG_DIV, HTML_NO_HTTP, BODYTEXTP_SIZE_3000_LESS, BODY_SIZE_3000_3999, BODYTEXTH_SIZE_10000_LESS, __MIME_TEXT_H1, __MIME_TEXT_P1, __MIME_HTML, __URI_NS, HEX28_LC_NOT_GOOGLE, BODY_SIZE_5000_LESS, __FRAUD_WEBMAIL, IN_REP_TO, MSG_THREAD, __TO_REAL_NAMES, LEGITIMATE_SIGNS, __MIME_TEXT_P, [TRUNCATED], so=2010-03-03 19:42:08, dmn=2016-08-03-0138 |
| X-Mirapoint-Virus-RAPID-Raw | score=unknown(0), refid=str=0001.0A020212.5C053B7B.007D,ss=1,re=0.000,fgs=0, ip=0.0.0.0, so=2016-11-06 16:00:04, dmn=2011-05-27 18:58:46 |
| X-Mirapoint-Loop-Id | 481f79b6c8fba954bb3d1d47170e71d1 |
| X-detected-operating-system | by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] [fuzzy] |
| X-Received-From | 129.22.103.227 |
| 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:14877 |
Show key headers only | View raw
Chet Ramey (<chet.ramey@case.edu>) wrote: > On 11/24/18 2:32 PM, Chet Ramey wrote: > > >> But IMO locale collation should not be used for an explicit list. > > > > Collation order is used for each individual character in a bracket > > expression when compared against the string, as posix specifies. > Yes, values resulting from a glob expansion should be compared with strcoll. How many characters should there be in a range like [0-0] ? Or to be more precise: in a [0] bracket expression? one? If I were you, I would file a bug report with Debian against wcscoll. > And I would be told that wcscoll is doing what the collation file 14651 is telling it to do. And, that in any case, that file has been updated in glib2.8 anyway. > It returns 0 (equal) for L"٠" and L"0" without setting errno. That's > clearly a problem with wcscoll (if the character isn't valid in the current > locale) or the locale definition. > Both characters collate to the same position as I have already explained. I don't follow you about what you mean with: *(if the character isn't valid in the current locale).*
Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread
Re: Bash removes unrequested characters in bracket expressions (not a range). Bize Ma <binaryzebra@gmail.com> - 2018-11-28 06:45 -0400
csiph-web