stderr output from .NET apps causes shell hangs when cygwin is not running in Windows console

2012-06-07 Thread Barry Kelly
This C# app: class err { static void Main() { System.Console.Error.WriteLine(err); } } compiled with any csc.exe: $(cygpath -u $WINDIR)/Microsoft.net/framework/*/csc.exe This app (call it err.exe) when run, hangs for me when Cygwin is running in anything other than a Windows console.

Re: stderr output from .NET apps causes shell hangs when cygwin is not running in Windows console

2012-06-07 Thread Barry Kelly
Further to my previous email: I should add that redirected output works fine. $ ./err.exe 2/dev/null $ ./err.exe 2out.txt Either works fine, and the contents of out.txt are as expected. Barry Kelly wrote: This C# app: class err { static void Main

Re: stderr output from .NET apps causes shell hangs when cygwin is not running in Windows console

2012-06-07 Thread Barry Kelly
And only now I've found the messages talking about similar issues after fruitless Google searches. Same thing happens to me after I buy hardware. The problem appears fixed in the latest snapshot of cygwin1.dll. Sigh. Barry Kelly wrote: Further to my previous email: I should add

Re: cygpath unable to translate the *nix path to an NTFS junction point

2011-01-17 Thread Barry Kelly
Corinna Vinschen wrote: On Jan 17 02:48, Barry Kelly wrote: Also, if you don't treat juntions to the same drive as symlinks you have the problem that you can easily create loops when you run a recursive file search. This is true; though 'find' will detect such loops, and e.g. cmd /c dir

Re: cygpath unable to translate the *nix path to an NTFS junction point

2011-01-17 Thread Barry Kelly
Corinna Vinschen wrote: On Jan 17 14:56, Corinna Vinschen wrote: ...we won't take patches which add arbitrary options to the CYGWIN variable which could also be solved in other ways. In this special case, only the conversion from POSIX to Win32 paths is affected. This conversion is only

Re: cygpath unable to translate the *nix path to an NTFS junction point

