From: Ev Drikos <drikosev@gmail.com>
To: cygwin@cygwin.com
Subject: Incorrect expansion of a program argument that is a special character?
Date: Wed, 21 Jul 2021 14:42:59 +0300 [thread overview]
Message-ID: <CAK5_-8oS-CNCFqL6bqn3YgdnDF4ALq6tn3Z5_AzBEH-P3ai1yQ@mail.gmail.com> (raw)
Hello,
When I run the program below from my home directory in a PowerShell
Console (Windows 8-1) I've to use an extra backslash character as
shown below or the star is expanded. Which happens only when the
program has been compiled in Cygwin.
Is this a bug or a known feature?
Ev. Drikos
----------------------------------------------
PS C:\Users\suser> .\args.exe '\*'
*
argc=1
PS C:\Users\suser>
----------------------------------------------
#include <stdio.h>
int main(int argc, char *argv[]){
int i;
for (i=1; i < argc; i++) {
printf("\n%s",argv[i]);
}//for
printf("\nargc=%d\n",argc-1);
return 0;
}
next reply other threads:[~2021-07-21 11:43 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-21 11:42 Ev Drikos [this message]
2021-07-21 12:18 ` Russell VT
[not found] ` <CAK5_-8oOKuSQd35f2KF=q7Xy5mMQkukEUJa_dja+1WtHUGMcRQ@mail.gmail.com>
2021-07-21 14:21 ` Fwd: " Ev Drikos
2021-07-21 15:44 ` Brian Inglis
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=CAK5_-8oS-CNCFqL6bqn3YgdnDF4ALq6tn3Z5_AzBEH-P3ai1yQ@mail.gmail.com \
--to=drikosev@gmail.com \
--cc=cygwin@cygwin.com \
/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).