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:date:from:to:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; q=dns; s= default; b=ANJ/ARwPCLl+VFMvGrKJP9VEmy/QHzzp8KKSPxVquxep0puN5Gmi7 ijYAIPky5Zl6XVdjNVpEzpj71RruXAEclUvEI0TeJsb3hDyUyh/6gNFub8BIYz9t BjLnJSkhn6CrMx7uYOldf4aCeV2lUlHZUe0jMVZjAYqi9g3KvJ6SMQ= 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:date:from:to:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; s=default; bh=N3ZQ5Y8LTacZe5hmpNWpUEtwy1A=; b=MZYb89FK8gWvMnVDfZol5Kp2YeeX /BALhM9Hd9TEzfsXvWNOWRb4S2tFceGUy6YHFd6Gdxa9fC8QZ2Kh9eMixIySqh66 3yZtuXj/CJ8JixrHFgC4Zv9wjXoi1mLs2e44FhCGJ0fYEsFuE6sziQ6bvthdeF/Y ca6tDYvp1qVNRUg= 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 X-Spam-SWARE-Status: No, score=0.1 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_YE autolearn=ham version=3.3.1 X-Mail-Handler: Dyn Standard SMTP by Dyn X-Report-Abuse-To: abuse AT dyndns DOT com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX1/yGLEzp8unt1EtR/6m789M Date: Sun, 7 Apr 2013 14:50:32 -0400 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: starting cygwin shell Message-ID: <20130407185032.GA3273@ednor.casa.cgf.cx> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <5161421A DOT 6080208 AT towo DOT net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) On Sun, Apr 07, 2013 at 06:16:17PM +0000, Gene wrote: >Thomas Wolff towo.net> writes: >> Am 07.04.2013 09:42, schrieb Gene: >>>I am new to cygwin. I am trying to create a .bat file so I can start >>>cygwin from w7 windows menu. >>Cygwin install creates a "Cygwin Terminal" icon on your desktop in in >>your Programs menu. You can drag or (with Control-) copy it anywhere >>in menus where you want it. Is that what you need? >> >>>Second question: >>> >>>I am running below code and shell dissapear. I could catch the message >>>before it happens. Do you know what seems to be a problem? >>> >>>for k in `ls` do print "here is $k" done >>$ type print print ist /cygdrive/c/WINDOWS/system32/print So you >>effectively tried to print files called "here is ..." with a Windows >>tool. You probably meant this instead: echo "here is $k" > >Yes, script should be as below. However, the question is: if it's w7 >compatible, why it's going down. I was able to catch the message: > >save: fork_level=1 SetHandleInformation() failed: fd 0 handle 0x3 type >2: Th e parameter is incorrect. That error message doesn't seem to be coming from Cygwin. I have grepped the Cygwin DLL and *sh* and don't see it anywhere. Are you possibly using other binaries besides Cygwin ones? See also: http://cygwin.com/problems.html . cgf -- 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