X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:subject:from:to:mime-version :content-type:content-transfer-encoding; q=dns; s=default; b=CG5 bEaXkqE0WeJ9cN6KK1rjSWBLjI0UAZJWDB6SIcfFbXXCKKfYoZriiZHPm9zWtnjZ 8GTmpIQroavRsrDGIs7WTdxw85Pde+YiYnfWtPS2LakLCFEtHPIhqw/o66XPle2w GFcCRb0ZUawtyICTqQOocnc2sVCIyOLxe+Q2X/D4= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:subject:from:to:mime-version :content-type:content-transfer-encoding; s=default; bh=DFAuUO6CO kFaPB02dQXypJ2Fxns=; b=P050p0zX3xmcasbl6Yr/1NqlFXrJcKj2Rk7WML3ip z+JRI6W4jYyPM/ozS4nRdZnnMGvTJt9a/f6w/0+mrp8DZHjD+Q6CK1WTuQ5sSc/p cGJJzfea7l/8yX+d14scNL39ntBmoDNmf9noiaK3tOHC494OJNW73mjXidLIum96 bA= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.2 required=5.0 tests=AWL,BAYES_50,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: smtp-vbr14.xs4all.nl Message-ID: <148f67d907d379af19ab91c030b65403.squirrel@webmail.xs4all.nl> Date: Wed, 28 May 2014 17:41:19 +0200 Subject: Re: Bash silently truncates the Command Line when called programatically via CreateProcess as MAXPATHLEN was reduced to 8192 from 16384 From: "Houder" To: cygwin AT cygwin DOT com User-Agent: SquirrelMail/1.4.18 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit Hi Abhijit, > Please note, when I am saying the path is getting truncated, its the > bash that is truncating it. Also, its immaterial how and what is > getting called. With the latest Cygwin, any program that is compiled > and linked with the CRT would exhibit this behavior. The truncation > issue in the CRT is best demonstrated by the following Code couplets > > Caller.cpp > -------------- > [snip] > > Callee.cpp > ------------- > [snip] Using your code couplets (and modifying them a bit), I did some experimentation, and observed: - the first parameter to callee, if quoted, is truncated to 8186 bytes in case the length of the argument without quotes, exceeds the aforementioned length. - no truncation occurs in case the parameter is not quoted. As far as I can tell, it is not bash, but the Cygwin supervisor, that does the truncation. Henri -- 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