Keith Marshall
keith****@users*****
Mon Apr 16 23:21:17 JST 2018
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 14/04/18 19:42, Keith Marshall wrote: >> Moreover, if I invoke a MinGW program with this argument, it >> receives the literal @{-1} as well in its argv[] array. > > ... while that may be true when brace expansion has not been > enabled, (by default, it is not), I do see two bugs in mingwrt's > implementation of glob(3), when the feature is enabled: > > $ cmd Microsoft Windows XP [Version 5.1.2600] (C) Copyright > 1985-2001 Microsoft Corp. > > C:\mingw\msys\1.0\home\keith> showargv @{-1} command: showargv > @{-1} argv[00]: showargv argv[01]: @-1 > > Note, that brace expansion has occurred, although there is no > comma within the brace expression; moreover, quoting the argument > doesn't prevent it, (as it should): > > C:\mingw\msys\1.0\home\keith> showargv "@{-1}" command: showargv > "@{-1}" argv[00]: showargv argv[01]: @-1 > > C:\mingw\msys\1.0\home\keith> showargv '@{-1}' command: showargv > '@{-1}' argv[00]: showargv argv[01]: @-1 > > ... the bug which is apparent in mingwrt's glob(3) does merit > investigation. I opened a ticket: https://osdn.net/projects/mingw/ticket/38207 The two associated patches do appear to resolve the issues (identified above); obviously, since the OP appears to be dependent on third party tools, over which we have no control, they may not mitigate his issue. - -- Regards, Keith. Public key available from keys.gnupg.net Key fingerprint: C19E C018 1547 DE50 E1D4 8F53 C0AD 36C6 347E 5A3F -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.20 (GNU/Linux) iQIcBAEBAgAGBQJa1LFcAAoJEMCtNsY0flo/EhcP/iMXpslBUz9gEhtofRw/EAH/ 6+mCoapYkOgcZr5h26FeJMRKkx20JHjP+aiapODo1fk9fTADlCGlYUBLsnCiiChW iGRBXwD0kSqrj3DwhX6rHvUJk0/7pByolfP/T2fVJh7AIXnhUbttGEQpOqoMlojb Jt2s38HExLus0RJS5KyqmQYkSnjIH/IpZ+x+mqkGnFh/COKNmtD+PYmINA6rxk+v K6taM92kNWp10nVcpjcBbgde2ZZivS/AL1NgCaiI1TDPWcFWswiLWFdEXEtkBfwP DZfRmVIJGBCqY56VbIrnKSX/x4vvXrQ+8+QXPeA0iEbk+PPGjCr1V32sWoK9UVl+ TZnH2gqboCc0in0enl5LnnnPAlyZWchNdXuoVI4MLFoLkDgDm7AqgEnfLlsaDtpD 1sLgvsOasxxalSQQbE9wPE2Id2gJGGM0cP+Ur7B89tU8CgNHmhmZ+doZtIKmk/Gg iAupv5sVWFs7tVYYpTzpF07Pdx/rO08PH95LsL2k3pRHrKYxaSVMpmCBlFlq5Wnb nFEhZ3l7urSzeRPI1/XABNkX1KQ49RQKbL2QUAYRugr445Ljg9y+YjOMXqUHGa0f 4AdDOwxym+JKKzREv9hKzrIl9yngcxrgAq7aVpoP+FrJMDMvbK38yE9C3Yx15Poq zUSnybxPl85MNa0NrwLi =XoCZ -----END PGP SIGNATURE-----