* sh can't run any programs from script when PATH exceeds 2500 characters
@ 1999-02-24 11:44 Chris Felaco
1999-02-28 23:02 ` Chris Felaco
0 siblings, 1 reply; 2+ messages in thread
From: Chris Felaco @ 1999-02-24 11:44 UTC (permalink / raw)
To: cygwin
I have a sh script that basically sets up a bunch of environment variables, constructs a PATH based on some input files and then runs a program. If the path is over 2500 characters, the program (no matter what program it is) gives the following error:
foo: error 11
Even Win32 native apps such as cmd fail this way. Unfortunately, I can't easily reproduce the problem. I've tried writing a simple bare script to test it, but it won't fail. It only fails in my rather involved script that makes use of several input files from various locations.
Is there a hard limit on the PATH size? Is there perhaps a fixed buffer size used for the PATH conversion in the cygwin DLL? Any help or suggestions are appreciated....
^ permalink raw reply [flat|nested] 2+ messages in thread
* sh can't run any programs from script when PATH exceeds 2500 characters
1999-02-24 11:44 sh can't run any programs from script when PATH exceeds 2500 characters Chris Felaco
@ 1999-02-28 23:02 ` Chris Felaco
0 siblings, 0 replies; 2+ messages in thread
From: Chris Felaco @ 1999-02-28 23:02 UTC (permalink / raw)
To: cygwin
I have a sh script that basically sets up a bunch of environment variables, constructs a PATH based on some input files and then runs a program. If the path is over 2500 characters, the program (no matter what program it is) gives the following error:
foo: error 11
Even Win32 native apps such as cmd fail this way. Unfortunately, I can't easily reproduce the problem. I've tried writing a simple bare script to test it, but it won't fail. It only fails in my rather involved script that makes use of several input files from various locations.
Is there a hard limit on the PATH size? Is there perhaps a fixed buffer size used for the PATH conversion in the cygwin DLL? Any help or suggestions are appreciated....
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1999-02-28 23:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-02-24 11:44 sh can't run any programs from script when PATH exceeds 2500 characters Chris Felaco
1999-02-28 23:02 ` Chris Felaco
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).