Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #14522
| Path | csiph.com!xmission!news.snarked.org!news.linkpendium.com!news.linkpendium.com!panix!usenet.stanford.edu!not-for-mail |
|---|---|
| From | Michal Pesa <pesathem@gmail.com> |
| Newsgroups | gnu.bash.bug |
| Subject | Nested extglob outputs "." ".." |
| Date | Wed, 22 Aug 2018 09:57:19 +0200 |
| Lines | 30 |
| Approved | bug-bash@gnu.org |
| Message-ID | <mailman.5395.1534925236.1292.bug-bash@gnu.org> (permalink) |
| NNTP-Posting-Host | lists.gnu.org |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8; format=flowed |
| Content-Transfer-Encoding | 8bit |
| X-Trace | usenet.stanford.edu 1534925237 20120 208.118.235.17 (22 Aug 2018 08:07:17 GMT) |
| X-Complaints-To | action@cs.stanford.edu |
| To | 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=to:from:subject:message-id:date:user-agent:mime-version :content-transfer-encoding:content-language; bh=/1bUt5XjfUF71GyxBxjnirUbe0HyJYSjeGNgJdpP64Q=; b=ISzNBYjhzrfJmw5Sv7yWb2haduOiM9GfS3AH38MkoVCYZqDLuzru8rcYJvVlMHFmf5 k1e6Z8GuDrBOo+uVBMDEVi2F74Y87v4VlDM8zoQTOjVG5uBRYLHq1U1rPiX6bePoErBP XiJO3umYLW3vcd1x9+gWvPH70YTO2BsQ0zOJqicA6Smeuy6abasMjBjLHndUWeWwcl+E tRHPf6dl3Xp93u31I0c2YpRoYMF/F6qmzyTHlNi50ZYNKU8/h9SDsiuBugJhRf4X0wH/ uJYtZIZEpwz+70ROdfnOe4TBWnLSR4LLGzTmdCQMiAjAgNeuQpTTWrvhYh0URabV2sOw t50Q== |
| X-Google-DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-transfer-encoding:content-language; bh=/1bUt5XjfUF71GyxBxjnirUbe0HyJYSjeGNgJdpP64Q=; b=rB8N4dlGtHdAT9VAfSWxHMuaCJbNOSksA5txZzPtSl0YVjWd4aWaM0K9ZaxuFPaxmH yizS5CUzZHhijlM6CLnUae5FMlDDxEppXsZm/U7M0m0bXDeoddmEtKJy6Pg+DEiQ5ftB 6lNynXuowmpohMsYhdoizSBTvCV6v8BQR65rZmbA6xhMBWkcCoqS13EtUxS4vUlQRJbL KjD1244f3gz2Zsp+W4MPOvkAiXpdRVV0PHxGT3YMr5tIEDpFBd3dBbtOy7s+L0HJvAfa bw3NsLwgKjWdEZe8ixlKna645K9nn0SUCzVHwlCW0+k8C2HG3kd4PROroHPLafdBI7WJ C6Xg== |
| X-Gm-Message-State | APzg51AxQXTLq9xo3tDrXMfNqHvt/GwdnQSwgUpxG7JoneSkOBrUx9wu yRBGCd/jrK30LgbFF0q9FZUt6oGP |
| X-Google-Smtp-Source | ANB0VdZJyEAhDSOvADDYllmLjeeCw2qJRLmQbkbnChROV165qHhAhuH67wulVIu7pTlDncgSYsd4Iw== |
| X-Received | by 2002:a1c:ee94:: with SMTP id j20-v6mr1670010wmi.66.1534924638235; Wed, 22 Aug 2018 00:57:18 -0700 (PDT) |
| User-Agent | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 |
| Content-Language | en-US |
| X-detected-operating-system | by eggs.gnu.org: Genre and OS details not recognized. |
| X-Received-From | 2a00:1450:400c:c09::229 |
| 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:14522 |
Show key headers only | View raw
Hello, I have encountered a strange behavior of nested extended globs: $ echo * 0000.txt 000.txt 00.txt 0.txt a.txt b.txt c.txt $ echo !(0.txt) 0000.txt 000.txt 00.txt a.txt b.txt c.txt $ echo !(+(0).txt) . .. a.txt b.txt c.txt The last example correctly excludes the files but why are "." ".." being printed? Thank you for your time. Configuration Information: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-pc-linux-gnu' -DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash' -DSHELL -DHAVE_$ uname output: Linux pish-lub 4.15.0-29-generic #31-Ubuntu SMP Tue Jul 17 15:39:52 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux Machine Type: x86_64-pc-linux-gnu Bash Version: 4.4 Patch Level: 19 Release Status: release
Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread
Nested extglob outputs "." ".." Michal Pesa <pesathem@gmail.com> - 2018-08-22 09:57 +0200
csiph-web