gettext/libiconv and libtool problem

2010-03-12 Thread Roger While
Charles Wilson wrote Roger While wrote: > > gettext has a requirement on libiconv2. > libiconv2 contains only the cygiconv dll and nothing else. > > OK. So we have a typical (libtooled) autoconf/automake configure which has > a AM_GNU_GETTEXT([external]). > > Fine, the configure proceeds and prod

Re: Cygwin 1.7: Concurrency Issue with Shared State Initialization

2010-03-12 Thread Christopher Faylor
On Fri, Mar 12, 2010 at 04:35:48PM -0500, Christopher Faylor wrote: >On Fri, Mar 12, 2010 at 04:28:45PM -0500, Christopher Faylor wrote: >>...that would be useful. > >Also, one big thing is missing here: cygcheck output, as per >http://cygwin.com/problems.html. I just went back to check on what OS

RE: missing paths

2010-03-12 Thread Roe, Kevin L.
Sorry about the disconnect from the world on my PC, it can't be helped or changed. I looked in the /var/log/setup.log.full file and found a few warnings having to do with permissions. It is complaining about the /etc/passwd and /etc/group file not being readable by all. All the scripts in the

Re: tidy: update, packaging

2010-03-12 Thread Lapo Luchini
Lapo Luchini wrote: > Expect it in a few days. =) Errr, a few more days. Life hit hard on my "free time" last weeks... -- Lapo Luchini - http://lapo.it/ “Any sufficiently advanced technology is indistinguishable from magic.” (Arthur C. Clarke) -- Problem reports: http://cygwin.com/prob

Re: missing paths

2010-03-12 Thread Larry Hall (Cygwin)
On 3/12/2010 1:57 PM, Roe, Kevin L. wrote: First off, I cannot run cygcheck and give you the results. My machine is completely disconnected from the internet and has no external write capability. I think it goes without saying that this is an impediment to solving this problem. But I'll resor

Re: incomplete/corrupted setup.exe

2010-03-12 Thread Larry Hall (Cygwin)
On 3/12/2010 1:51 PM, George Barrick wrote: 2010.03.12.18:53:51 UT Hi Larry, O.K. So that would be a 'backbone' server in my region that caches the file, but gets a corrupted version of it? Perhaps. If it's not a local process that's causing the problem, then a bad

RE: missing paths

2010-03-12 Thread Roe, Kevin L.
Cancel the problem with the group below. I think I found the problem: The I don't have permission to read the /etc/group file. I still have the issue with the .bashrc file not being sourced. -Kevin -Original Message- From: cygwin-ow...@cygwin.com [mailto:cygwin-ow...@cygwin.com] On Be

Re: Cygwin 1.7: Concurrency Issue with Shared State Initialization

2010-03-12 Thread Christopher Faylor
On Fri, Mar 12, 2010 at 04:28:45PM -0500, Christopher Faylor wrote: >...that would be useful. Also, one big thing is missing here: cygcheck output, as per http://cygwin.com/problems.html. I just went back to check on what OS was being used and I don't see that anywhere. Please send that ASAP. c

RE: missing paths

