git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: Bo Zhang <zhangbodut@gmail.com>
To: git@vger.kernel.org
Subject: Potential asterisk expansion bug in Windows Git Bash?
Date: Wed, 14 Aug 2019 19:50:47 +0800	[thread overview]
Message-ID: <CAO=KXnspgZa=R9=8wvPY-Y8pvuAah-D+Jc4CM_+cdemYGUJ09A@mail.gmail.com> (raw)

Hi there,

Not sure if this is the correct channel to submit a bug report for
Windows Git Bash. Please let me know if I did anything wrong.

Today I noticed that on Windows Git Bash, the asterisk (*) is
incorrectly expanded even when it’s in a quote or following a
backslash (\). I’m wondering if this is the correct behaviour (which
seems like to me NOT).

Step to reproduce (in Windows git bash):

zhb@zhb-PC MINGW64 ~/Desktop
$ bash --version
GNU bash, version 4.4.19(2)-release (x86_64-pc-msys)
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

zhb@zhb-PC MINGW64 ~/Desktop
$ cat 1.sh
echo $1

zhb@zhb-PC MINGW64 ~/Desktop
$ bash 1.sh '*'
$A 1.sh 1.txt

zhb@zhb-PC MINGW64 ~/Desktop
$ bash 1.sh "*"
$A 1.sh 1.txt

zhb@zhb-PC MINGW64 ~/Desktop
$ bash 1.sh \*
1.sh 1.txt

Thank you very much.

Regards,
Bo Zhang

             reply	other threads:[~2019-08-14 11:51 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-14 11:50 Bo Zhang [this message]
2019-08-14 12:10 ` Potential asterisk expansion bug in Windows Git Bash? Jeff King
2019-08-14 12:38   ` Bo Zhang

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

  List information: http://vger.kernel.org/majordomo-info.html

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAO=KXnspgZa=R9=8wvPY-Y8pvuAah-D+Jc4CM_+cdemYGUJ09A@mail.gmail.com' \
    --to=zhangbodut@gmail.com \
    --cc=git@vger.kernel.org \
    /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.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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).