This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: starting cygwin shell

Thomas Wolff <towo <at>> writes:

> Am 07.04.2013 09:42, schrieb Gene:
> > Hello Forum,
> > I am new to cygwin.
> > I am trying to create a .bat file so I can start cygwin from w7 windows
> 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?
> > ...
> (unclear)
> > 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.

for k in `ls`
print "here is $k"

Problem reports:
Unsubscribe info:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]