2010-03-12 Thread Roe, Kevin L.
Ok, I have installed the profile file, but my .bashrc file does not seem to be sourced automatically. Also, it is complaining about my group being mkgroup when I know that my /etc/group file is correct. -Kevin -Original Message- From: cygwin-ow...@cygwin.com [mailto:cygwin-ow...@cygwin

Re: the .exe extension

2010-03-12 Thread Christopher Faylor
On Fri, Mar 12, 2010 at 04:49:37PM +0100, Thomas Wolff wrote: >On 12.03.2010 16:16, Eric Blake wrote: >>> ... >>> >> This is an area of active conversation; if you would like, you can test >> the latest snapshot and the experimental coreutils 8.4-1 to see if the >> behavior is more intuitive

Re: Cygwin 1.7: Concurrency Issue with Shared State Initialization

2010-03-12 Thread Christopher Faylor
On Fri, Mar 12, 2010 at 04:48:14PM +0100, Schmidt, Oliver wrote: >Hi, > >> Does the patch help? > >As the issue is sporadic it's not that easy to come up with a conclusive >answer... > >I downloaded http://cygwin.com/snapshots/cygwin1-20100309.dll.bz2, >unpacked and renamed the DLL and used it as

RE: "cp: skipping file 'file.txt', as it was replaced while being copied"

2010-03-12 Thread Roe, Kevin L.
I now have 1.7.1 The problem I reported in this thread is still there. Any other thoughts? -Kevin -Original Message- From: cygwin-ow...@cygwin.com [mailto:cygwin-ow...@cygwin.com] On Behalf Of Roe, Kevin L. Sent: Friday, March 05, 2010 3:36 PM To: cygwin Subject: RE: "cp: skipping file

Re: allow executing a path in backslash notation

2010-03-12 Thread Cyrille Lefevre
Eric Blake a écrit : That's bash's rules. According to POSIX, "\n" has undefined behavior. And in some other implementations, such as Solaris sh, "\n" is interpolated by the shell as a newline. Bash instead does the interpolation when you use $'\n'. isn't it the echo command which interpret

Re: incomplete/corrupted setup.exe

2010-03-12 Thread Charles Wilson
On 3/12/2010 10:04 AM, Christopher Faylor wrote: > On Fri, Mar 12, 2010 at 08:41:15AM -0500, George Barrick wrote: >> I've tried a couple of different browsers as well as 'wget' to pull the >> setup.exe file. I swear that I'm not being an idiot. I also went to a >> sub-network here at our organiz

Re: incomplete/corrupted setup.exe

2010-03-12 Thread Christopher Faylor
On Fri, Mar 12, 2010 at 08:41:15AM -0500, George Barrick wrote: >I've tried a couple of different browsers as well as 'wget' to pull the >setup.exe file. I swear that I'm not being an idiot. I also went to a >sub-network here at our organization that implements a different >router, and wound up w

RE: missing paths

2010-03-12 Thread Roe, Kevin L.
I did a "reinstall" of cygwin when I installed 1.7.1 over my 1.5.25 install. It is my impression that this is the way to guarantee the complete install of the OS. How did such a critical file get missed and how can I guarantee other files were not missed. -Kevin -Original Message- Fro

Re: the .exe extension

2010-03-12 Thread Spiro Trikaliotis
Hello Eric, * On Fri, Mar 12, 2010 at 08:16:42AM -0700 Eric Blake wrote: > In general, cygwin does not care if the .exe is missing, but other > programs (particularly cmd) do, so it is better if PE-COFF files are > given the .exe extension. Is it really better to add the .exe extension? May I a

Re: missing paths

2010-03-12 Thread Andy Koppe
Roe, Kevin L.: > My install is missing the /etc/profile file. > > I think this may be the reason for why I need the '-c "exec /bin/bash"' in my > shortcut. > > What do I need to have in my /etc/profile file besides what you mentioned. Lots. Probably best to reinstall the 'base-files' package at t

Re: incomplete/corrupted setup.exe

2010-03-12 Thread Dave Korn
On 12/03/2010 12:17, George Barrick wrote: > It looks like the newest version of > the setup.exe has been transmitted > incompletely to the server. Its size is > only 10.9 kBt, but the typical setup.exe is > 610 kBt. When I try to run the downloaded > program, it crashes immediately with:

Re: Cygwin 1.7: Concurrency Issue with Shared State Initialization

2010-03-12 Thread Dave Korn
On 12/03/2010 17:28, Corinna Vinschen wrote: > Hang on. This endless loop has nothing to do with Cygwin code. The > addresses show that we're outside of Cygwin, which is in the 0x61xx > address range. 0x7dxx is probably somewher in a Windows DLL. That'll be WFMO, I'd bet. So it's

RE: missing paths

2010-03-12 Thread Roe, Kevin L.
My install is missing the /etc/profile file. I think this may be the reason for why I need the '-c "exec /bin/bash"' in my shortcut. What do I need to have in my /etc/profile file besides what you mentioned. -Kevin -Original Message- From: cygwin-ow...@cygwin.com [mailto:cygwin-ow...@c

Intermittent perl errors with cygwin 1.7

2010-03-12 Thread Cygwin
About once a month I get something like this: 4 [main] perl 3156 D:\Local\Cygwin\bin\perl.exe: *** fatal error - cygheap base mismatch detected - 0x6120C6E0/0xD4C6E0. This problem is probably due to using incompatible versions of the cygwin DLL. Search for cygwin1.dll using the Windows Start->Fi

Re: missing paths

2010-03-12 Thread Andy Koppe
Roe, Kevin L.: > Ok, I can look at the other machine now (briefly), the sytax there already > has the --login > > So, that is not the problem... Check that /etc/profile actually exists and that it contains these lines near the start: PATH=/usr/local/bin:/usr/bin:/bin:$PATH export PATH (And lose

Re: bash exits when test or [ ] is used in Windows Server 2008

2010-03-12 Thread Dick
Corinna Nope, none of those applications are installed. I'm not sure whether it is a fork() issue, opening a sub shell for example doesn't give any errors. Please let me know if you have another suggestion. TIA, Dick -- Problem reports: http://cygwin.com/problems.html FAQ:

Re: Rsync randomly hanging until implementing socketpair solution

2010-03-12 Thread Corinna Vinschen
On Mar 12 13:10, li...@trcintl.com wrote: > I have been using rsync with cygwin for years to synchronize several > relatively large data sets at several different locations. When I > upgraded to the cygwin 1.7 version a while back, I began noticing a random > problem with rsync hanging. It wou

RE: missing paths

2010-03-12 Thread Roe, Kevin L.
Ok, I can look at the other machine now (briefly), the sytax there already has the --login So, that is not the problem... -Original Message- From: cygwin-ow...@cygwin.com [mailto:cygwin-ow...@cygwin.com] On Behalf Of Roe, Kevin L. Sent: Friday, March 12, 2010 11:34 AM To: cygwin@cygwin.

RE: missing paths

2010-03-12 Thread Roe, Kevin L.
Ok, so I am testing this on a machine that has 1.5.3 I changed the -login to --login It doesn't change anything. I know, I really need to test it on the other machine, but it isn't available right now. However, I also tried eliminating the "login" option entirely, and now this machine has the

Re: missing paths

2010-03-12 Thread René Berber
Roe, Kevin L. wrote: > Here is the exact syntax used in my Windows shortcut: > > C:\cygwin\bin\rxvt.exe -T "%COMPUTERNAME%.%USERDNSDOMAIN%" -e /bin/bash > -login -c "exec /bin/bash" And there is your problem, its --login (long parameters use double dash). -- René Berber -- Problem reports:

RE: missing paths

2010-03-12 Thread Roe, Kevin L.
Here is the exact syntax used in my Windows shortcut: C:\cygwin\bin\rxvt.exe -T "%COMPUTERNAME%.%USERDNSDOMAIN%" -e /bin/bash -login -c "exec /bin/bash" -Kevin -Original Message- From: cygwin-ow...@cygwin.com [mailto:cygwin-ow...@cygwin.com] On Behalf Of Andy Koppe Sent: Friday, March

Re: missing paths

2010-03-12 Thread Andy Koppe
On 12 March 2010 18:57, Roe, Kevin L.: > First off, I cannot run cygcheck and give you the results.  My machine is > completely disconnected from the internet and has no external write > capability. > > I installed 1.7.1 on a machine that already had 1.5.  The machine is a dual > quad core Intel

Rsync randomly hanging until implementing socketpair solution

2010-03-12 Thread lists
I have been using rsync with cygwin for years to synchronize several relatively large data sets at several different locations. When I upgraded to the cygwin 1.7 version a while back, I began noticing a random problem with rsync hanging. It would not do it in the same place, but it seemed to

RE: missing paths

2010-03-12 Thread Roe, Kevin L.
First off, I cannot run cygcheck and give you the results. My machine is completely disconnected from the internet and has no external write capability. I installed 1.7.1 on a machine that already had 1.5. The machine is a dual quad core Intel box running 64 bit XP. After installation, I laun

Re: incomplete/corrupted setup.exe

2010-03-12 Thread George Barrick
2010.03.12.18:53:51 UT Hi Larry, O.K. So that would be a 'backbone' server in my region that caches the file, but gets a corrupted version of it? In that circumstance, it is nothing "insidious". I just have to wait until the offending file gets flushed from the serve

Re: missing paths

2010-03-12 Thread Larry Hall (Cygwin)
On 3/12/2010 1:34 PM, Roe, Kevin L. wrote: My $PATH in my new install of 1.7.1 is missing the cygwin directories (/usr/local/bin, /usr/bin, /bin, /usr/X11R6/bin) Is this a result of the mount point issue called out on the cygwin home page? No. See the problem reporting guidelines to report a

Re: incomplete/corrupted setup.exe

2010-03-12 Thread Larry Hall (Cygwin)
On 3/12/2010 1:33 PM, George Barrick wrote: Can this be some kind of insidious site-blocking that is being implemented by the persons who manage network security for my institution? My only good test will be tonight when I arrive home to try the download from my DSL-network. Most likely

missing paths

2010-03-12 Thread Roe, Kevin L.
My $PATH in my new install of 1.7.1 is missing the cygwin directories (/usr/local/bin, /usr/bin, /bin, /usr/X11R6/bin) Is this a result of the mount point issue called out on the cygwin home page? -Kevin -- Problem reports: http://cygwin.com/problems.html FAQ: http://cy

Re: incomplete/corrupted setup.exe

2010-03-12 Thread George Barrick
2010.03.12.18:32:08 UT Hi Jason, I tried all three of the URL's that you provided. Both http://mirrors.pdinc.us/setup.exe.gz http://mirrors.pdinc.us/cygwin-htdocs/setup.exe gave me a 'wget' process that seemed to hang. I had to kill it after a few minutes. They both

Re: Re: "can't create master tty" errors

2010-03-12 Thread Cesar Crusius
On Tue, Mar 09, 2010 at 08:50:38PM +, Andy Koppe wrote: > Cesar Crusius: > > I am using Cygwin and SSH to do automated remote builds using Visual > > C++. It works for a few days, but invariably things start failing with > > messages like these (this one from a build log): > > > > Makefile:9: M

Re: Cygwin 1.7: Concurrency Issue with Shared State Initialization

2010-03-12 Thread Corinna Vinschen
On Mar 12 17:27, Corinna Vinschen wrote: > On Mar 12 16:48, Schmidt, Oliver wrote: > > Hi, > > > > > Does the patch help? > > > > As the issue is sporadic it's not that easy to come up with a conclusive > > answer... > > > > I downloaded http://cygwin.com/snapshots/cygwin1-20100309.dll.bz2, > >

Re: bash exits when test or [ ] is used in Windows Server 2008

2010-03-12 Thread Corinna Vinschen
On Mar 12 16:18, Dick wrote: > Hi Corinna, > > Yes, the 2k008 server is running TS. I've disabled DEP for all applications > and > removed cygwin and reran setup.exe. > > Sadly the probleem isn't solved, any other suggestions are welcome. http://cygwin.com/faq/faq.using.html#faq.using.bloda ?

Re: 1.7.1: connect though sshd - account missing group memberships

2010-03-12 Thread Corinna Vinschen
On Mar 12 08:28, Robert Jacobson wrote: > > Hi, > > I just updated from 1.5.x to 1.7.1. This nicely resolved a "slow > login" problem I was having with my domain account login. > > However, I'm still having one issue that I've been unable to resolve > (i.e. it occurrs with both 1.5.x and 1.7.1)

Re: Cygwin 1.7: Concurrency Issue with Shared State Initialization

2010-03-12 Thread Corinna Vinschen
On Mar 12 16:48, Schmidt, Oliver wrote: > Hi, > > > Does the patch help? > > As the issue is sporadic it's not that easy to come up with a conclusive > answer... > > I downloaded http://cygwin.com/snapshots/cygwin1-20100309.dll.bz2, > unpacked and renamed the DLL and used it as drop-in replacem

Re: 1.7.1-1: In cmd.exe shell, how to pass multi-byte characters to bash?

2010-03-12 Thread Corinna Vinschen
On Mar 13 00:07, bootleq wrote: > When typing command in Windows XP cmd.exe shell, with multi-byte > characters, for example: > bash -c 'echo ???' > result in: > bash: $'echo \357\274\241': command not found > expected result: > ??? > > This would be problematic when writing Windows scripts to inv

Re: the .exe extension

2010-03-12 Thread Corinna Vinschen
On Mar 12 16:49, Thomas Wolff wrote: > On 12.03.2010 16:16, Eric Blake wrote: > >>... > >This is an area of active conversation; if you would like, you can test > >the latest snapshot and the experimental coreutils 8.4-1 to see if the > >behavior is more intuitive (that is, there are more situation

Re: bash exits when test or [ ] is used in Windows Server 2008

2010-03-12 Thread Dick
Hi Corinna, Yes, the 2k008 server is running TS. I've disabled DEP for all applications and removed cygwin and reran setup.exe. Sadly the probleem isn't solved, any other suggestions are welcome. Thanks, Dick -- Problem reports: http://cygwin.com/problems.html FAQ: http

Re: the .exe extension

2010-03-12 Thread Thomas Wolff
On 12.03.2010 16:16, Eric Blake wrote: ... This is an area of active conversation; if you would like, you can test the latest snapshot and the experimental coreutils 8.4-1 to see if the behavior is more intuitive (that is, there are more situations where .exe is preserved across file moves

Re: Cygwin 1.7: Concurrency Issue with Shared State Initialization

2010-03-12 Thread Schmidt, Oliver
Hi, > Does the patch help? As the issue is sporadic it's not that easy to come up with a conclusive answer... I downloaded http://cygwin.com/snapshots/cygwin1-20100309.dll.bz2, unpacked and renamed the DLL and used it as drop-in replacement to the 1.7.1 DLL. I experienced three times by now th

RE: incomplete/corrupted setup.exe

2010-03-12 Thread Jason Pyeron
> -Original Message- > From: George Barrick > Sent: Friday, March 12, 2010 9:57 > Subject: Re: incomplete/corrupted setup.exe > > 2010.03.12.14:58:07 UT > > Hi Jason, > > My md5sum for the bad version of > the file is: > > ab9fd4fa13f38ed6e9086cfe4d6c7064 *set

Re: fork problems on x64

2010-03-12 Thread jurriaan
From: Ross Hemingway Date: Fri, Mar 12, 2010 at 09:27:29AM -0500 > > I tried that just now. No changes. The other utilities I run or test > seem to work OK. It would appear its just when a fork is called for, that > the resource fault occurs. > > It might be a file / location permissions faul

Re: the .exe extension

2010-03-12 Thread Eric Blake
On 03/12/2010 08:03 AM, Nellis, Kenneth wrote: > I wonder if there is more explanation available about how Cygwin > handles the .exe extension than I found in the User's Guide. > > http://cygwin.com/cygwin-ug-net/ > > I'm running 1.7.1. > In particular, I find it odd that moving a binary executab

the .exe extension

2010-03-12 Thread Nellis, Kenneth
I wonder if there is more explanation available about how Cygwin handles the .exe extension than I found in the User's Guide. http://cygwin.com/cygwin-ug-net/ I'm running 1.7.1. In particular, I find it odd that moving a binary executable toggles whether or not it has the .exe extension. Consider

RE: incomplete/corrupted setup.exe

2010-03-12 Thread Buchbinder, Barry (NIH/NIAID) [E]
George Barrick sent the following at Friday, March 12, 2010 8:41 AM > I've tried a couple of different >browsers as well as 'wget' to pull the setup.exe file. I swear that >I'm not being an idiot. I also went to a sub-network here at our >organization that implements a different router, and wou

Re: incomplete/corrupted setup.exe

2010-03-12 Thread George Barrick
2010.03.12.14:58:07 UT Hi Jason, My md5sum for the bad version of the file is: ab9fd4fa13f38ed6e9086cfe4d6c7064 *setup.exe The url was http://cygwin.com/setup.exe. George gbarr...@walsh.exe -- Problem reports: http://cygwin.com/problems.html FAQ:

Re: fork problems on x64

2010-03-12 Thread Ross Hemingway
On 3/12/2010 12:36 AM, Ross Hemingway wrote: I have the same problems with multiple apps - Exim and UW-ipop. They both fail with the same faults: fork: Resource temporarily unavailable The Exim will send a few mails, but will fail after a few minutes use. UW-ipop fails the first time its called

RE: incomplete/corrupted setup.exe

2010-03-12 Thread Jason Pyeron
> -Original Message- > From: Behalf Of George Barrick > Sent: Friday, March 12, 2010 8:41 > Subject: Re: incomplete/corrupted setup.exe > >2010.03.12.13:43:11 UT > > Hi Corinna, > > I've tried a couple of different > browsers as well as 'wget' to pull the > setu

Re: incomplete/corrupted setup.exe

2010-03-12 Thread George Barrick
2010.03.12.13:43:11 UT Hi Corinna, I've tried a couple of different browsers as well as 'wget' to pull the setup.exe file. I swear that I'm not being an idiot. I also went to a sub-network here at our organization that implements a different router, and wound up with the

Re: redirect-append (>>) creates garbage-y file

2010-03-12 Thread Corinna Vinschen
On Mar 12 14:26, Csaba Raduly wrote: > On Fri, Mar 12, 2010 at 2:19 PM, Corinna Vinschen wrote: > > Sure, but in that case, no, there's nothing we can do about it, except > > to revert major functionality in Cygwin to the old implementation. > > However, since we're using an officially documented

Re: redirect-append (>>) creates garbage-y file

2010-03-12 Thread Csaba Raduly
On Fri, Mar 12, 2010 at 2:19 PM, Corinna Vinschen wrote: > Sure, but in that case, no, there's nothing we can do about it, except > to revert major functionality in Cygwin to the old implementation. > However, since we're using an officially documented API, I don't see a > reason to do that. Just

Re: fork problems on x64

2010-03-12 Thread Larry Hall (Cygwin)
On 3/12/2010 12:36 AM, Ross Hemingway wrote: I have the same problems with multiple apps - Exim and UW-ipop. They both fail with the same faults: fork: Resource temporarily unavailable The Exim will send a few mails, but will fail after a few minutes use. UW-ipop fails the first time its called

Re: redirect-append (>>) creates garbage-y file

2010-03-12 Thread Corinna Vinschen
On Mar 12 08:05, Bill Lebow wrote: > Corinna Vinschen wrote: > > > On Mar 11 13:12, William Lebow wrote: > > > echo foo | tee -a test3.txt : terminal output is okay but test3.text > > > starts with 3 characters of garbage before the string foo > > > > > > echo foo | tee test4.txt : terminal output

Re: redirect-append (>>) creates garbage-y file

2010-03-12 Thread Bill Lebow
Corinna Vinschen wrote: > On Mar 11 13:12, William Lebow wrote: > > echo foo | tee -a test3.txt : terminal output is okay but test3.text > > starts with 3 characters of garbage before the string foo > > > > echo foo | tee test4.txt : terminal output is okay and test4.txt is okay too > > > > So

Re: incomplete/corrupted setup.exe

2010-03-12 Thread Corinna Vinschen
On Mar 12 07:17, George Barrick wrote: > 2010.03.12.12:18:07 UT > > Hey Cygwin folks, > > It looks like the newest version of > the setup.exe has been transmitted > incompletely to the server. Its size is > only 10.9 kBt, but the typical setup.exe is > 610 kBt. Thi

Re: bash exits when test or [ ] is used in Windows Server 2008

2010-03-12 Thread Corinna Vinschen
On Mar 12 13:00, Dick wrote: > Hello all, > > I've just installed cygwin in Windows Server 2008, I've only selected > rpm-build and libintl-2 as additional packages. During install there are > no error messages. > > Then when I start cygwin my home directory isn't made and no profiles > are creat

Re: 1.7.1-1: ImageMagick seems to lack jpeg support

2010-03-12 Thread Nick White
> I wonder if this may be a problem with my install of cygwin, then > (I did have a problem where the computer died mid-cygwin upgrade > [thanks Windows!], and I'm not positive everything recovered). > I'm pleased to hear it's working for others, I'll persevere. Sure enough, after reinstalling

incomplete/corrupted setup.exe

2010-03-12 Thread George Barrick
2010.03.12.12:18:07 UT Hey Cygwin folks, It looks like the newest version of the setup.exe has been transmitted incompletely to the server. Its size is only 10.9 kBt, but the typical setup.exe is 610 kBt. When I try to run the downloaded program, it crashes immedia

bash exits when test or [ ] is used in Windows Server 2008

2010-03-12 Thread Dick
Hello all, I've just installed cygwin in Windows Server 2008, I've only selected rpm-build and libintl-2 as additional packages. During install there are no error messages. Then when I start cygwin my home directory isn't made and no profiles are created. And worse, when I try to start: bash-3.2

Re: allow executing a path in backslash notation

2010-03-12 Thread Corinna Vinschen
On Mar 11 20:42, Ilguiz Latypov wrote: > > > On Mar 10 10:25, Corinna Vinschen wrote: > > execv (argv[1], args); > > > bash$ gcc -o exec exec.c > > bash$ ./exec /bin/echo > > abc > > bash$ ./exec C:\\cygwin\\bin\\echo > > abc > Thanks for trying a test case. I am attaching a new test case