2011-01-16 Thread Barry Kelly
Corinna Vinschen wrote: This leaves cygpath completely unable to translate the original path of an NTFS junction. This is proving to be a problem for me (I'm trying to use the output of cygpath for the equivalent of a backtick operation in another script...) Sorry if I don't get your

Re: cygpath unable to translate the *nix path to an NTFS junction point

2011-01-16 Thread Barry Kelly
Pierce Morton wrote: I've recently installed cygwin using the web installer, and have found an error in the way that cygpath translates junction point paths from *nix to Windows paths when dealing with a junction point. The issue is that Cygwin treats reparse points as symlinks. IMO, the more

cygstart Cygwin -- UNC path in 1.7 vs 1.5

2010-05-23 Thread Barry Kelly
UNC paths are not working with cygstart in my Cygwin 1.7 installation. They haven't ever worked in 1.7 for me, but I just updated today, and I noticed they still aren't working. The symptoms: $ cygstart //rupert/share/public This is supposed to invoke the shell association for folders, which is

ImageMagick not working on Vista/Server 2008 64-bit

2009-06-19 Thread Barry Kelly
I have a Windows Server 2008 64-bit install, and I've found that ImageMagick cannot convert a simple JPG into a BMP, or resize a JPG. Steps to reproduce: * Start mspaint * Create 200x200px white image * Save as test.jpg * Try this command: 'convert test.jpg test.bmp' This fails for me, with a

Re: File by file encryption instead of filesystem encryption

2009-05-23 Thread Barry Kelly
Kelly Jones wrote: Are there any cygwin/Windows programs that will encrypt a file, but leave it usable, similar to what TrueCrypt does for filesystems? What's wrong with Windows EFS (encrypting file system)? http://en.wikipedia.org/wiki/Encrypting_File_System Command-line, cipher /e on a

Re: DOS programs under screen

2009-05-01 Thread Barry Kelly
Andy Koppe wrote: 2009/4/21 Barry Kelly: Windows implements console mode as a client-server protocol between the executable (ntvdm.exe for DOS apps) and winsrv.dll (hosted in csrss.exe), but the protocol isn't easily hookable. I guess one would have to hijack the console APIs, perhaps

Re: Can cygwin boot faster?

2009-04-30 Thread Barry Kelly
Lenik wrote: Because of the slow speed, when I'm programming with cygwin, I will carefully to invoke command calls to the cygwin executables, to reduce the start up cost. I've sometimes wondered if it would be worth it to have busybox ported to Cygwin, just to cut out the forking cost for

Re: DOS programs under screen

2009-04-21 Thread Barry Kelly
Andrew Schulman wrote: In general, non-cygwin programs can't be run reliably inside of an application that uses cygwin PTYs, including xterm, rxvt, and screen. Maybe someone knows a solution to this, but I don't. Although I maintain screen for Cygwin, I know almost nothing of the

Re: wget -k downloading to shares fails with seemingly spurious permission denied error

2009-03-25 Thread Barry Kelly
Can anyone else at all confirm the behaviour I am seeing, or is it just me? (Or is Larry just blessed? :) Thanks, -- Barry Barry Kelly wrote: I'm having a problem that doesn't seem to admit logical explanation, apart from a bug in either wget, Cygwin or Windows' implementation of SMB shares

wget -k downloading to shares fails with seemingly spurious permission denied error

2009-03-23 Thread Barry Kelly
I'm having a problem that doesn't seem to admit logical explanation, apart from a bug in either wget, Cygwin or Windows' implementation of SMB shares. Assume the current directory is a UNC path to a share on another machine (say, //foo/blah), with full permissions. Run the following command from

Re: wget -k downloading to shares fails with seemingly spurious permission denied error

2009-03-23 Thread Barry Kelly
Larry Hall (Cygwin) wrote: On 03/23/2009, Barry Kelly wrote: $ wget -k google.com This should download an index.html, then convert any relative links in the html to absolute links. However, when I run it, I get output that looks more like this: $ wget -k google.com

du -b --files0-from=- running out of memory

2008-11-23 Thread Barry Kelly
I have a problem with du running out of memory. I'm feeding it a list of null-separated file names via standard input, to a command-line that looks like: du -b --files0-from=- The problem is that when du is run in this way, it leaks memory like a sieve. I feed it about 4.7 million paths but

Re: du -b --files0-from=- running out of memory

2008-11-23 Thread Barry Kelly
Eric Blake wrote: [adding the upstream coreutils list] According to Barry Kelly on 11/23/2008 6:24 AM: I have a problem with du running out of memory. I'm feeding it a list of null-separated file names via standard input, to a command-line that looks like: du -b --files0-from

Re: Is it possible to convert from dos to unix path and back?

2008-11-14 Thread Barry Kelly
R. Lewis wrote: Some of the commands we launch from a cygwin bash shell only understand the Dos path convention since they are native window's executables. Is there a conversion command I can call to go from a Unix path to a Dos path and back? Example: Cygwin path:

Re: Cygwin Everyone group permissions and Vista shared files (*not* shared folders)

2008-11-14 Thread Barry Kelly
Corinna Vinschen wrote: If that's not feasible, switch off ntsec and you get standard Windows permissions. If the standard Windows permissions are not as you need them, don't rely on Cygwin's chown/chmod. rather change the inheritence settings of the parent directory according to your needs.

Re: Cygwin Everyone group permissions and Vista shared files (*not* shared folders)

2008-11-13 Thread Barry Kelly
Larry Hall (Cygwin) wrote: Barry Kelly wrote: Corinna Vinschen wrote: I, for one, use Cygwin not primarily as a POSIX emulation layer, but as my main Windows user interface. IMHO in this situation, being posixly correct is a handicap that Cygwin could do without, at the user's

Re: Cygwin Everyone group permissions and Vista shared files (*not* shared folders)

2008-11-10 Thread Barry Kelly
Corinna Vinschen wrote: No, it's not feasible. If you leave out the Everyone ACE, the permissions are not POSIX-like anymore. Leaving out means that others have no permissions at all. Not even to see the permissions. That's not correct from a POSIX POV. Even if others don't have rwx

Re: java vs c, escape sequences

2008-09-13 Thread Barry Kelly
rick271828 wrote: Can anybody please explain why the c code: printf(%c[H%c[J,27,27); clears my cygwin console as expected, but the Java code: System.out.print(\033[2J\033[H); displays a back arrow instead on interpreting the escape character? It's because you are not running the

Cygwin Everyone group permissions and Vista shared files (*not* shared folders)

2008-09-09 Thread Barry Kelly
Cygwin by default, tries to implement POSIX permissions using the NT ACL system - fairly well described here: http://cygwin.com/cygwin-ug-net/ntsec.html The way this feature is implemented interacts poorly with Vista, however. A previous mailing (with reply) on this list that tried to describe

Re: option of g++

2008-09-09 Thread Barry Kelly
Rodrigo Medina wrote: Hi, Can anybody tell me what the g++ option -DU_STATIC_IMPLEMENTATION DOES? -D instructs the preprocessor (cpp, which is automatically invoked by g++) to define a symbol; the appended text is the symbol that gets defined. The meaning of the symbol depends on the source

Re: Why is regedit referenced?

2008-09-08 Thread Barry Kelly
John Sellers wrote: When I run Cygwin on my WindowsXP machine, What do you mean by Cygwin? A bash prompt? my firewall informs me of regedit activity, searching, and text manipulation. I have not located the source of this activity. Firewalls generally protect against network activity

Re: Why is regedit referenced?

2008-09-08 Thread Barry Kelly
Barry Kelly wrote: my firewall informs me of regedit activity, searching, and text manipulation. I have not located the source of this activity. Process explorer[1] can tell you what application accessed the registry, what keys it modified, and the call stack at the time

Re: rsync in cygwin

2008-08-30 Thread Barry Kelly
Edward Blum wrote: cannot send long-named file /cygdrive/d/Shares/Public/Software/Navision Backup/GB Nav 4.0.SP3/Disk1/Additional Interfaces/BusinessNotificationServer/program files/Microsoft Business Solutions-Navision/Business Notification/Templates/en-GB/Template - Production BOM version

Re: PATCH: cygutils/cygstart - wait till task terminates (i.e. run in foreground)

2008-08-28 Thread Barry Kelly
Michael Schaap wrote: On 11-Aug-2008 18:26, Barry Kelly wrote: I find cygstart useful generally, but ShellExecute/Ex has more options than cygstart exposes. I've attached the patch for review. Is there any other place I should be posting to submit this patch? This is the right

Re: End of support for 9x

2008-08-25 Thread Barry Kelly
Trans-Mit Support wrote: Re:- Note that the official support for Windows 95, Windows 98, and Windows Me will be discontinued with the next major version (1.7.0) of Cygwin. Its bad enough having to use windows, but having to upgrade to XP or VISTA is just out of the question. Looks

PATCH: cygutils/cygstart - wait till task terminates (i.e. run in foreground)

2008-08-11 Thread Barry Kelly
I find cygstart useful generally, but ShellExecute/Ex has more options than cygstart exposes. In particular, I'd like to be able to write a script that starts an action and waits for it to complete, and then perform another action. This means that I don't want cygstart to return until the process

Re: Cygwin1.dll 1.5.19: race condition deadlock with fifos

2006-06-11 Thread Barry Kelly
On Sun, 11 Jun 2006 18:23:22 -0700, you wrote: Barry Kelly wrote: This code, without a delay, causes a deadlock and both active spawned bash processes (the forked one reading from the fifo and the backgrounded one) need to be killed explicitly: ---8--- ~/test-fifo$ rm fifo

Re: maybe-ITP: bsdiff

2005-05-16 Thread Barry Kelly
On 5/16/05, Corinna Vinschen wrote: Also, AFAICS, that's not about distribution, but it's about linking against the Cygwin DLL. If you do that with an application which has a non-approved OSS license, you're infringing the Cygwin license if you don't GPL the code. But if you GPL the code,

Re: [patch] setup dependency fix, was Re: setup.exe problem with selecting curr radio button

2005-04-08 Thread Barry Kelly
On Apr 8, 2005 1:15 PM, Dave Korn [EMAIL PROTECTED] wrote: Original Message From: Brian Dessent Sent: 08 April 2005 12:12 On a side note, I found this problem very quickly by instrumenting key functions with calls to msg() (which just does a printf-like output with

Re: Setup.exe: Keyboard accessibility

2005-02-22 Thread Barry Kelly
On Tue, 22 Feb 2005 08:07:23 -0700, Steve Holmes [EMAIL PROTECTED] wrote: What kind of control is the package selection list? It's a vanilla Windows window, done with old-fashioned explicit windows message handling: WM_PAINT, WM_LBUTTONDOWN, etc. Part of the problem is that it uses a bunch of

Re: Problem with installing crontab on Cygwin(1.5.11/1005.11.0.0)/WinXP SP2

2004-11-03 Thread Barry Kelly
On Tue, 2 Nov 2004 18:33:57 -0500, Harig, Mark wrote: I (Barry Kelly) wrote: I'm getting the following error when trying to install a crontab on my account: $ crontab -e # editing my crontab here... chown: Invalid argument Please run this diagnostic script. It will attempt

Re: Problem with installing crontab on Cygwin(1.5.11/1005.11.0.0)/WinXP SP2

2004-11-03 Thread Barry Kelly
On Wed, 3 Nov 2004 09:24:37 -0500, Pierre A. Humblet [EMAIL PROTECTED] wrote: crontab chowns the crontab file group to 18. Make sure that gid 18 is in /etc/group. Also I find it hard to believe that the strace you got gives no useful information. This did it. Group 18 (SYSTEM) was not in

Problem with installing crontab on Cygwin(1.5.11/1005.11.0.0)/WinXP SP2

2004-11-02 Thread Barry Kelly
I'm getting the following error when trying to install a crontab on my account: $ crontab -e # editing my crontab here... chown: Invalid argument I've tried updating my passwd (I live on a Win2K server domain) file in case it was out of date or missing local users (vs domain users), using $