Re: cmd.exe and file name conversion from comman line argument
- Date: Fri, 27 Jul 2018 18:15:28 +0900
- From: h_ono@xxxxxxxxxxxxxxxx
- Subject: Re: cmd.exe and file name conversion from comman line argument
> From: Hiroo Ono/jp/olympus@olympus
> To: cygwin@xxxxxxxxxx
> Date: 2018/07/27 15:57
> Subject: Re: cmd.exe and file name conversion from comman line argument
> Sent by: cygwin-owner@xxxxxxxxxx
> c:\cygwin\home\hiroo> touch "あああ"
> c:\cygwin\home\hiroo> ls
It may be related to build_argv() in
line 320 to 328:
/* Skip over characters until the closing quote */
sawquote = cmd;
/* Handle quoting. Only strip off quotes if the parent is
a Cygwin process, or if the word starts with a '@'.
In this case, the insert_file function needs an unquoted
DOS filename and globbing isn't performed anyway. */
cmd = quoted (cmd, winshell && argc > 0 && *word != '@');
As the comment says,
c:\cygwin\home\hiroo> touch @"あああ"
gives file named @あああ.