From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21611 invoked by alias); 31 May 2014 13:29:45 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 21599 invoked by uid 89); 31 May 2014 13:29:43 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.5 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-oa0-f52.google.com Received: from mail-oa0-f52.google.com (HELO mail-oa0-f52.google.com) (209.85.219.52) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Sat, 31 May 2014 13:29:41 +0000 Received: by mail-oa0-f52.google.com with SMTP id eb12so3000521oac.11 for ; Sat, 31 May 2014 06:29:40 -0700 (PDT) X-Received: by 10.182.128.202 with SMTP id nq10mr2790150obb.77.1401542979819; Sat, 31 May 2014 06:29:39 -0700 (PDT) MIME-Version: 1.0 Received: by 10.76.176.98 with HTTP; Sat, 31 May 2014 06:28:59 -0700 (PDT) In-Reply-To: <538623E9.8000507@etr-usa.com> References: <20140526200857.GA3903@ednor.casa.cgf.cx> <20140526212219.GA4754@ednor.casa.cgf.cx> <5385A486.4090900@tiscali.co.uk> <538623E9.8000507@etr-usa.com> From: Abhijit Bhattacharjee Date: Sat, 31 May 2014 13:37:00 -0000 Message-ID: Subject: Re: Bash silently truncates the Command Line when called programatically via CreateProcess as MAXPATHLEN was reduced to 8192 from 16384 To: cygwin@cygwin.com Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2014-05/txt/msg00550.txt.bz2 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 @Warren Young 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. @Christopher Faylor 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 really helpful. 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 :-) @David Stacey 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. Rgrds, Abhijit On Wed, May 28, 2014 at 11:29 PM, Warren Young 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 > targets. > > 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 FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple