This is the mail archive of the
mailing list for the Cygwin project.
Re: Bash silently truncates the Command Line when called programatically via CreateProcess as MAXPATHLEN was reduced to 8192 from 16384
- From: Abhijit Bhattacharjee <itabhijitb at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Sat, 31 May 2014 18:58:59 +0530
- Subject: Re: Bash silently truncates the Command Line when called programatically via CreateProcess as MAXPATHLEN was reduced to 8192 from 16384
- Authentication-results: sourceware.org; auth=none
- References: <CANMjiJqz6uJ7pp=iS5FK_ZnS9nxCT1fY+EndcgzPan7sv2pXJA at mail dot gmail dot com> <20140526200857 dot GA3903 at ednor dot casa dot cgf dot cx> <lm08n5$tgp$1 at ger dot gmane dot org> <20140526212219 dot GA4754 at ednor dot casa dot cgf dot cx> <CANMjiJpDU-aVxg1X8G_Lk8pKLEmXbs24+ieD=w3f8ZmQ2jdjTw at mail dot gmail dot com> <CANMjiJqkm1pD5zuKWc_aRw8h9mzfdpwSkk6u6ybLmgHKGEd0PQ at mail dot gmail dot com> <5385A486 dot 4090900 at tiscali dot co dot uk> <538623E9 dot 8000507 at etr-usa dot com>
Thank you everyone for your time and reply. I believe from your reply
I am able to get the problem sorted out. I would also try to reply to
each of your queries
@Chris J. Breisch
Qs/Stmt: Why are you using that make and not the Cygwin make?
Qs/Stmt: I suggest that you switch to CMake or SCons, either of which
will let you build software in a platform-independent way.
Ans: We had some hickups in the initial days while running builds on
multiple threads and the alternative worked for us. As it had been
working for ages we would rather want to stick with it. Its just that
with the recent Cygwin adoption, things started to fail.
Qs/Stmt: A Cygwin program which calls another Cygwin program does not
have this problem so it isn't completely immaterial.
Ans: I am not sure what you mean by Cygwin program. If you mean those
that are in your repository, I cannot comment. Instead, if you mean,
that's linked with cygwin1.dll, I believe, I have already shared with
you sample programs that exhibits the truncation behavior.
Qs/Stmt: Not sure who you are talking to but, on the off chance that
you are hoping to engage a Cygwin developer, we do know where the glob
code lives. As I indicated, it originally comes from FreeBSD.
Ans: I believe not everyone out here are Cygwin developers. Even so,
with my experience, I know, even in my product, I do not know where
all the code comes from. If someone has already done the search, it is
Qs/Stmt: Possibly setting the CYGWIN environment variable to "noglob"
might cause things to work as desired.
Ans: I am yet to test this, but I trust your answer. I am yet to
figure out as to how I can set the environment variables CYGWIN with
multiple values i.e. I need to set it with nodosfilewarning and
noglob. I was trying to read though your code environ.cc and seems to
me I can simply separate it with a delimiter. Your documentation is
silent about it. If you know it off hand, please let me know, that
will reduce some effort for me to read and debug though your code :-)
Qs/Stmt: Instead of gmake and bash, are you able to use 'nmake' (that
comes with MSVC)?
Ans: nmake is awful and not even portable.
On Wed, May 28, 2014 at 11:29 PM, Warren Young <firstname.lastname@example.org> wrote:
> On 5/28/2014 02:55, David Stacey wrote:
>> are you able to use 'nmake' (that comes with MSVC)?
> nmake is awfully primitive in itself compared to GNU make, and it is doubly
> crippled by being restricted to cmd.exe syntax for shell commands in the
> Instead, Abhijit, I suggest that you switch to CMake or SCons, either of
> which will let you build software in a platform-independent way.
> And to keep a tenuous hold on topicality, both are packaged for Cygwin.
> Problem reports: http://cygwin.com/problems.html
> FAQ: http://cygwin.com/faq/
> Documentation: http://cygwin.com/docs.html
> Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple