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

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 2>out.txt Either works fine, and the contents of out.txt are as expected. Barry Kelly wrote: > This C# app: > > class err > { &g

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: 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

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' wil

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 mo

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

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 Win

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 fr

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 > >

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 th

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' im

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 th

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 C

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-

"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 ev

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 nee

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: /cygdri

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 tha

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 runn

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 sourc

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

2008-09-08 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: 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 c

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: 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 ver

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 subm

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

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: > >

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

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 >

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 $ mkpa