Re: FW: wildcard in Makefile giving wrong output
WFM (XP, 20040322 snapshot, make 3.80-1) . However, this has been reported before: http://www.cygwin.com/ml/cygwin/2003-09/msg01172.html > > -Original Message- > > From: Dave Korn [mailto:[EMAIL PROTECTED] > > > > > -Original Message- > > > From: cygwin-owner On Behalf Of Nitin Gupta > > > Sent: 12 May 2004 18:58 > > > > > cat Makefile > > > > > > > > > WORKSPACE=$(shell pwd) > > > test: > > > @echo $(wildcard $(WORKSPACE)/ph*/*.cx) > > > = > > > > > > Directory structure > > > Makefile > > > phase1/ > > > phase3/ > > > > > > phase1/main.cx > > > phase1/phase1.hx > > > > > > phase3/p123.cx > > > phase3/p123.hx > > > phase3/phase3.cx > > > phase3/phase3.hx > > > > > > == > > > output of make (WRONG, please note main.cx is missing and > > p123.cx is > > > mentioned twice) > > > /cygdrive/m/users/qasoft/tmp/bug/phase1/p123.cx > > > /cygdrive/m/users/qasoft/tmp/bug/phase1/phase3.cx > > > /cygdrive/m/users/qasoft/tmp/bug/phase3/p123.cx > > > /cygdrive/m/users/qasoft/tmp/bug/phase3/phase3.cx > > > > > > > Bizarre. WFM: > > > > --- > > [EMAIL PROTECTED] /tmp> cat Makefile > > > > WORKSPACE=$(shell pwd) > > > > test: > > @echo $(wildcard $(WORKSPACE)/ph*/*.cx) > > > > [EMAIL PROTECTED] /tmp> ls -lartR > > .: > > total 1 > > drwxrwx---+ 16 artimius Users 0 Apr 28 16:15 .. > > drwxr-xr-x+ 2 dk Domain U0 May 13 10:12 phase3 > > drwxrwxrwx+ 4 artimius Users 0 May 13 10:17 . > > drwxr-xr-x+ 2 dk Domain U0 May 13 10:18 phase1 > > -rw-r--r--1 dk Domain U 83 May 13 10:19 Makefile > > > > ./phase3: > > total 0 > > -rw-r--r--1 dk Domain U0 May 13 10:11 p123.cx > > -rw-r--r--1 dk Domain U0 May 13 10:11 p123.hx > > -rw-r--r--1 dk Domain U0 May 13 10:12 phase3.cx > > -rw-r--r--1 dk Domain U0 May 13 10:12 phase3.hx > > drwxr-xr-x+ 2 dk Domain U0 May 13 10:12 . > > drwxrwxrwx+ 4 artimius Users 0 May 13 10:17 .. > > > > ./phase1: > > total 0 > > -rw-r--r--1 dk Domain U0 May 13 10:11 main.cx > > -rw-r--r--1 dk Domain U0 May 13 10:11 phase1.hx > > drwxrwxrwx+ 4 artimius Users 0 May 13 10:17 .. > > drwxr-xr-x+ 2 dk Domain U0 May 13 10:18 . > > [EMAIL PROTECTED] /tmp> make > > /tmp/phase1/main.cx /tmp/phase3/p123.cx /tmp/phase3/phase3.cx > > [EMAIL PROTECTED] /tmp> > > --- > > > > So, can't reproduce it here. Please do verify that your directory > > contents actually are what you think they are, and that they > > haven't somehow > > become inadvertently crosslinked or duplicated or something. > > __ Do you Yahoo!? Yahoo! Movies - Buy advance tickets for 'Shrek 2' http://movies.yahoo.com/showtimes/movie?mid=1808405861 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Resolver issues?
I have been noticing that since I installed cygwin on my WindowsXP machine that the resolver functions don't appear to work. When I attempt to use nslookup, it checks based off of the box I am using and IP 0.0.0.0 rather than what I have stored in /etc/resolv.conf and my XP configuration. However, using nslookup that comes with XP works like a charm. Is there a reason that this appears to be non-functional on WinXP? -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
proftpd and fetchmail on cygwin?
Hello, Has anyone tried the above two apps on the latest cygwin? If so, how did you get them to work? Thanks. Dave. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
can not start cygwin.
Hello, I'm not sure how this happened but somehow the extension .bat got removed from my 2k file associations table. I've remade the .bat file extension and told it to open with c:\winnt\system32\cmd.exe however cygwin is still not starting. Does anyone have an idea as to what i missed? Thanks. Dave. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
new cygwin setup, great!
Hello, I just installed the latest cygwin using the new setup program and from an accessability standpoint it's great, all the graphics and icons have a textual description or the plus signs are signs not bmp files. My problem is i still can't run it, if anyone is using it on win2k what program do you have opening the cygwin batch file? Thanks. Dave. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: new cygwin setup, great!
Hi, Yes i do have bash installed. Dave. - Original Message - From: "Pavel Tsekov" <[EMAIL PROTECTED]> To: "dave" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, March 20, 2002 3:53 AM Subject: Re: new cygwin setup, great! > Hello dave, > > Wednesday, March 20, 2002, 4:13:20 AM, you wrote: > > d> Hello, > d> I just installed the latest cygwin using the new setup program and from > d> an accessability standpoint it's great, all the graphics and icons have a > d> textual description or the plus signs are signs not bmp files. > d> My problem is i still can't run it, if anyone is using it on win2k what > d> program do you have opening the cygwin batch file? > > Do you have the bash package installed ? all cygwin.bat does is start > a bash shell (bash.exe). > > -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
script and/or proftpd for cygwin?
Hello, Has anyone ported the unix script utility to cygwin? Or, is anyone using proftpd on cygwin? Thanks. Dave. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
corrupted cygwin startup.
Hello, I've got a win2k box with cygwin on it. Apparently something got corrupted somewhere, i can no longer run cygwin, the shortcut does nothing. I'm thinking it's an association issue, can someone tell me what file association to use? Thanks. Dave. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: corrupted cygwin startup.
Hi, Thanks, it logged in. It's the .bat association. Here's cygwin.bat. Thanks. Dave. - Original Message - From: "Pavel Tsekov" <[EMAIL PROTECTED]> To: "dave" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, March 29, 2002 4:31 AM Subject: Re: corrupted cygwin startup. > Hello dave, > > Friday, March 29, 2002, 3:48:25 AM, you wrote: > > d> Hello, > d> I've got a win2k box with cygwin on it. Apparently something got > d> corrupted somewhere, i can no longer run cygwin, the shortcut does nothing. > d> I'm thinking it's an association issue, can someone tell me what file > d> association to use? > > > 1. Run a command protmp window > 2. Go to the bin subdir of the cygwin install dir i.e. c:\cygwin\bin > 3. type this 'bash --login -i' > 4. Report back to the list what happens (also attach your copy of > cygwin.bat) > > <> -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
cygwin installation.
Hi, I've been trying to install cygwin for the past two days and i'm not getting very far. I'm selecting admin, archive, base, database, doc, devel, interpreters, libs, math, net, shells, text, utils, and web, however it only appears to download minimal components. On the menu of packages i ensure that the above mentioned packages have the word install selected. Any suggestions? Thanks. Dave. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: RES: cygwin installation.
Hi, Any ideas as to what's wrong? I've installed cygwin this way before and this is the first time i've had this problem. Some unrelated information, it might help, sometimes when i go to download packages the setup immediately says download complete and it has done nothing. Dave. - Original Message - From: "Christopher Faylor" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, April 30, 2002 5:26 PM Subject: Re: RES: cygwin installation. > On Tue, Apr 30, 2002 at 06:23:26PM -0300, Eduardo Rocha Costa wrote: > >Click on the plus sign on each of this components then select > >individual packages... then you will be able to download all the > >softwares that you want.. > > This shouldn't be necessary if you're selecting things as the message > below describes. If selecting the category isn't working then something > is wrong. > > cgf > > >I've been trying to install cygwin for the past two days and i'm not > >getting very far. I'm selecting admin, archive, base, database, doc, > >devel, interpreters, libs, math, net, shells, text, utils, and web, > >however it only appears to download minimal components. On the menu of > >packages i ensure that the above mentioned packages have the word > >install selected. Any suggestions? > > -- > Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple > Bug reporting: http://cygwin.com/bugs.html > Documentation: http://cygwin.com/docs.html > FAQ: http://cygwin.com/faq/ > > -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
proftpd/fetchmail?was trouble downloading.
Hello, For some reason this time i had to select all the individual packages and it started working, go figure. I was very pleased to see apache 1.3.24 in cygwin now, great job! Does anyone know what's happening if anything with fetchmail or proftpd getting them to work? Thanks. Dave. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
trouble again downloading.
Hi, Ok i spoke to soon. I've got the base, i've got shells, but i'm unable to get net, admin, archive, devel, doc, and database. Here are my logs if that helps anyone. Thanks. Dave. setup.log.full Description: Binary data setup.log Description: Binary data -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
new setup snapshot?
Hi, Can someone repost the url of the latest setup snapshot? I'd like to try that. I think it's trying to redownload packages and quitting because they're already on my system. I'm hoping this new setup version helps. Thanks. Dave. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Re[2]: trouble again downloading.
Hello all, First of all my apologies, i did not not mean to offend some of you by direct replies, i just have a bad habit of hitting the reply button. When i selected the categories i wanted packages for then went to view and partial i did see packages in the viewer window, however when i then went to next setup said download complete again. As a side note the only file it appears to get is setup.ini Thanks, and please keep the suggestions coming. Dave. - Original Message - From: "Pavel Tsekov" <[EMAIL PROTECTED]> To: "dave" <[EMAIL PROTECTED]> Cc: "cygwin" <[EMAIL PROTECTED]> Sent: Wednesday, May 01, 2002 3:43 PM Subject: Re[2]: trouble again downloading. > Hello Dave, > > Wednesday, May 01, 2002, 9:10:28 PM, you wrote: > > >> Hi, > >> Ok, let's see i start setup via run: > >> c:\temp\cyg-src\setup > >> I select next. Then i select download from internet. Setup then wants to > >> know where to place the downloaded files, c:\temp\cyg-src is already in > >> the > >> edit box so i select next. I select direct connection, then next. Setup > >> downloads mirrors.lst, i select number 27 which is ftp://mirrors.rcn.net > >> and > >> then next. Setup then downloads setup.ini and i'm given the package list > >> to > >> select from. I click on the word install next to admin, archive, base, > >> database, doc, devel, doc, editors, etc. basically everything but all and > >> xfree86, which changes the selections from default to install. I select > >> next. I immediately then get the message download complete and it has > >> done > >> nothing. I select ok because that's all there is and setup stops. > > Ok - what about the other two questions I asked you ? The OS and if > this is a virgin cygwin install ? > > Here is something I want you to try - after changing from 'Default' to 'Install' > next to each category you want to install press the 'View' button (in > the upper right corner) until the text next to the button says > 'Partial'. Now do you see any packages in the chooser window ? > > >> Do you want my logs again? > > Nope. > > -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
setup continuing difficulties.
Hello, I've downloaded the latest snapshot and i am still having the problem whereby all cygwin is not installing. The first time i ran setup i selected download from internet, selected the catagories to install, hit next, and it stopped immediately with download complete. I next went through setup and said install from internet. It downloaded what i am assuming is the base cygwin, ash, bash, cygwin, etc. the version is setup-20020510 of the snapshot. Any suggestions? Thanks. Dave. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
additional setup information: still not working.
Hello, I've just figured out some information on my setup problem. If i use the view button to change from catagory to partial without first selecting any packages the partial listing is all i get. If i select a package, then go back to partial view that package shows up in the list, however when i try to download it it halts with setup nothing needed to be done. Any suggestions? Thanks. Dave. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: additional setup information: still not working.
Hello, This cygwin install is a fresh install. If i start it, and select view partial those packages are all i will get, if i first select another package, then go to view partial the additional package shows up but is not fetched. Dave. - Original Message - From: "Robert Collins" <[EMAIL PROTECTED]> To: "dave" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Saturday, May 11, 2002 9:09 PM Subject: RE: additional setup information: still not working. > -Original Message- > From: dave [mailto:[EMAIL PROTECTED]] > Sent: Sunday, May 12, 2002 10:57 AM > To: [EMAIL PROTECTED] > Subject: additional setup information: still not working. > > > Hello, > I've just figured out some information on my setup > problem. If i use the view button to change from catagory to > partial without first selecting any packages the partial Do you mean you get a 'no packages to display' in the chooser? Or an empty list? > listing is all i get. If i select a package, then go back to > partial view that package shows up in the list, however when > i try to download it it halts with setup nothing needed to be done. > Any suggestions? Did you have an old copy of cygwin on the system? This is the sort of behaviour I'd expect from setup if you have a /etc/setup/installed.db file. Are you able to select 'reinstall' for any of the packages? Rob -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: additional setup information: still not working.
Hello, Yes. The initial packages, what is programmed in to setup to retrieve as the cygwin base installs fine, however nothing else will. For lack of any good ideas on my part i was wondering if it is possible to download cygwin packages manually to / then bunzip2 them and untar them, if they'll be considered installed? Kepp the suggestions coming please. Thanks. Dave. - Original Message - From: "Robert Collins" <[EMAIL PROTECTED]> To: "dave" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Saturday, May 11, 2002 10:06 PM Subject: RE: additional setup information: still not working. So you are saying that the initial packages do install correctly? Rob > -Original Message- > From: dave [mailto:[EMAIL PROTECTED]] > Sent: Sunday, May 12, 2002 11:59 AM > To: Robert Collins > Cc: [EMAIL PROTECTED] > Subject: Re: additional setup information: still not working. > > > Hello, > This cygwin install is a fresh install. If i start it, > and select view partial those packages are all i will get, if > i first select another package, then go to view partial the > additional package shows up but is not fetched. Dave. > > - Original Message - > From: "Robert Collins" <[EMAIL PROTECTED]> > To: "dave" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> > Sent: Saturday, May 11, 2002 9:09 PM > Subject: RE: additional setup information: still not working. > > > > > > -Original Message- > > From: dave [mailto:[EMAIL PROTECTED]] > > Sent: Sunday, May 12, 2002 10:57 AM > > To: [EMAIL PROTECTED] > > Subject: additional setup information: still not working. > > > > > > Hello, > > I've just figured out some information on my setup > problem. If i > > use the view button to change from catagory to partial > without first > > selecting any packages the partial > > Do you mean you get a 'no packages to display' in the > chooser? Or an empty list? > > > listing is all i get. If i select a package, then go back > to partial > > view that package shows up in the list, however when i try > to download > > it it halts with setup nothing needed to be done. > > Any suggestions? > > Did you have an old copy of cygwin on the system? This is the > sort of behaviour I'd expect from setup if you have a > /etc/setup/installed.db file. > > Are you able to select 'reinstall' for any of the packages? > > Rob > > > -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
script or nmap?
Hi, Are either of the above apps working with cygwin? Thanks. Dave. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: 1.5.1 issue?
First, apologies if this isn't continuing at the appropriate point in the thread, but I've been having problems posting from my usual account. Anyway, back to what I wanted to say: I see something very like this on 1.3.22 running bash in rxvt, running a windows process, which itself has spawned something (terminology almost certainly not correct). Noted because it happens with MS nmake under rxvt. It does not occur (as badly?) when running bash from cmd.exe. It does not occur when strace is running (execution terminates as expected) There follows a test case which might be said bug. Uses a batch file to launch something which will take a while, but should terminate on ^C. $ cd \usr\doc\cygwin $ cat <test.bat c:\winnt\system32\find /V /N "unlikely bit of text" *.* EOF $ ./test.bat ^C Note that /cygdrive/c/winnt/system32/find. /V /N \"unlikely bit of text\" '*.*' terminates OK. HTH Dave. > -Original Message- > From: Christopher Faylor > Sent: 04 August 2003 17:07 > Subject: Re: 1.5.1 issue? > > > I'll try the test below but "me-toos" are, as usual, completely > uninteresting, unless you can provide a reproducible test case. > > If someone can reproduce this running strace, that would probably > be enough to track down the problem. It would also be nice to know > if this is a regression from 1.3.22 (or even 1.5.0). > > >Charles Wilson wrote: > >>When (re)compiling some of my packages, I noticed that > (some) signals > >>are not being propagated to children. > >> > >>That is: > >> > >>$ ./my-package-ver-rel.sh build > >>Hit ^C > >> > >>I'm returned to my bash prompt, but the make continues in > the background. Want to chat instantly with your online friends? Get the FREE Yahoo! Messenger http://uk.messenger.yahoo.com/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
inetd utilities startup
Hello, I'm running I bellieve it's cygwin 1.3.9, i just downloaded it today on my win2ksp2 box. I've got c:\cygwin\bin first on my path before anything else, i've used: ./inetd --install-as-service to install inetd as a service, purpose being i want ftp capabilities to this box. On an aside does anyone know if proftpd will work under cygwin? Back to my problem, the --install-as-service goes flawlessly yet when i try to start inetd either from net start inetd or from service control manager it complains that it can't find cygwin1.dll. I've checked in c:\cygwin\bin and cygwin1.dll is in fact there. Does anyone have any suggestions? On a secondary note, when setting my CYGWIN environment variable i want it set to binmode tty ntsec when setting it in the advanced tab of system properties do i enclose those values in "" such as "binmode tty ntsec" or just enter them as is? Thanks. Dave. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
update on inetd not able to find cygwin1.dll
Hello, To recap, cygwin 1.3.9, on win2ksp2, trying to load inetd as a service and getting the error that it can't find the cygwin1.dll error. It is in c:\cygwin and c:\cygwin\bin is the first item on my path. I just tried to load cron as a service, it's load like inetd's went smoothly, but i am able to start cron. Any ideas? Thanks. Dave. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: update on inetd not able to find cygwin1.dll
Hello, I have done this, the thing i don't understand is if one service can't find the .dll why can others? Dave. - Original Message - From: "Dylan Cuthbert" <[EMAIL PROTECTED]> To: "dave" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Sunday, February 17, 2002 8:04 PM Subject: Re: update on inetd not able to find cygwin1.dll > > I have no trouble running inetd on cygwin 1.3.9 and win2ksp2. Maybe your > install of cygwin isn't complete? Remember to follow the install > instructions precisely for inetd. > > - > Q-Games, Dylan Cuthbert. > http://www.q-games.com > > - Original Message - > From: "dave" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Monday, February 18, 2002 9:11 AM > Subject: update on inetd not able to find cygwin1.dll > > > > Hello, > > To recap, cygwin 1.3.9, on win2ksp2, trying to load inetd as a service > > and getting the error that it can't find the cygwin1.dll error. It is in > > c:\cygwin and c:\cygwin\bin is the first item on my path. I just tried to > > load cron as a service, it's load like inetd's went smoothly, but i am > able > > to start cron. Any ideas? > > Thanks. > > Dave. > > > > > > > > -- > > Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple > > Bug reporting: http://cygwin.com/bugs.html > > Documentation: http://cygwin.com/docs.html > > FAQ: http://cygwin.com/faq/ > > > > -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: inetd utilities startup
Hi, I put it in the system path and i did not use quotes. Dave. - Original Message - From: "Randall R Schulz" <[EMAIL PROTECTED]> To: "dave" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Sunday, February 17, 2002 10:35 PM Subject: Re: inetd utilities startup > Dave, > > You say that you put Cygwin's bin directory in your PATH variable, but you > did not say whether you put it in the system-wide PATH (the lower list of > variables in the System control panel's environment display) or that of the > current user (at the time you added it)--the upper list in the environment > variable display. In order for services to find a binary or DLL, it must be > in the system-wide PATH. > > Don't use quotes when setting environment variables in the System control > panel. > > Randall Schulz > Mountain View, CA USA > > > At 19:46 2002-02-16, dave wrote: > >Hello, > > > >I'm running I bellieve it's Cygwin 1.3.9, I just downloaded it today on my > >win2ksp2 box. I've got c:\cygwin\bin first on my path before anything > >else, I've used: > > > > ./inetd --install-as-service > > > >to install inetd as a service, purpose being I want ftp capabilities to > >this box. On an aside does anyone know if proftpd will work under cygwin? > >Back to my problem, the --install-as-service goes flawlessly yet when I > >try to start inetd either from net start inetd or from service control > >manager it complains that it can't find cygwin1.dll. I've checked in > >c:\cygwin\bin and cygwin1.dll is in fact there. Does anyone have any > >suggestions? > > > >On a secondary note, when setting my CYGWIN environment variable I want it > >set to binmode tty ntsec when setting it in the advanced tab of system > >properties do I enclose those values in "" such as "binmode tty ntsec" or > >just enter them as is? > > > >Thanks. > > > >Dave. > > -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: update on inetd not able to find cygwin1.dll
Hi, No, i've read that file. Dave. - Original Message - From: "alper" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, February 17, 2002 11:19 PM Subject: Re: update on inetd not able to find cygwin1.dll > On Sun, Feb 17, 2002 at 07:11:39PM -0500, dave wrote: > > Hello, > > To recap, cygwin 1.3.9, on win2ksp2, trying to load inetd as a service > > and getting the error that it can't find the cygwin1.dll error. It is in > > c:\cygwin and c:\cygwin\bin is the first item on my path. I just tried to > > load cron as a service, it's load like inetd's went smoothly, but i am able > > to start cron. Any ideas? > > You sound as if you've overlooked the instructions in > /usr/doc/Cygwin/inetutils-x.y.z.README > > > -- > Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple > Bug reporting: http://cygwin.com/bugs.html > Documentation: http://cygwin.com/docs.html > FAQ: http://cygwin.com/faq/ > > -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
proftpd on cygwin?
Hello, Has anyone ever tried to compile proftpd on cygwin? If so, what all is involved? Thanks. Dave. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: Paths in chere
Alireza Ghasemi wrote: > I used " chere -i " to add a bash command to my context menu.Now when I > Right-click on a folder an select "bash here" it opens bash in parent of > that folder , not the folder itself.How can I change it to show the real > folder. Which version of chere is installed? What is the exact command line used to add the context menu? What is the output of 'chere -r'? Similar behaviour was reported in version 0.5. This should be fixed in version 0.6 and greater. See the thread starting at: http://sourceware.org/ml/cygwin/2005-06/msg00446.html The reported issue occured when you selected the folder using the RH explorer pane. The LH tree view should work as advertised for all versions of chere. Dave chere maintainer. __ Start your day with Yahoo! - Make it your home page! http://www.yahoo.com/r/hs -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: chere problem with directories with single quote marks
Eric said: >According to Tom Plunket on 12/23/2005 11:48 PM: >> >>SHELL_CMD="-l -c \\\"cd '%L'; exec $SHELL_EXE\\\"" >> >> As you can see, this is clearly "wrong" for folders with a >> single-quote mark in them. >> >> My local fix was just to edit the registry and change '%L' to "%L". >> Obviously this affects the handling of this feature with folders that >> have a double-quote mark in them, but as I only use single quotes >> (e.g. "Debbie's Truck" or "Craig's List"), it Works For Me. ;) > > Window's allows ' but not " in filenames. However, Windows also allows $ > in filenames, so switching to double quotes would trade the problems with > ' to problems with $. And you need quoting, or spacing would be > corrupted. Off the top of my head, I can only think of one way that might > preserve ', $, and spaces in the problematic %L when dumped literally into > a shell script, but I don't know if Windows SHELL_CMD can handle embedded > newlines. In a normal shell window, > > $ xargs -0 << 'EOF' > > a '$b > > EOF > a '$b > > the here-doc correctly preserved the input string. So applying that to > the above problem, the registry entry MIGHT work (untested by me) if it is > written as: > > SHELL_CMD="-l -c \\\"xargs -0 cd << 'EOF'\n%L\nEOF\nexec $SHELL_EXE\\\"" Hmmm. It appears that I haven't handled this case consistently. I'll have a look at getting both ' and $ to work properly. Thanks for the report. Dave. chere maintainer __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: chere problem with directories with single quote marks
--- Eric Blake wrote: > According to Dave on 1/3/2006 2:03 PM: > >> > >>the here-doc correctly preserved the input string. So applying that to > >>the above problem, the registry entry MIGHT work (untested by me) if it is > >>written as: > >> > >>SHELL_CMD="-l -c \\\"xargs -0 cd << 'EOF'\n%L\nEOF\nexec $SHELL_EXE\\\"" > > > > > > Hmmm. It appears that I haven't handled this case consistently. I'll have a > look > > at getting both ' and $ to work properly. > > Scratch my above example; cd is a shell builtin, so it won't work from Thanks for trying things, but... The original poster is using the -1 option which attempts to get to the appropriate directory without executing the intermediate script (xhere). As you've seen this has problems with quoting which are unique to each of the shells, since it is the shell that is evaluating the argument. This method also has problems accessing network paths and starting ash and tcsh as noted on the man page. I've tested the other start option (-2), and that correctly goes to the path "[EMAIL PROTECTED]'s `stuff". That contains an apostrophe, a backtick and what could be interpreted as a shell parameter, all on a network path. I'm not entirely sure why this works, but I suspect it has to do with the lack of recursive parameter expansion. But don't quote me on that :) Since the single quotes prevent shell expansion and things, I think that they are most appropriate for the -1 option. I will note the limitation on entering directories containing apostrophes in the man page. The -2 option is the default, so I don't see this being a major issue. Regards, Dave. __ Yahoo! DSL Something to write home about. Just $16.99/mo. or less. dsl.yahoo.com -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: bash 3.1-1 "exec -l" doesn't start login shell
David Rothenberger wrote: > On 1/11/2006 9:06 PM, Eric Blake wrote: >>> "exec -l" in bash 3.1-1 doesn't seem to start a login shell. This >>> prevents my chere commands from starting a login shell, too. >> >> Have you tried "bash --login" instead? > > "bash --login" works fine, but the problem with "-bash" prevents chere > from starting login shells. It may be possible to modify chere to use > "bash --login", but this is still a bash bug, right? chere could indeed be modified to do that. However prepending '-' is (currently) the only method of invoking a login shell which works across all the packaged shells. So I went ahead and installed 3.1-1 to try it out. Here's what I found: chere did indeed stop working as advertised. Further experiments from a command prompt: --- start c:\cygwin\bin>bash bash-3.1$ exec -l bash [EMAIL PROTECTED] ~ $ --- end login shell executed (PS1 evaluated). Attempting the verbatim line from chere: --- start c:\cygwin\bin>bash bash-3.1$ exec -l /bin/bash bash-3.1$ --- end I haven't checked $0, but I'm guessing it's something like -/bin/bash, and this isn't triggering a login shell. chere passes the full path to the executable in case the shell isn't in the path. I can't remember if this was absolutely necessary, but it certainly works with the other shells. e.g --start c:\cygwin\bin>bash bash-3.1$ exec -l /bin/zsh ([EMAIL PROTECTED])[1] ~ $ ---end Regards, Dave chere maintainer __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: bash 3.1-1 "exec -l" doesn't start login shell
Eric wrote: >According to David Rothenberger on 1/12/2006 9:21 AM: > >> "bash --login" works fine, but the problem with "-bash" prevents chere >> from starting login shells. It may be possible to modify chere to use >> "bash --login", but this is still a bash bug, right? > > Yes, it is a regression in bash 3.1, and Tim Waugh proposed a patch here: > http://article.gmane.org/gmane.comp.shells.bash.bugs/8634 > > I will include that, as well as official patches 2-5, when I next roll > bash-3.1-2. Argh. Crossed emails - that's what I get for reading the list on the web. Thanks Eric. Dave. PS. Apologies for repeatedly killing the thread history. That's what I get with yahoo. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Another .bashrc Question
O. Olson wrote: If I log in (either locally and remotely) I get the bash prompt, but the .bashrc is not sourced. If I then type “bash” on the command line then this file gets sourced. `man bash` Check the Invocation chapter. A (bash) login shell is not expected to source .bashrc, although it is commonly added to either /etc/profile or ~/.bash_profile. IIRC the /etc/profile supplied by the basefiles package used to source .bashrc Other invocations do source .bashrc directly. I won't attempt to summarise the detail here. Dave. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: chere suggestion
Dave Korn wrote: On 15 February 2006 17:05, Cary Jamison wrote: I was just wondering how you get programs added to the Windows Explorer 'Open with...' menu, and thought this might be a good addition to chere. I would like to add xemacs, gvim, notepad, etc., to this menu. This is nothing to do with cygwin. Use the folder options/file types dialog from windows explorer, same as you would for any other file type you wanted to open with any other application. That said I proposed something similar a while back on cygwin-apps with no take up. http://www.cygwin.com/ml/cygwin-apps/2005-11/msg00274.html WRT the open with menu, it might just be a case of adding things to HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts, but I haven't verified that. Dave chere maintainer -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: chere suggestion
Igor Peshansky wrote: On Wed, 15 Feb 2006, Cary Jamison wrote: Dave wrote: Dave Korn wrote: On 15 February 2006 17:05, Cary Jamison wrote: I was just wondering how you get programs added to the Windows Explorer 'Open with...' menu, and thought this might be a good addition to chere. I would like to add xemacs, gvim, notepad, etc., to this menu. This is nothing to do with cygwin. Use the folder options/file types dialog from windows explorer, same as you would for any other file type you wanted to open with any other application. By the same argument, you could say chere has nothing to do with cygwin, just add your own action to the folder options... But, I still can't see how to do this. Maybe I'm missing something obvious. I can associate a file type, say 'TXT' with an 'open' action that starts emacs, for example, but how do I get the submenu with a list of possible programs to open with? FWIW, I use the "Send To" menu with the following shortcut for vi: C:\cygwin\bin\run.exe /bin/rxvt.exe -display :0 -T vim -vb -sr -sl 1 -bg black -cr white -fg LightSteelBlue1 -j -fn "-b&h-lucidatypewriter-medium-r-normal-sans-0-0-14-14-m-0-iso8859-2" -e /usr/bin/vim (I used to have more args there, but run now has a 20-argument limit -- sigh!). That said I proposed something similar a while back on cygwin-apps with no take up. http://www.cygwin.com/ml/cygwin-apps/2005-11/msg00274.html Ah, yes, that's exactly the kind of issues I'm looking at. I should have known someone else had already thought of it! Dave, I guess this looks to me like the "support" you were looking for... Care to proceed with this? You might want to open a donations page. :-) For that particular proposal, I was looking for support from maintainers. i.e I'd implement the framework (which I'm still willing to do), but maintainers of various packages (emacs, gvim etc) would need to provide an appropriate startup command, list file extensions to associate with, and and things like that. I'll have a closer look and post a more detailed proposal to cygwin-apps. Dave. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
[ANNOUNCEMENT] Updated chere-0.6-4
A minor update to chere is now available on the mirrors. This update just contains documentation updates. chere is used to set up explorer context menus to launch cygwin shells. Please consult the inbuilt help (chere -h) or the man page (man chere) for details on usage. Enjoy, -- Dave Please report any bugs to the Cygwin mailing list, following the procedure in http://cygwin.com/problems.html. In addition you should attach the (verbatim) output of `chere -r`. To update your installation, click on the "Install Cygwin now" link on the http://cygwin.com/ web page. This downloads setup.exe to your system. Then, run setup and answer all of the questions. *** CYGWIN-ANNOUNCE UNSUBSCRIBE INFO *** If you want to unsubscribe from the cygwin-announce mailing list, look at the "List-Unsubscribe: " tag in the email header of this message. Send email to the address specified there. It will be in the format: [EMAIL PROTECTED] If you need more information on unsubscribing, start reading here: http://sources.redhat.com/lists.html#unsubscribe-simple Please read *all* of the information on unsubscribing that is available starting at the above URL. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: perl reading ^M on text mounts
Have you tried setting the environment variable PERLIO? I'm not a heavy PERL user, but I tend to have PERLIO=crlf if I'm likely to see CRLFs. Dave. Lemke, Michael SZ/HZA-IOM1 wrote: Considering the usual speed of answers in this group and the persistent silence on this one may I ask again? Perl doesn't seem to deal well with CRLF text files as demonstrated below. Is that a known problem, any fix coming or am I missing something? Thanks for any insight, Michael Lemke, Michael SZ/HZA-IOM1 schaeffler.com> writes: If I execute this perl script de010597> cat x.pl #!/usr/bin/perl use strict; open( HO, ") { print "$_"; } on a text mount with an input file that has CRLF line endings perl should treat this as a text file and strip the CR. Only if I use binmode HO should I see the CR. But it doesn't: de010597> ./x.pl | cat -A bla^M$ de010597> cat -A x.txt bla^M$ What am I missing here? de010597> pwd /d/jakarta-tomcat/awstats de010597> mount D:\PROGRA~1\cygwin\bin on /usr/bin type system (binmode) D:\PROGRA~1\cygwin\lib on /usr/lib type system (binmode) D:\PROGRA~1\cygwin on / type system (binmode) c: on /c type system (textmode,noumount) d: on /d type system (textmode,noumount) f: on /f type system (textmode,noumount) de010597> mount -m mount -f -s -b "D:/PROGRA~1/cygwin/bin" "/usr/bin" mount -f -s -b "D:/PROGRA~1/cygwin/lib" "/usr/lib" mount -f -s -b "D:/PROGRA~1/cygwin" "/" mount -s -t --change-cygdrive-prefix "/" de010597> uname -a CYGWIN_NT-5.2 de010597 1.5.18(0.132/4/2) 2005-07-02 20:30 i686 unknown unknown Cygwin de010597> perl -v This is perl, v5.8.7 built for cygwin-thread-multi-64int -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Redirecting bash stdin
I'm trying to get a mingw GUI application to pipe commands to cygwins bash by redirecting its stdin as described here <http://support.microsoft.com/?id=190351>. This nearly works. 1. Start app. 2. Spawn bash with redirected stdin. bash process visible in process explorer. 3. Send command1 to bash. No response. 4. Send command2 to bash. Response to command1 seen 5. Exit app. Response to command2 seen. Command1 and command2 start notepad with different files, so the response I'm expecting is a visible notepad window. I'm ensuring the commands are terminated with "&\n\0" and even tried "&\r\n\0" and "&\n\n\0". I'm flushing the write end of the stdin pipe with FlushFileBuffers. I've tried adding a 2nd WriteFile (just spaces and \n) to see if that flushes the buffer. It doesn't. The Microsoft documentation states that it is the responsibility of the child process (bash) to empty its stdin. I've tried a couple shells: ash and pdksh appear to work as expected. tcsh responds immediately but exits after the first command. zsh acts like bash. Does anyone know what I can do to get bash to respond promptly? Or will this approach not work with bash? If necessary I can put the code on the net somewhere. Thanks, Dave. Windows 2000 Professional Ver 5.0 Build 2195 Service Pack 4 cygwin1.dll version 1.5.19 GNU bash, version 3.00.16(14)-release (i686-pc-cygwin) Copyright (C) 2004 Free Software Foundation, Inc. PS If I can get it working, the above is intended for a revamped chere. So I need it to work with bash, since ash won't let me get a login shell and pdksh seems like an odd requirement. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Redirecting bash stdin
Eric Blake wrote: According to Dave on 4/21/2006 11:45 AM: I'm trying to get a mingw GUI application to pipe commands to cygwins bash by redirecting its stdin as described here <http://support.microsoft.com/?id=190351>. Why not just spawn bash with command line arguments, and use the -c flag to pass the commands as arguments rather than on stdin? I'm aware of the -c flag. I may use it if I'm convinced the pipe won't work, but really I'm trying to avoid creating lots of "bash -l" instances. Does anyone know what I can do to get bash to respond promptly? Or will this approach not work with bash? It might not be bash's fault, but a general limitation of how cygwin handles pipes from non-cygwin processes. A simple test case is a necessity if you expect help debugging this. I've been attempting to produce one. Strangely the test case works as expected (ie. no problem). Also I've tried starting bash with "bash -l" and "bash -li". Strangely the latter does worse than the former - all the commands execute on exit. Also starting to strace bash. GNU bash, version 3.00.16(14)-release (i686-pc-cygwin) What about upgrading to bash 3.1, now that bash-3.1-5 is the current version? I've upgraded to 3.1-5. Behaviour is unchanged. Given that my testcase doesn't exhibit the problem, I'll slowly keep adding things until it does break. Then I'll have to figure how to make it minimal. *sigh* Thanks, Dave. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Redirecting bash stdin
>>>According to Dave on 4/21/2006 11:45 AM: >>> >>>>I'm trying to get a mingw GUI application to pipe commands to >>>>cygwins bash by redirecting its stdin as described here >>>><http://support.microsoft.com/?id=190351>. Buchbinder, Barry (NIH/NIAID) [E] wrote: Have you tried piping into "bash -s"? Probably won't be any different than the other piping you've tried, but maybe it will. I've just tried this - it doesn't affect the behaviour. >>Eric Blake wrote: >>> A simple test case is a necessity if you expect help debugging this. I've finally got the test case to show the behaviour I'm seeing in my application. Find it attached. Instructions to reproduce - 1. Compile the testcase as: g++ -g -mno-cygwin -pedantic -Wall -W -o min_tc.exe min_tc.cc 2. Confirm you have Windows notepad in your path :) which notepad 3. Identify a text file in your home directory to open. I'll use gdbtk.ini 4. Execute the 'working' case: ./min_tc notepad gdbtk.ini - a few seconds pause while the bash login shell is starting - notepad opens with your textfile (or a messagebox saying it can't fnid it). You can leave this open, or close it. - 10 second pause while the test case sleeps - returned to your prompt 5. Execute the 'non-working' case: ./min_tc notepad \`cygpath -u gdbtk.ini\` - a long pause (bash startup + 10s sleep) - almost simultaneous opening of notepad and return to shell NB In order to clearly see the difference in behaviour, it is useful to run the command from a shell which only displays its prompt after the command has completed. This rules out command.com and cmd.exe, although they exhibit the same issue. - Any help figuring out what's causing the delayed execution is much appreciated. Thanks, Dave. PS now running bash 3.1-6 PPS yes, that is as minimal as I could get the test case. Apologies. #include #include /* Macros normally mapped to some logging function */ /* Just print on sterr */ #define SYSTEM_ERROR(text, err, pri) \ fprintf(stderr,text) #define APP_ERROR(text, pri) \ fprintf(stderr,text) /** Handle of the write end of the pipe * connected to the standard input of the shell */ HANDLE sh_stdin; /** Handle of the read end of the pipe * connected to the standard output of the shell */ HANDLE sh_stdout; /** TRUE is a shell is running waiting for input */ bool bShell_running; static bool LaunchRedirectedChild( HANDLE hChildStdOut, HANDLE hChildStdIn, HANDLE hChildStdErr, char* cmd) { PROCESS_INFORMATION pi; STARTUPINFO si; bool rv = true; // Set up the start up info struct. memset(&si,0,sizeof(si)); si.cb = sizeof(si); si.dwFlags = STARTF_USESTDHANDLES | STARTF_USESHOWWINDOW; si.hStdOutput = NULL;//hChildStdOut; si.hStdInput = hChildStdIn; si.hStdError = hChildStdErr; si.wShowWindow = SW_HIDE; // Don't show the login shell if (!CreateProcess(NULL,cmd,NULL,NULL,TRUE, CREATE_NEW_CONSOLE,NULL,NULL,&si,&pi)) { char* msg = new char[strlen(cmd)+ 77]; sprintf(msg, "LaunchRedirectedChild " "CreateProcess failed to start child process.\n" "Command: %s\n", cmd); SYSTEM_ERROR(msg, GetLastError(), UNRECOVERABLE); delete[] msg; rv = false; } else { // Set global child process handle to cause threads to exit. //hChildProcess = pi.hProcess; // Close any unnecessary handles. if (!CloseHandle(pi.hThread)) { SYSTEM_ERROR("LaunchRedirectedChild " "CloseHandle can't close child thread handle\n", GetLastError(), RECOVERABLE); } if (!CloseHandle(pi.hProcess)) { SYSTEM_ERROR("LaunchRedirectedChild " "CloseHandle can't close child process handle\n", GetLastError(), RECOVERABLE); } } return rv; } bool start_shell(void) { char login_cmd[MAX_PATH + FILENAME_MAX] = "c:\\cygwin\\bin\\bash.exe -l"; HANDLE hOutputReadTmp,hOutputRead,hOutputWrite; HANDLE hInputWriteTmp,hInputRead,hInputWrite; HANDLE hErrorWrite; HANDLE hThread; DWORD ThreadId; SECURITY_ATTRIBUTES sa; /* Create an anonymous pipe and attach it to stdin * Then start the login shell * * Think about redirecting output somewhere as well. */ // Set up the security attributes struct. sa.nLength= sizeof(SECURITY_ATTRIBUTES); sa.lpSecurityDescriptor = NULL; sa.bInheritHandle = TRUE; // Create the child output pipe. if (!CreatePipe(&hOutputReadTmp, &hOutputWrite, &sa, 0)) { S
Re: multiple commands on a single line seem to run in the background automatically
Valster Nico-anv009 wrote: If I invoke the script like: c:/bat/sbuild .. things work pretty well. However if I invoke it as cd /cygdrive/d/CCase/anv009_SPRINT_8/SPRINT_VOB/SPRINT;c:/bat/sbuild . What happens if you invoke the script using a POSIX path? cd cygdrive/d/CCase/anv009_SPRINT_8/SPRINT_VOB/SPRINT;/cygdrive/c/bat/sbuild . Dave. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: sed: 4.1.5 breaks libtool generation
Mark Hessling wrote: Actually, what you describe is clear enough, but since CRLF handling isn't done by the Linux version of sed either, you would have the same problem on Linux. The question here is how did this file get created with CRLF in the first place? I have several cross-platform projects managed in a CVS repository. Several of them are built with different Win32 compilers on the same Windows XP machine. So my direcory tree looks something like: projects Regina vc bcc cygwin Given the fact that cygwin runs on a machine where the native linend is CRLF, having a major component not recognise CRLF as a linend when handling text files is, AFAIAC, a major problem. Given that you know all the files in this tree are CRLF terminated, is it appropriate to mount this directory in text mode? Does the configure work if this is done? Dave. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: sed: 4.1.5 breaks libtool generation
Just sending the OPs reply so that it is in the mailing list archive. Mark Hessling wrote: Mark Hessling wrote: Actually, what you describe is clear enough, but since CRLF handling isn't done by the Linux version of sed either, you would have the same problem on Linux. The question here is how did this file get created with CRLF in the first place? I have several cross-platform projects managed in a CVS repository. Several of them are built with different Win32 compilers on the same Windows XP machine. So my direcory tree looks something like: projects Regina vc bcc cygwin Given the fact that cygwin runs on a machine where the native linend is CRLF, having a major component not recognise CRLF as a linend when handling text files is, AFAIAC, a major problem. Given that you know all the files in this tree are CRLF terminated, is it appropriate to mount this directory in text mode? Does the configure work if this is done? Yes it does. Thanks. I wasn't aware of mount features; I've just been using the default mounts; d: -> /cygdrive/d, etc. which are in binary mode. Cheers, Mark. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: sed 4.1.5 adds extra CR with input file path in Windows format
David Mastronarde wrote: After upgrading sed from 4.1.4 to 4.1.5, I found that line endings were being converted from CRLF to CRCRLF when the input file was specified with a windows file path: % sed -e 's/g5a/setname/g' < 'c:\cygwin\home\mast/sedtestin' > ! sedtestout Converting the path to cygwin format eliminated the problem. C:\cygwin / system textmode C:\cygwin/bin /usr/bin system textmode C:\cygwin/lib /usr/lib system textmode C:\cygwin\usr\X11R6\lib\X11\fonts /usr/X11R6/lib/X11/fonts system binmode . /cygdrive system textmode,cygdrive Have a read of http://cygwin.com/cygwin-ug-net/using-textbinary.html Stepping through it: % sed -e 's/g5a/setname/g' < 'c:\cygwin\home\mast/sedtestin' > ! sedtestout rule b. sedtestin input will be read in binary mode. i.e it reads \r\n redirection of input is done in binmode from rule c. ditto output redirection. writing of the file is done in textmode due to your mounts (rule a). Hence \r\n coming out of sed becomes \r\r\n. Try specifying the output file in MSDOS format, '.\sedtestout'. Dave. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Why is a file specified in DOS format opened in binary mode?
(was Re: sed 4.1.5 adds extra CR with input file path in Windows format) David Mastronarde wrote: On Tue, 27 Jun 2006, Dave Kilroy wrote: On 6/27/06, David Mastronarde wrote: On Sun, 25 Jun 2006, Dave wrote: David Mastronarde wrote: After upgrading sed from 4.1.4 to 4.1.5, I found that line endings were being converted from CRLF to CRCRLF when the input file was specified with a windows file path: Have a read of http://cygwin.com/cygwin-ug-net/using-textbinary.html Try specifying the output file in MSDOS format, '.\sedtestout'. So it all makes sense in terms of it following the rules. But I am curious as to the reason for rule b. Most things in Cygwin seem to deal interchangeably with windows and cygwin paths. Sorry, can't help you there - this behaviour has been present longer than I have monitorred this list. A google didn't bring much enlightenment either. Anyone else? Dave. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: uninstall cygwin
Igor Peshansky wrote: On Fri, 30 Jun 2006, f g wrote: I would like to uninstall a Cygwin installation under Windows XP: to do this I follow the instruction in You'll also want to delete the registry key, as outlined in the above instructions. Oh, and deleting the directory won't remove any shortcuts created by the Cygwin installation packages (like those in the Start Menu or on the desktop, or the associations created by the "chere" package), so it's better to use setup.exe to uninstall everything first, *then* delete the directory and the registry key. Just to clarify, Igor's procedure won't remove the chere associations that he mentioned. If you don't recognise "chere", then you don't have any associations to remove. If someone else set things up for you, run the following command (before uninstalling cygwin) to identify any associations: chere -l To remove the associations, run chere -u -s for each shell, where is the shell you installed (cmd/ash/bash/tcsh/pdksh/zsh). That's from memory (and I don't uninstall that often:), see man chere for accurate information. Regards, Dave. chere maintainer. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
ipconfig and cygwin
Robert wrote: Do you know if ipconfig has been ported to cygwin Please send all queries direct to the cygwin list rather than to individuals who post to the list. To find out if a particular package has been ported, use the cygwin package search page at http://cygwin.com/packages Doing http://cygwin.com/cgi-bin2/package-grep.cgi?grep=ipconfig does not reveal a package/file with that name. That said, ipconfig is a windows command, and I am not aware of an ipconfig for Unix/Linux. Dave. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Non network install of Cygwin?
Jessica M. Sager wrote: install of the software. Is a non-network install version of Cygwin available? The setup.exe program linked on main page can download the entire distribution. You can then copy that distribution anywhere you want and use setup.exe to install on any non-networked machine. See http://www.cygwin.com/cygwin-ug-net/setup-net.html#id4675192 Basically choose Download from internet on one of the initial pages. Specify some directory to hold the sources, say cygwin-packages On the package list select the all radio button. The cygwin-packages directory will contain a setup.ini, and a directory named after the mirror site you downloaded from. Alternatively you can just rsync off of a mirror, and point setup.exe to that directory. For example, from ftp://ftp.heanet.ie/mirrors/sources.redhat.com/pub/cygwin For a list of mirrors see http://cygwin.com/mirrors.html If you search the mailing list archives you should find more detailed discussion of how to do non-networked installs. HTH. Dave. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
MySQL build failure on latest cygwin (7/3/2006)
Hello. I have built the MySQL client on cygwin in the past (sorry, don't remember the release numbers but until yesterday my latest was from a year ago). I use the linux tarball, and build just the client. Yesterday, I tried this with both the current (5.0) and previous (4.1) MySQL releases. The make step fails because the preprocessor is complaining because neither the a 4 byte int or long. This makes no sense as I'm running on a P4 Win XP machine. I tried just forcing the preprocessor #define but that just caused other problems. I did a fulll cygwin install yesterday (7/3/06) from the kernel.org mirror, and it worked without a problem. I realize that this is a MySQL problem (and have posted it there), but given that I was able to compile version 5 a few days ago, with the same source, it seems as though it's clearly something happening in the cygwin release. Thanks Dave -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: cygwin1.dll conflict
Dave Korn wrote: On 07 July 2006 01:32, Dale King wrote: I'm supposedly having a problem with an old version of cygwin1.dll, but I find no old version. And when I run cygwin setup it tell me that I have an old version of cygwin1.dll in c:\windows\system32, but it fails when it tries to delete it. But there is no cygwin1.dll there or anywhere else on my system except in c:\cygwin\bin. I even deleted that one and reinstalled and still have the same problem. I have attached the output of cygcheck. ...which says... "Warning: There are multiple cygwin1.dlls on your path" ...and lists 602k 2005/06/26 C:\WINDOWS\system32\cygwin1.dll - os=4.0 img=1.0 sys=4.0 "cygwin1.dll" v0.0 ts=2005/5/25 19:38 1831k 2006/07/01 C:\cygwin\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0 "cygwin1.dll" v0.0 ts=2006/7/1 2:22 You must need more coffee! It's possible that somebody (or some installer) has marked the cygwin1.dll in system32 as system and/or hidden. This may explain why it doesn't appear in explorer or a DOS directory listing. Explorer has an option which will show hidden and system files: set that and you ought to be able to find it. Dave. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: variable after break
prz wrote: I am using a simple program with a loop when getting out of the loop with break the variable $aid gets cleared it was printed before the break and getting out of the loop Any idea / hint ? I don't believe this is cygwin specific. Have a read of the bash man page. Hint: Not only are you reading the variable outside the loop in which you first declare it, you're also reading it outside the group command. From my reading of your command you shouldn't need to call grep, gawk, and use a while loop to match another string. gawk should be able to do everything for you. info gawk. Dave. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: query of installed apps on remote Winows
Richard Foulk wrote: Anyone know how the control-panel->Add/Remove-Programs facility works? Not particularly cygwin specific, and comprehensively covered at Microsofts site. Anyway, here's some basic info. Each program needing an uninstall item has a key in: /HKLM/Software/Microsoft/Windows/CurrentVersion/Uninstall See http://windowssdk.msdn.microsoft.com/en-us/library/ms709926.aspx http://support.microsoft.com/kb/247501 Is this something that might be supported by existing cygwin tools? Personally, I'd leave installing/uninstalling of non-cygwin apps to windows. Can you imagine the queries coming to this list? - I couldn't uninstall notepad! - Executing random uninstaller broke my system! Why did cygwin allow that? Dave. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: dselect - formally Re: Running as root
Stephen Grant Brown wrote: > The output of the program (which is dselect) I am having trouble with is > in the attached file. > How do I find out which file has read-only access? > > I am making the assumption that if a program is in the cygwin > distribution, the cygwin community would like to get it working > properly. Is this assumption valid? assume = ass + U + me. As Brian said in a separate thread: http://www.cygwin.com/ml/cygwin/2006-01/msg00632.html Just to repeat. If you trying to update cygwin, please use setup.exe, the only supported mechanism for doing so. If you are looking for a mechanism to do updates via the command line, there isn't a tool do this. However setup.exe can be fooled into doing this (please Google), and there are attempts to make setup.exe more useful from the command line. There are a few package managers from Linux distributions available (dselect and rpm are the ones I can think of). As far as I know these are only present for two reasons: - to allow inspection of packages for these distributions - to help investigations of the feasability of other packaging methods for cygwin. None of them are currently capable of maintaining a cygwin installation. Also, you will note that dpkg was last updated in 2002 and IIRC is looking for a maintainer (or may be culled at any time). If you still want help with dselect, I suggest you describe exactly what you are trying to do with it, and the steps you take which lead to the problem. It will them become clear whether or not that behaviour is expected to work or not. HTH. Dave. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
[ANNOUNCEMENT] TEST VERSION: chere-0.4-1
--0-228927354-1098297891=:32135 Content-Type: text/plain; charset=us-ascii Content-Id: Content-Disposition: inline This is a test version - feedback is required on whether this works on non-W2K boxes. Changes --- By default, the login shell is now invoked by a shell script. This allows the tcsh/ash issues to be solved and also happens to resolve issues with network paths. However, it requires the co-operation of your login script to avoid your home directory when the environment variable CHERE_INVOKING is set. The attached diffs against the existing default scripts should allow you to check if things work. If the new invocation method doesn't work for you, you hould be able to get the previous behaviour with the -1 option. Attempts to use run.exe if it is on the path. General --- chere is a Cygwin package to manage the infamous Shell Here functionality. This adds items to the Explorer Drive and Directory context menus. The named shell is started in the selected drive/directory when the menu item is chosen. If, like me, you're paranoid about your Registry, chere can display what it would do rather than actually do it. It can also report what shells have been added to the context menus, and the associated keys. chere can remove any context menu items it has created. Please consult the inbuilt help for details on usage (chere -h). Known issues New invocation only tested on W2K. It relies on windows to set the working directory before starting the shell. I'm not sure if other versions of windows will do this. You must have Admin priveleges to install the context menus. The windows control panel uninstall will not work if you uninstall chere. If you are about to remove cygwin, uninstall the context menus first. Enjoy, -- Dave Please report any bugs to the Cygwin mailing list, following the procedure in http://cygwin.com/problems.html. In addition you should attach the (verbatim) output of `chere -r`. To update your installation, click on the "Install Cygwin now" link on the http://cygwin.com/ web page. This downloads setup.exe to your system. Then, run setup and answer all of the questions. *** CYGWIN-ANNOUNCE UNSUBSCRIBE INFO *** If you want to unsubscribe from the cygwin-announce mailing list, look at the "List-Unsubscribe: " tag in the email header of this message. Send email to the address specified there. It will be in the format: [EMAIL PROTECTED] If you need more information on unsubscribing, start reading here: http://sources.redhat.com/lists.html#unsubscribe-simple Please read *all* of the information on unsubscribing that is available starting at the above URL. ___ Do you Yahoo!? Declare Yourself - Register online to vote today! http://vote.yahoo.com --0-228927354-1098297891=:32135 Content-Type: text/plain; name="csh.login.patch" Content-Description: csh.login.patch Content-Disposition: inline; filename="csh.login.patch" --- csh.login.orig 2004-10-20 19:42:02.0 +0100 +++ csh.login 2004-10-20 19:44:38.0 +0100 @@ -24,4 +24,8 @@ umask 022 -cd +if ( ! ${?CHERE_INVOKING} ) then + cd +else + unset CHERE_INVOKING +endif --0-228927354-1098297891=:32135 Content-Type: text/plain; name="zprofile.patch" Content-Description: zprofile.patch Content-Disposition: inline; filename="zprofile.patch" --- zprofile.orig 2004-10-20 19:40:22.0 +0100 +++ zprofile2004-10-20 19:39:40.0 +0100 @@ -32,5 +32,10 @@ export MAKE_MODE=unix export PS1='([EMAIL PROTECTED])[%h] %~ %% ' -cd "$HOME" +if [ -z "$CHERE_INVOKING" ]; then + # Make sure we start in home + cd "$HOME" +else + unset CHERE_INVOKING +fi --0-228927354-1098297891=:32135 Content-Type: text/plain; name="profile.patch" Content-Description: profile.patch Content-Disposition: inline; filename="profile.patch" --- profile.orig2004-08-21 15:52:38.0 +0100 +++ profile 2004-10-20 19:35:28.0 +0100 @@ -150,8 +150,12 @@ esac export PRINTER -# Make sure we start in home -cd "$HOME" +if [ -z "$CHERE_INVOKING" ]; then + # Make sure we start in home + cd "$HOME" +else + unset CHERE_INVOKING +fi # Check to see if mkpasswd/mkgroup needs to be run try and cut down the emails # about this on the lists! --0-228927354-1098297891=:32135-- -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: TEST VERSION: chere-0.4-1
I can see it on the mirror now. I assume it's either been taking awhile to get round to the mirrors, or somebody recently fixed something (probably with my setup.hint - Thanks). Dave. --- [EMAIL PROTECTED] wrote: > Hi Dave, > > Is the test version of 'chere' up on the mirror sites? > I cannot seem to locate it through the setup program. > > BTW, I'm using ver 2.247 of setup.exe with ftp://mirrors.kernel.org > as mirror with 'Exp'/'Current' mode. > > Thanks, > Haro > > From: Dave > Date: Wed, 20 Oct 2004 11:44:51 -0700 (PDT) > ::This is a test version - feedback is required on whether this works on > non-W2K > ::boxes. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Setting term title (was Re: TEST VERSION: chere-0.4-1)
--- [EMAIL PROTECTED] wrote: > I've confirmed that it works correctly, even on net-shares using zsh > as starting shell, on my Windows NT SP6a. Thanks. > One minor glitch is that, name of window becomes bash.exe ;-) Kind of expected behaviour documented in help text. Have a look at: http://biocycle.atmos.colostate.edu/~johnk/Xterm-Title.html Dave. __ Do you Yahoo!? Y! Messenger - Communicate in real time. Download now. http://messenger.yahoo.com -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
[ANNOUNCEMENT] Update: chere-0.5-2
chere is a Cygwin package to manage Shell Here functionality. It adds items to the Explorer Drive and Directory context menus. The named shell is started in the selected drive/directory when the menu item is chosen. If, like me, you're paranoid about your Registry, chere can display what it would do rather than actually do it. It can also report what shells have been added to the context menus, and the associated keys. Finally, chere can remove any context menu items it has created. Please consult the man page for details on usage (man chere). Changes (since 0.4-1 (test)) --- * Add install for for current user * Improved key handling for install/uninstall * Man page added Known issues The default zsh and tcsh startup scripts are in the process of being updated to work with chere. In the meantime these shells will start in the home directory instead of in that desired. chere adds an uninstall item to the Windows Control Panel for each shell context menu you add using chere. This feature relies on chere, and as such does not work after chere itself has been uninstalled. If you have context menus and plan to remove Cygwin, uninstall the context menus before you uninstall Cygwin :) Enjoy, -- Dave Please report any bugs to the Cygwin mailing list, following the procedure in http://cygwin.com/problems.html. In addition you should attach the (verbatim) output of `chere -r`. To update your installation, click on the "Install Cygwin now" link on the http://cygwin.com/ web page. This downloads setup.exe to your system. Then, run setup and answer all of the questions. *** CYGWIN-ANNOUNCE UNSUBSCRIBE INFO *** If you want to unsubscribe from the cygwin-announce mailing list, look at the "List-Unsubscribe: " tag in the email header of this message. Send email to the address specified there. It will be in the format: [EMAIL PROTECTED] If you need more information on unsubscribing, start reading here: http://sources.redhat.com/lists.html#unsubscribe-simple Please read *all* of the information on unsubscribing that is available starting at the above URL. __ Do you Yahoo!? Meet the all-new My Yahoo! - Try it today! http://my.yahoo.com -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Manual page width is fixed and I'd like it not to be
> - Original Message - > From: "Igor Pechtchanski" > > > On Mon, 22 Nov 2004, Raye Raskin wrote: > > > > > - Original Message - > > > From: "Christopher Faylor" > > > > > > On Mon, Nov 22, 2004 at 06:50:57PM -0500, Aaron Miller wrote: > > > > > Thanks for the pointer, and I'll ask on the cygwin-xfree list as well. > > > > > It's not really a query about xterm, though: using a shortcut that > > > > > starts bash in a standard Windows command-shell which is 100 columns > > > > > wide, if I ask for a manual page, I still get it formatted to eighty > > > > > columns. I mentioned xterms since that's what I prefer to use, but > > > > > it's not by any means a problem exclusive to those. > > > > > > Well, that's not a full bug report, since man uses a cached cat page if > > it's present. So, unless your system doesn't have the cat directories, > > you need to run "man -c" to force regeneration of cat pages. That said, I > > confirm that "MANWIDTH=20 man -c man" still produces an 80-column manpage. > > But then, hey, it doesn't work on Linux (RedHat 9) either. We must be > > misreading the man manpage. :-) > > Igor Attached is a patch to man.conf, providing a (hacked) solution allowing MANWIDTH to work (here at least). Only intended as a short term fixup for those who need it :). Will need some work if you want it to cope with term resizing. Thanks to http://lists.gnu.org/archive/html/groff/2003-03/msg00038.html Enjoy, Dave. __ Do you Yahoo!? Meet the all-new My Yahoo! - Try it today! http://my.yahoo.com --- man.conf.default2004-09-26 18:36:22.0 +0100 +++ man.conf2004-11-23 21:32:16.0 + @@ -99,7 +99,7 @@ # causes problems, add the -c option to TROFF, NROFF. # TROFF /usr/bin/groff -Tps -mandoc -NROFF /usr/bin/nroff -c -mandoc 2>/dev/null +NROFF /usr/bin/nroff -c -mandoc -rLL=`echo $MANWIDTH`n -rLT=`echo $MANWIDTH`n 2>/dev/null EQN/usr/bin/eqn -Tps NEQN /usr/bin/eqn -Tutf8 TBL/usr/bin/tbl -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
business
Hi, Advertise your Products and Services with Email Movies made by You at www.myvideotalk.net/16203 or become a Distributor at www.myvideotalk.com/16203 details at www.videoincome.co.uk/business/ Regards Dave. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: chere doesn't cd to directory
>Wayne Johnson yahoo.com> writes: > >> One problem though. Where I do the chere "Bash here" menu entry, it starts >> the bash in the home directory. I dug through the xhere script and found the >> "export CHERE_DIR=`cygpath -u $2`" commented out. If I comment it back in, I >> get an error because the registry entry didn't pass in the directory name as >> $2. Mmmm. Leftovers. I'll clean that out in the next release. CHere didn't work because you either have an old or custom /etc/profile. > In /etc/profile I need to replace the line: > > Yes, that does the job, but not completely. Look for the correct snippet in a recent /etc/defaults/etc/profile (part of the base-files package). If you don't have other modifications in /etc/profile copy the default file, which was updated recently. This also means you will pick up further base-files modifications when they are released. >Whether this will fix it for all shells, I'm not sure. The cd occurs in /etc/profile for bash, ash, and pdksh; /etc/zprofile for zsh; /etc/csh.login for tcsh. An appropriate modification for zprofile can be found in /usr/share/doc/zsh-/StartupFiles/etc/zprofile (installed with zsh). zprofile is updated in a similar way to profile, so use the default if you want to pick up updates. Appropriate modifications for csh.login should appear in the next release. They are similar to that in profile. >Thanks for a great utility. Not a problem. Dave. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: chere doesn't cd to directory
--- Igor Pechtchanski <[EMAIL PROTECTED]> wrote: > On Fri, 4 Mar 2005, Dave wrote: > > The cd occurs in /etc/profile for bash, ash, and pdksh; /etc/zprofile > > for zsh; /etc/csh.login for tcsh. > I don't recall if this was part of the discussion, but any particular > reason you're not doing this in a /etc/profile.d script instead? That > way, it would work even with a custom /etc/profile. I honestly hadn't thought of that... and I don't recall it being mentioned. The issue is that chere wants to stop the standard login script from doing the usual cd $(HOME). The profile.d scripts get run before the cd, and hence th cd happens anyway. If the order were changed, we'd have lost the directory we wanted anyway. The 'cd $(HOME)' could be removed from /etc/profile, but then the profile.d script would be required even when chere were not installed. Also, tcsh reads the profile.d scripts from csh.cshrc rather than csh.login. So a non login tcsh shell would also run the snippet (and cd $(HOME)). That said, profile.d seems to be a good place for other generic startup that is done by base-files, since all the shells run them. Dave. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: chere doesn't cd to directory
--- Jason Pearce <[EMAIL PROTECTED]> wrote: > >Mmmm. Leftovers. I'll clean that out in the next release. > > > >CHere didn't work because you either have an old or custom /etc/profile. > > I fell fowl of the customized /etc/profile too. I think it is worth a > note in the man page (or /usr/share/doc/chere?) in next release. Added to the man page for the next release. Dave. __ Celebrate Yahoo!'s 10th Birthday! Yahoo! Netrospective: 100 Moments of the Web http://birthday.yahoo.com/netrospective/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: chere doesn't cd to directory
--- "John Morrison (Cygwin)" <[EMAIL PROTECTED]> wrote: > On Sat, March 5, 2005 9:25 am, Dave said: > > --- Igor Pechtchanski <[EMAIL PROTECTED]> wrote: > > > >> On Fri, 4 Mar 2005, Dave wrote: > >> > The cd occurs in /etc/profile for bash, ash, and pdksh; /etc/zprofile > >> > for zsh; /etc/csh.login for tcsh. > > > >> I don't recall if this was part of the discussion, but any particular > >> reason you're not doing this in a /etc/profile.d script instead? That > >> way, it would work even with a custom /etc/profile. > > > > I honestly hadn't thought of that... and I don't recall it being > > mentioned. > > > > The issue is that chere wants to stop the standard login script from doing > > the > > usual cd $(HOME). The profile.d scripts get run before the cd, and hence > > th cd > > happens anyway. If the order were changed, we'd have lost the directory we > > wanted anyway. > > > > The 'cd $(HOME)' could be removed from /etc/profile, but then the > > profile.d > > script would be required even when chere were not installed. > > Not if there was a script called (something like)... > > 00cd.sh > > included in the base-files which just did a cd $HOME. As long as the > chere script was after this one it should cd $HOME then cd $CHERE... > thoughts? This is OK as long as 00cd.sh does the full chere incantation, otherwise we lose the directory we want to go to. Dave. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: chere doesn't cd to directory
--- Igor Pechtchanski <[EMAIL PROTECTED]> wrote: > On Sat, 5 Mar 2005, Dave wrote: > > --- Igor Pechtchanski wrote: > > > On Fri, 4 Mar 2005, Dave wrote: > > > > The cd occurs in /etc/profile for bash, ash, and pdksh; /etc/zprofile > > > > for zsh; /etc/csh.login for tcsh. > > > > > I don't recall if this was part of the discussion, but any particular > > > reason you're not doing this in a /etc/profile.d script instead? That > > > way, it would work even with a custom /etc/profile. > > > > I honestly hadn't thought of that... and I don't recall it being > > mentioned. > > > > The issue is that chere wants to stop the standard login script from > > doing the usual cd $(HOME). The profile.d scripts get run before the cd, > > and hence th cd happens anyway. If the order were changed, we'd have > > lost the directory we wanted anyway. These (and also that suggested by John in an earlier e-mail) still require a change to /etc/profile. i.e. People with custom /etc/profiles will still need to update them. > Another alternative is to wrap /etc/profile in another script and use > bash's --noprofile and --rcfile options (again, don't recall if this has > been discussed before). This one may work with bash, but I'm guessing the other shells aren't as accomodating. > > Also, tcsh reads the profile.d scripts from csh.cshrc rather than > > csh.login. So a non login tcsh shell would also run the snippet (and cd > > $(HOME)). > > Ah, this one's easy to solve. Just unset the variable after you do the > first "cd $(HOME)". :-) Then subsequent invocations will skip the > snippet. You've misunderstood me on this one. The csh profile.d file would require a { if CHERE_INVOKING unset CHERE_INVOKING; else cd HOME }. This would be run for login and non login shells. A login shell will then work as expected. A non login shell (which doesn't normally cd HOME) would cd HOME. This can be worked around, but why make trouble? Anyway, I don't mind coming up with a more update (and maintainer) friendly way for chere to get to the right directory, but I don't see that it's worth the effort and pain of users having to change their profile again. That said these modifications would take place in the base-files, zsh and tcsh packages (and chere wouldn't change); so if John, Peter or Corinna want to refactor things, that's OK with me. Dave. __ Celebrate Yahoo!'s 10th Birthday! Yahoo! Netrospective: 100 Moments of the Web http://birthday.yahoo.com/netrospective/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: /etc/profile always does a "cd $HOME"
>>> i'd like to use cygwin from a normal windows-app. The problem is, that i >>> need a login-shell, so that all environment-vars are properly set. The >>> problem: bash -li always changes the current workdir! >The point was "a flly functional" environment, and just adding /bin to >the PATH is only half the things, i'd need to do. If you have a recent* /etc/profile from base-files, pretend you're chere. From a batch file: set CHERE_INVOKING=y bash -li set CHERE_INVOKING= >From a sh script: CHERE_INVOKING=y && bash -li Dave. [chere maintainer] * Well, less than 6 months old. __ Yahoo! Mail Mobile Take Yahoo! Mail with you! Check email on your mobile phone. http://mobile.yahoo.com/learn/mail -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: /etc/profile always does a "cd $HOME"
Yitzchak Scott-Thoennes wrote: > On Mon, May 23, 2005 at 12:55:12PM -0700, Dave wrote: >>>> i'd like to use cygwin from a normal windows-app. The problem is, that i >>>> need a login-shell, so that all environment-vars are properly set. The >>>> problem: bash -li always changes the current workdir! >> >>>The point was "a flly functional" environment, and just adding /bin to >>>the PATH is only half the things, i'd need to do. >> >> If you have a recent* /etc/profile from base-files, pretend you're chere. >> >> From a sh script: >> >> CHERE_INVOKING=y && bash -li > >ITYM: > >CHERE_INVOKING=y bash -li -c somecommand Thanks for the correction. I never knew that was valid, and I suppose I'll always wonder why some of my scripts ever worked. Dave. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: Bug in chere
>chere adds a "bash here" context menu just fine. However: > >1) You have to click on a folder icon, clicking in a folder > that's open does not work >2) It opens the shell not in the folder you clicked on, but > in the parent folder Thanks for the report. Now how did that go unnoticed? More explicit instructions to reproduce: 1) In the LH pane of Explorer, select a folder with subdirectories (eg c:\windows). 2) In the RH pane, right click a subdirectory and select Bash here. (eg system32). Bash will start in the parent directory (c:\windows) A known workaround is to specify -1 (that's a one) when invoking chere. However, as noted in the documentation this won't work properly if you use ash or tcsh. Or if you try to open a network location. I'm restructuring the script at the moment and have a fix in mind. Hopefully it will be ready for release sometime soon. Thanks, Dave. chere maintainer __ Discover Yahoo! Use Yahoo! to plan a weekend, have fun online and more. Check it out! http://discover.yahoo.com/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: Bug in chere
--- Nils Jeppe wrote: > Can you also add it to a folder's context menu? Say, I have a > folder open, and I click on the folder window itself, instead of a folder > icon for a sub-folder. That'd be sweet. If I understand what you mean, then I don't think it's possible. However, if you can find either: a) the appropriate registry key to modify, b) an example of a program that adds something to this context menu (the one with 'Customize this folder' on it), and a user to dig around their registry to find out how it does it, I'll be happy to add the functionality. Dave. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: Bug in chere
--- Nils Jeppe wrote: > On Tue, 14 Jun 2005, Dave wrote: > > If I understand what you mean, then I don't think it's possible. However, if > you > > can find either: > > a) the appropriate registry key to modify > the way to do this is via > \HKEY_CLASSES_ROOT\Directory\Background\shellex\ContextMenuHandlers, but I > admit happily to being clueless about the windows registry :D So it can be done using shell extensions. These require a bit of COM programming, producing a .dll that needs to be registered. There are a number of issues: 1. This will only work on shell v4.71 and later apparently - but I don't know how that ties into versions of Windows. My MS compiler is a little stale (~v4), so: 2. Are necessary COM headers/templates are available for gcc? 3. And whether gcc would produce a compatible binary? Finally, 4. Is the extra context menu item worth the effort? I don't think I'll be able to get around to this for a while (if at all). For anyone that's interested, here's a link that describes what is required: http://www.codeproject.com/shell/ShellExtGuide1.asp Regards, Dave. __ Discover Yahoo! Use Yahoo! to plan a weekend, have fun online and more. Check it out! http://discover.yahoo.com/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Bug in chere
Brian Dessen wrote: >Jan Schormann wrote: >> in my context menu on folders, I have WinZip, WinRar, WinCvs, >> TortoiseSVN, WinAmp, Perforce, and WinMerge ... >> >> This is what WinAmp does and it looks rather simple: > >I haven't been following this thread very closely (and I don't know what >chere uses currently) but I use the following in association with >sysinternals' contig.exe to make it possible to right click on any file >or folder and have it run contig on it: Just to clarify: The methods above are the same as what chere uses. The particular request was to not to add a context menu to a given file type or folder, but to add an item to the context menu which appears when you right click the folder background (the menu with Arrange Icons, Lineup Icons and Customise This Folder). I didn't think it could be done, but Nils has identified a method to do this via COM. Thanks, Dave. __ Discover Yahoo! Use Yahoo! to plan a weekend, have fun online and more. Check it out! http://discover.yahoo.com/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
[ANNOUNCEMENT] Updated: chere-0.6-1
chere is a Cygwin package to manage Shell Here context menu functionality. This adds items to the Explorer Drive and Directory context menus. The named shell is started in the selected drive/directory when the menu item is chosen. New features: - New option -x to refresh all existing chere context menus - Added -v to display version Bug fixes - Open the correct folder when invoked in the RH explorer pane -- Dave Please report any bugs to the Cygwin mailing list, following the procedure in http://cygwin.com/problems.html. In addition you should attach the (verbatim) output of `chere -r`. To update your installation, click on the "Install Cygwin now" link on the http://cygwin.com/ web page. This downloads setup.exe to your system. Then, run setup and answer all of the questions. *** CYGWIN-ANNOUNCE UNSUBSCRIBE INFO *** If you want to unsubscribe from the cygwin-announce mailing list, look at the "List-Unsubscribe: " tag in the email header of this message. Send email to the address specified there. It will be in the format: [EMAIL PROTECTED] If you need more information on unsubscribing, start reading here: http://sources.redhat.com/lists.html#unsubscribe-simple Please read *all* of the information on unsubscribing that is available starting at the above URL. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
[ANNOUNCEMENT] New package: chere-0.3-1
chere is a new Cygwin package to manage the infamous Shell Here functionality. This adds items to the Explorer Drive and Directory context menus. The named shell is started in the selected drive/directory when the menu item is chosen. If, like me, you're paranoid about your Registry, chere can display what it would do rather than actually do it. It can also report what shells have been added to the context menus, and the associated keys. Finally, chere can remove any context menu items it has created. Please consult the inbuilt help for details on usage (chere -h). Known issues A preliminary version is also on the mirrors (0.2-1). Avoid it, and wait until you see 0.3-1. You may notice a window flash by as the shell starts. The passwd shell does what /etc/passwd tells it to. So make sure /etc/passwd is reasonable. When using the passwd shell, you may notice a spare sh in the Task Manager. This will close when you exit the terminal session. You must have Admin priveleges to install the context menus. The windows control panel uninstall will not work if you uninstall chere. If you are about to remove cygwin, uninstall the context menus first. Enjoy, -- Dave Please report any bugs to the Cygwin mailing list, following the procedure in http://cygwin.com/problems.html. In addition you should attach the (verbatim) output of `chere -r`. To update your installation, click on the "Install Cygwin now" link on the http://cygwin.com/ web page. This downloads setup.exe to your system. Then, run setup and answer all of the questions. *** CYGWIN-ANNOUNCE UNSUBSCRIBE INFO *** If you want to unsubscribe from the cygwin-announce mailing list, look at the "List-Unsubscribe: " tag in the email header of this message. Send email to the address specified there. It will be in the format: [EMAIL PROTECTED] If you need more information on unsubscribing, start reading here: http://sources.redhat.com/lists.html#unsubscribe-simple Please read *all* of the information on unsubscribing that is available starting at the above URL. ___ Do you Yahoo!? Declare Yourself - Register online to vote today! http://vote.yahoo.com -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: [ANNOUNCEMENT] New package: chere-0.3-1 (gold star)
> From: Igor Pechtchanski <[EMAIL PROTECTED]> > Subject: Re: [ANNOUNCEMENT] New package: chere-0.3-1 (gold star) > > On Tue, 12 Oct 2004, Andrew DeFaria wrote: > > > Dave Korn wrote: > > > > > > -Original Message- > > > > From: cygwin-owner On Behalf Of Igor Pechtchanski > > > > Sent: 12 October 2004 15:12 > > > > > > > On Tue, 12 Oct 2004, Christopher Faylor wrote: > > > > > > > > > On Tue, Oct 12, 2004 at 04:51:30AM -0500, Dave wrote: > > > > > > > > > > > chere is a new Cygwin package to manage the infamous Shell Here > > > > > > functionality. This adds items to the Explorer Drive and Directory > > > > > > context menus. The named shell is started in the selected > > > > > > drive/directory when the menu item is chosen. > > > > > > > > > > Can I get a gold star for this, please? I asked for a volunteer > > > > > but I never expected such a nice package, so thoroughly and > > > > > thoughtfully implemented. Appreciated. But annoyed I went and packaged the backup file. Thanks for sorting it out. > > > > > cgf > > > > > > > > Hear, hear. Done (though a last name for the star recepient > > > > would've been nice). Kilroy. > > But shouldn't it be named "shere"? :-) > > But it is! Try pronouncing it... > For those who can't read French, though, the name can be justified as > "Cygwin shell HERE". Personally I've been thinking 'See Here' or 'Sea Here'. Explorer. Bad pun. The alternative option was sphere (Shell Prompt Here). Not so Explorer related, but possibly amusing anyway. Dave. __ Do you Yahoo!? Yahoo! Mail - You care about security. So do we. http://promotions.yahoo.com/new_mail -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: tcsh and chere-0.3-1 (fwd)
>> From: Andrew Grimm >> >> On Wed, Oct 13, 2004 at 07:02:13PM -0400, Christopher Faylor wrote: >> >Actually, All shells which support -l seem to cd to the home directory. >> >I'm not sure what the -l adds to the above since the above code just >> >calls the shell again after cd'ing to the directory. >> >> I think the purpose of that is to ensure that ~/.login (or whatever) gets >> called to completely set up the shell's environment. Normal shells don't >> read in that file because they are assumed to inherit their environment >> from the base login shell. > cgf said: > Aha. I didn't know that this was something we were doing. Yup. The -l makes sure the shell started from explorer reads the startup scripts and sets its environment correctly. > If that is the case then maybe we could get some coordination going and > set a CYGWIN_CD_HERE environment variable or something and just have the > login shell cd to the right directory automatically with the help of > the /etc/* scripts. This would work. Except where the user specific rc scripts expect to be in the users home directory (which I think is buggy, but possible). >> >It almost seems like you could just use ash to invoke the real shell in >> >all cases. That would be faster. >> >> True, you could use any shell as the base login shell which exec's the >> desired shell. That has the benefit of always working. However, that >> approach will bypass the login-shell-specific config files for other shell >> types. For instance, "ash -" will load env vars from ~/.profile rather >> than ~/.login which a tcsh user is unlikely to have set up to produce >> identical results (for instance I like to put MANPATH in ~/.login but I >> don't have a ~/.profile at all). This would result in a "chere" shell >> which will not behave quite like the user's regular shells, which are >> spawned from a login shell of the same flavor. >> >> Actually that appears to be another bug in the script: chere should >> invoke ash as "ash -" to start an ash login shell (I haven't tested this >> though). I suspected both these shells might have problems. Was just hoping they had some undocumented behaviour (since the other shells are consistent). I also wasn't sure if the login behaviour did anything extra, so didn't just ruin the startup scripts. >> I think with most login shells the "cd $HOME" behavior is due to the way >> the scripts are written in /etc (for example Cygwin's /etc/csh.login). >> That is probably a good thing to have in the script, but it presents a >> difficulty for this unusual application. Thanks for the feedback. I'm not sure that having a non-login shell run the startup scripts is the correct thing to do. Mainly because you end up with a nasty command line checking whether files are available. And this won't work with the passwd runtime evaluation (is anyone using this? Or wanting to?) without even more nasty quoting. Having an env variable set for a startup script to cd to seems a nicer way to handle things. Just not sure if this will break user specific and non-login scripts. Should probably also enclose any cd behaviour in an "if [ `uname` == CYGWIN* ]" for people who like to share scripts between systems. Do the tcsh/ash maintainers have any suggestions/preferences? Does anyone know of a way to get a `-` at the start of $0? I believe this will force all the shells to start as login shells and is the most generic solution. Dave. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: chere problem with network-share handling ?
Haro said: > I seem to have problem with network-share path handling with chere. > When I start 'Zsh Here' from Explorer on network-share like > "//Server/share/dir/path", I get following error message on the first > line of zsh window: > cd: no such file or directory: /opt/Server/share/dir/path > > Does chere not support network-share yet? I've never tried it, but I would expect it to work. > d: 7518416 6715592802824 90% /opt Slightly concerned why zsh is trying to get to your d: instead of the share. Windows should be passing "//Server/share/dir/path" as %L (i.e. without the /opt). Is this a typo or what you are actually seeing? I'll have a go and see if I can reproduce the problem. In the meantime, if you really need this, try and mount the network share as a drive. That can be found in Tools/Map Network drive... in Explorer; don't know what that is in Japanese though :). Thanks for the report. Dave. __ Do you Yahoo!? Y! Messenger - Communicate in real time. Download now. http://messenger.yahoo.com -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: chere problem with network-share handling ?
OK, this appears to be an issue with quote processing. Here is a session, starting in a command prompt. - C:\>c:\cygwin\bin\bash -l -c "cd '\\minime\music'; exec /bin/bash" /bin/bash: line 1: cd: \minime\music: No such file or directory [EMAIL PROTECTED] ~ $ cd '\\minime\music' [EMAIL PROTECTED] //minime/music $ /bin/bash -l -c "cd '\\minime\music'; exec /bin/bash" /bin/bash: line 1: cd: \minime\music: No such file or directory [EMAIL PROTECTED] ~ $ cd "'\\minime\music'" bash: cd: '\minime\music': No such file or directory end First command shows behaviour of the full command as I would expect it to be evaluated from the shell menu. Response as reported. Second command shows that the bash shell can process the cd command correctly. Third command retries the full command from the bash shell, eliminating cmd/windows evaluations. Fourth command duplicates the double quoting used by the main command. To me this indicates that double '\' within ''' and '"' quotes are not preserved. Enclosing characters in single quotes preserves the literal value of each character within the quotes. A single quote may not occur between single quotes, even when preceded by a backslash. Enclosing characters in double quotes preserves the literal value of all characters within the quotes, with the exception of $, `, and \. The characters $ and ` retain their special meaning within double quotes. The backslash retains its special meaning only when followed by one of the following characters: $, `, ", \, or . A double quote may be quoted within double quotes by preceding it with a back- slash. >From this I would expect the double '\' to be preserved since it is within single quotes, whose special meaning is retained when within double quotes. It seems the double quote rules are overriding the single quote rules within the single quotes. Am I reading this right? Dave. __ Do you Yahoo!? Yahoo! Mail - Helps protect you from nasty viruses. http://promotions.yahoo.com/new_mail -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: tcsh and chere-0.3-1
--- Andrew Grimm <[EMAIL PROTECTED]> wrote: > Igor Pechtchanski said: > > > Does anyone know of a way to get a `-` at the start of $0? I believe > > > this will force all the shells to start as login shells and is the > > > most generic solution. > > > > Sure. 'bash -c "exec -l $PROG $ARGS"'. :-) > > Ya beat me to it :) Although, in the current design, this would make a > bash shell call a login shell call a normal shell (for the cd) which is a > bit of a quoting nightmare. > > You could make a support script (/bin/shere) that did somehting like this: Thanks guys. My brains been turned to slush reading all the different shell man pages (as you may have figured from my last few emails). It turns out that on windows 2k, if you remove the cd $HOME from the appropriate login script, you can just `/bin/tcsh -l`. Since 2k puts you in the appropriate path anyway. Nice. It even works with network paths. Can anyone confirm this works on 9x, NT and XP? If it does work on all platforms, it's my preferred route. It'll still need: an env var for the startup scripts to check a shell script (which may be chere) to set the variable And will mean you have a spare sh for every term opened in this manner. Dave. i.e. comment out the cd $HOME line, run something like: regtool set /HKLM/Directory/shell/cygwin_tcsh/command/ "c:\cygwin\bin\rxvt -e /bin/tcsh -l" Or just edit your registry and give the menu a spin. __ Do you Yahoo!? Yahoo! Mail - Helps protect you from nasty viruses. http://promotions.yahoo.com/new_mail -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: 7/12/2005 .. install doesn't work
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 You could also try a different mirror. They certainly aren't all at the same level of updates. Dave -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.0 (Cygwin) iD8DBQFC1BBGULP5ApZWlDMRAuofAJwJr6St5p968jPHPUZ8F/BFwRnKlQCdHChc 5sP5VAw1xZNf0iLjSuXgfrI= =7g/H -END PGP SIGNATURE- -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: 7/12/2005 .. install doesn't work
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I certainly hope so. The mirror I use, http://sources-redhat.mirror.redwire.net, is still back at version 5.3.0-6 of coreutils. Dave -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.0 (Cygwin) iD8DBQFC1BTIULP5ApZWlDMRAjMnAKCBtBYZPkT6Y7TzuKf9SEMhRjxBugCfe11C qfvxjpUtyhYeXhZSEamhY6o= =r/Po -END PGP SIGNATURE- -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Chere bug
I've cc'ed the cygwin mailing list - this is the normal forum for bug reports/problem solving for non-X cygwin apps. --- Dave Griffin wrote: > Just noticed that the version 0.6 of /usr/bin/chere for cygwin is slightly > flawed - you have a get_shell_from_pwd() function (line 237), but you > actually call to get_shell_from_passwd (line 824). Thanks for that. I'll get an update out shortly. > This prevented me from installing it initially, but I'm now getting an error > that "/bin/xhere: line 36: cygpath: command not found" (under windows XP > sp1) so I've probably got other issues of my own anyway. cygpath is normally installed by the same package that installs the cygwin.dll. Check if it's in /bin, and whether your path includes /bin. Also see if common utilities like ls work. If you still have problems, please submit the output of cygcheck -svr to the list, with as much detail on the problem as you can provide. See http://cygwin.com/problems.html for guidelines/advice. Regards, Dave. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
[ANNOUNCEMENT] Updated: chere-0.6-3
chere is a Cygwin package to manage the cygwin shell context menus. This adds items to the Explorer Drive and Directory context menus. The named shell is started in the selected drive/directory when the menu item is chosen. Please consult the inbuilt help for details on usage (chere -h). Fixes - 1. Fix broken script, reported in http://cygwin.com/ml/cygwin//2005-08/msg00405.html 2. Remove requirement to have /bin in the windows path, reported in http://cygwin.com/ml/cyygwin/2005-08/msg00421.html -- Dave Please report any bugs to the Cygwin mailing list, following the procedure in http://cygwin.com/problems.html. In addition you should attach the (verbatim) output of `chere -r`. To update your installation, click on the "Install Cygwin now" link on the http://cygwin.com/ web page. This downloads setup.exe to your system. Then, run setup and answer all of the questions. *** CYGWIN-ANNOUNCE UNSUBSCRIBE INFO *** If you want to unsubscribe from the cygwin-announce mailing list, look at the "List-Unsubscribe: " tag in the email header of this message. Send email to the address specified there. It will be in the format: [EMAIL PROTECTED] If you need more information on unsubscribing, start reading here: http://sources.redhat.com/lists.html#unsubscribe-simple Please read *all* of the information on unsubscribing that is available starting at the above URL. Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hs -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
[ANNOUNCEMENT] Updated chere-0.7-1
The chere package has been updated. This version fixes a bug when removing context menu items, and makes the context menu items a little bit more explicit. chere is a tool to manage context menu items for starting shells from Windows Explorer. See the man page for detailed instructions. Dave --- If you have questions or comments, please send them to the Cygwin mailing list at: cygwin@cygwin.com . *** CYGWIN-ANNOUNCE UNSUBSCRIBE INFO *** If you want to unsubscribe from the cygwin-announce mailing list, look at the "List-Unsubscribe: " tag in the email header of this message. Send email to the address specified there. It will be in the format: [EMAIL PROTECTED] If you need more information on unsubscribing, start reading here: http://sources.redhat.com/lists.html#unsubscribe-simple Please read *all* of the information on unsubscribing that is available starting at this URL. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: "Bash Here..." menu option "howto" reg-entry
Linda Walsh wrote: > Hugh McMaster wrote: >> On 11/11/06, Linda Walsh wrote: >>> After some time debugging I figured out a way to add a prompt option >>> >>> to the right-click menu on directories and drives that works for >>> my alternate drives and network directories. I think it should be >>> able to be generalized for other shells, but I use "Bash". >>> >>> The reg-entry for directories is: >>> REGEDIT4 >>> >>> >>> Advantages over other known methods: >>> >>> 1) no external programs required; >>> 2) no "stacked" shell processes left in process table >>> >>> Maybe the registry entries could go in a Cygwin FAQ entry? >> Just a quick note. In the setup programme, there is an option to have >> 'Open Bash Prompt Here' context menu added to the right-click menu. Clarification: Setup provides the option to install the package chere, which you can run at your leisure to add the context menus. As far as I am aware the standard setup.exe has not been modified to do this automatically (or with checkboxes). Seeing as chere is not in the base packages (yet), this wouldn't work for all users. > Yes...it requires installing a separate executable program. Clarification: chere only uses scripts. > This "add bash prompt" requires no 3rd party binary and > uses programs already included in the cygwin base package. As far as I am aware, this is also the case with chere. > The installable program also has a bug in that it invokes each > shell window as a separate user login, breaking the normal > windowing paradigm of one login (starting an X-server, for > example), followed by multiple client windows (that don't get > started as login windows). True. I feel that it is more important to provide a full posix environment than attempt to provide a cut down one. That said I have a program in the works to provide a single parent login shell to spwan everything from. Whether chere is updated to use it or not... > Why install extra programs when it can all be done by adding > 2 registry keys (1 for directories, 1 for drives)? chere can do the plain registry thing as well. Just pass it the -1 option. This does lead to breakage with particular shells (pdksh, ash IIRC) and network paths, as documented. If you search the archives, you will find a number of recipes for REGEDIT files which do similar things, and semi-automated ways of generating those files. There's also lots of discussion of the merits of the different ways of doing things. IMHO, if chere is not sufficient for somebodies needs searching the mailing list (where they wil now also see your solution) seems a reasonable course of action (as this is now a not-so-FAQ). Of course, if you'd like to propose a patch to chere which makes it do what you think it should, I will be happy to consider it. Regards, Dave Kilroy chere maintainer -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Mapping windows drives in cygwin?
Kevin Markle wrote: [EMAIL PROTECTED] ~ $ net use y: winops-hq\c$ System error 67 has occurred. The network name cannot be found. You meant to do: net use y: winops-hq\\c$ i.e. you forgot the escape the single backslash. Alternatively, as someone mentioned earlier, you can do: net use y: '\\winops-hq\c$' Dave. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Problem with setup.exe - C:\cygwin\bin\* isn't created
Dave Korn wrote: > On 30 May 2007 11:08, Thorsten Kampe wrote: >> * Jean-Pierre Bogler (Wed, 30 May 2007 07:16:42 +0200) >>> The download process worked well an the installation began. After the >>> installation I decided to add a desktop icon and double clicked on it. >>> The dos box told me that it can't change the directory und can't find >>> bash.exe :(, so I looked into the C:\cygwin directory. >>> >>> The only installed directories are: etc, lib, sbin, usr, var. And the >>> files: cygwin.bat and cygwin.ico. There is no bin directory! >>> The setup.log file is full of the complaining listed below (... means that >>> the message above appears more than once). >>> > Yes, but that's very far from an explanation of just how on earth the bin > directory got installed in such an unexpected place, particularly when all > the other directories ended up in the correct location. I've seen this before. To reproduce: 1. Install cygwin to some directory, say "c:\bizarro_path". 2. Optionally uninstall cygwin. 3. Install cygwin to another directory, "c:\cygwin" The first install set up your /bin mount to point to "c:\bizarro_path\bin". During the second install setup.exe places almost everything in c:\cygwin. However the contents of /bin go to the existing mount point at "c:\bizarro_path\bin". This is necessary so cygwin updates work when you've mounted bin somewhere non-standard. Specifically, when this problem happens cygwin.bat tries to run bash in c:\cygwin\bin\bash.exe which is not there. Simple enough to fix, just clear you mounts and reinstall. c:\bizarro_path\bin\umount -a (IIRC) I was thinking of submitting a patch to setup to warn users of /bin being in a non-standard location relative to the install path, but reasoned this is: a) not a very frequent occurence b) usually the user trying to do something strange* Regards, DaveK2. * Having multiple cygwins scattered about the place, and in some cases running them concurrently. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: [ANNOUNCEMENT] New package: brltty 3.8
Brian Dessent wrote: > Samuel Thibault wrote: >> Mmm, because for a blind person this is a very basic package? > > Perhaps, but that doesn't mean that most Cygwin users are blind. Last I heard, setup.exe was not particularly friendly wrt screen readers (cf. package selection). Hence the visually impaired would have difficulty selecting brltty for installation. In addition to installation brltty also needs an amount of configuration to select the type of terminal to use, and for the daemon to be started. Despite the latter I would suggest that (at least the non-X bit of) brltty should be kept in Base to make things simpler for those who need it. At least until we get that revamped setup.exe :) Regards, DaveK2. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: using chere
Lewis Hyatt wrote: > Is this supposed to work? I tried this: > > chere -iam1 -s bash -t xterm > > and this: > > chere -iam2 -s bash -t xterm > > In both cases, the shell extension is installed as expected, but when I > click on "Bash prompt here", nothing happens. It is supposed to work. That said I don't use X myself, so haven't explicitly tested this. Using xterm does require that the x server is already running before xterm is invoked. What happens if you run the following command from a cmd prompt: xterm -e /bin/bash -l If you don't want to run an xserver, try rxvt instead: chere -iam2 -s bash -t rxvt Regards, Dave chere maintainer -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: using chere
Lewis Hyatt wrote: >> What happens if you run the following command from a cmd prompt: >> >> xterm -e /bin/bash -l > > The latter command works fine if I type it from an xterm, but it doesn't > work if I type it from a bash CMD window. (Nothing happens). I am always > running the X server. Thanks for your help! I attached cygcheck -svr if > that is relevant. At a guess, do you need to make sure the DISPLAY environment variable is set for the xterm to find the server? You have it set in your cygcheck output, but you clearly produced that within an xterm which will have the variable set. If that's the case DISPLAY will need to be set in the users Windows environment for chere to start xterms. Regards, Dave. chere maintainer -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: using chere
Lewis Hyatt wrote: > Lewis Hyatt wrote: > >> OK, one last thing, sorry. I did something wrong with the last test. >> If I add c:\cygwin\bin and c:\cygwin\usr\X11R6\bin to the Windows PATH >> variable, then chere does work to open up an xterm! >> >> So I guess the only question is: is there any way to avoid this >> requirement? It would be helpful for me if I didn't have to add these >> to the path. I'm not sure how chere is implemented, but could it just >> set these variables before calling the xterm? Thanks again. > > > Continuing this barrage of replies to myself... I was able to make this > work the way I want. I just modified the registry keys myself, following > the output of chere -p, and replaced > > c:\cygwin\bin\run.exe > > with > > c:\cygwin\bin\run.exe -p c:\cygwin\bin -p c:\cygwin\usr\X11R6\bin > > I wonder if this might be useful enough to become the default behavior? > Presumably chere is already able to detection the location of the cygwin > directory, since it finds run.exe... Thanks for chasing this down. Looks like I'm going to have do a bit of testing to confirm an appropriate solution for starting xterm. Regards, Dave. chere maintainer -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: using chere
Paul Mallas wrote: > Since we are on the topic - is there a way to do something similar > inside an open windows folder rather than from the folder icon? I would > find that much more convenient. This came up two years ago. Follow the thread from about here: <http://www.cygwin.com/ml/cygwin/2005-06/msg00599.html> I haven't spent any further time on it, but will welcome any contributions :) Regards, Dave. chere maintainer -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Problem with setup.exe
David Kastrup wrote: > cuicui <[EMAIL PROTECTED]> writes: > >> David Kastrup a écrit : >>> quite a nuisance. Is there any way to tell setup.exe what else to >>> install when it _is_ already cached? >> >> Just add a "virtual" package in your setup.ini in the "Base" category >> that depends on the packages you need. >> >> Be careful, the setup.ini is erased with a fresh one each time you >> launch "install from internet". > > If it will get overwritten when installing from internet, there would > not seem to be much of a problem, right? Put your small setup.ini listing the virtual package on a server with an empty tarball. Then point setup to the server whenever you update. Don't forget to can point it at multiple servers. If you're just creating an install from disk/CD, you can leave the setup.ini and empty tarball in a subdirectory of the main package cache directory, it won't be overwritten by any update and the default selection will be enforced. packages/ packages/setup.exe packages/setup.ini << downloaded by setup packages/custom/ packages/custom/setup.ini << contains virtual packages/custom/virtual-0.tar.bz2 packages/release/ ... Dave. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: vista rsh problem
goetz fischer wrote: > Corinna Vinschen wrote: >> On Jul 9 19:10, goetz fischer wrote: >>> i have vista with cygwin (current snap) and the command 'rsh >>> ' causes the prompt to hang forever. >>> it works with cygwin on xp so it should be a vista issue. >>> i posted the server info already some days ago as well as the >>> cygcheck output. >> >> You're telling that you tested this on XP for the first time now. > well i used the rsh server with about 8 different platforms and it > worked with all but vista/cygwin. >> You didn't mentioned the server OS anywhere in this thread. > i did. look again. In the interests of preventing this thread degenerating further, I've looked. Can you please point to the message in the archives? * You've only stated that the server is non-cygwin, not linux, and implied that it is a 'real' unix box. You have stated that rsh is running on vista. >> We only know >> it's not Cygwin and it's not Linux but some sort of "real" unix(*) which >> apparently doesn't use PAM. You didn't tell if you tried anything to >> diagnose the problem further. > i did. i've send the cygcheck output with my first mail. The first mail did indeed have cygcheck output. But you have not been particularly forthcoming about the server OS, or about what you have done to try and diagnose the problem... >> You did not mention if you ever tested it >> in other scenarios, like a Cygwin -> Linux or a Cygwin -> Cygwin >> connection or between XP->Vista and Vista->XP, etc. > well as i wrote the server is always the same and it worked with > whatever i tried except vista/cygwin You say you tested 'about 8 different platforms'. Can you clarify exactly which? For all we know you've tested cygwin/95, cygwin/98, cygwin/NT, cygwin/ME, cygwin/XP Home cygwin/XP Professional, cygwin/2000, cygwin/vista. I suspect you mean that you've 'tested' the server with a few non-cygwin rsh's as well. Can you test with a different server? >> You didn't reply to >> Dave's question about any specific software on the Vista machine. >> > yes, i did. Can you please point to the message in the archives? * >> There's just the bare fact "it hangs in this one instance". Do you >> really think a bug report is useful with all that guesswork left? >> > see above. > not my fault if you missed so much. You're not doing yourself any favors here. Please just (re)state the information you're being asked for. >> Apart from that, I have only Cygwin and Linux ready for testing and >> debugging. If you use any other OS, you will have to debug this problem >> by yourself. > okay, how? > i don't get any kind of output at all Verify you are running the rsh you think you are with 'which rsh'. You could strace the command and look for problems. 'strace rsh ' Are there logs to look at? Can logging be enabled? Both on server and client. Test against a cygwin or Linux server to verify that it is not a particular setting on your vista box. If the problem still manifests and you can provide enough information on your setup, Corinna may be to do something to replicate the problem. May I suggest you reread the thread as preserved in the archives*. That is what the list has seen, and it appears we have less information than what you think you have provided. Even if the information is all there, I think it is still worth summarizing it all in a single email. Dave. * This thread can be found in the archive at <http://cygwin.com/ml/cygwin/2007-07/threads.html> -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Setup.exe 1.5.24-2
Chip Skipowski wrote: > I'm trying to run Setup.exe 1.5.24-2 on a freshly patched XP SP2 system. The > only non-default settings I use during setup are to tell it the download > source > is "Install from Local Directory" and then I configure the Local Package > Directory to be a directory (currently empty) on my hard drive. As soon as I > specify the Local Package directory and click "Next", Setup.exe crashes. > > Ideas on a fix? In order to "Install from Local Directory" you need a copy of all of the packages you intend to install. This is typically obtained by the "Download from Internet" option, but the packages are also retained when you "Install from Internet". Solution: Choose Install from Internet instead. If setup.exe is crashing on an empty package directory, this is a bug that ought to be fixed. A version for setup.exe would be nice (it's on the first dialog), just to confirm that this is with the latest version - 1.5.24-2 is the current cygwin1.dll version. Regards, Dave. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Passing arguments to rxvt when it is used as an argument for chere
Marco Atzeri wrote: > --- Richard Toy ha scritto: >> I see from this post >> >> http://www.cygwin.com/ml/cygwin/2007-06/msg00465.html >> that somebody >> appears to have passed some arguments to rxvt when >> it is used as an >> argument for chere. >> >> Is this possible to do this by invoking chere in >> some way or is it >> necessary to edit the Windows registry to pass >> arguments? > two solutions on my mind: > > 1) run chere as usual and use regedit to modify > only the command. (this is how I did it) > > 2) run chere with -p and use the output as base > for a script. > chere -i -p -t rxvt -s bash Yep those are the two ways to do it. There's no way to specify extra arguments on the chere command line that will be appended to the invocation command. May I ask what command line options you're thinking of adding? Could they go into .Xdefaults instead? Most rxvt and xterm options can. Dave. chere maintainer. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Passing arguments to rxvt when it is used as an argument for chere
> On Wed, 19 Sep 2007, Brian Mathis wrote: >> On 9/19/07, Richard Toy <[EMAIL PROTECTED]> wrote: >>> I don't tend to run an xserver so rxvt runs in native mode when >>> invoked via chere. >>> >>> All was working ok but then an issue described here >>> http://cygwin.com/ml/cygwin/2007-09/msg00359.html occurred so I needed >>> some was to make the chere invoked rxvt appear with the correct font. >>> >>> I solved it with a bit of sed: - >>> >> In native mode, rxvt still uses the .Xdefaults file to read settings. That's the recommended solution for this particular problem. Igor Peshansky wrote: > The .Xdefaults solution will affect all instances of rxvt, not just the > one spawned by chere. Yep, I've been aware of that for a while - which is why I asked what the OP was trying solve. I've just been a bit slow updating chere since there haven't been many specific requests/problem reports for it. Anyway, I'll bump this up my priority list. Dave. chere maintainer -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
[ANNOUNCEMENT] Updated chere-1.0-1
A new release of chere, 1.0-1, has been uploaded, replacing version 0.8-1 as the current version. NEWS: This release adds the ability to specify extra arguments to be passed to the terminal, as suggested at <http://cygwin.com/ml/cygwin/2007-09/msg00475.html>. In particular this feature allows the user to specify a named resource set for the terminal to use. DESCRIPTION: === chere manages Shell Prompt Here Explorer context menus for cygwin shells and terminals. PROBLEMS: If you encounter a problem with chere, please report it to the cygwin mailing list. In addition to the usual reporting guidelines at <http://cygwin.com/problems.html> please include the output of chere -r Regards, Dave --- CYGWIN-ANNOUNCE UNSUBSCRIBE INFO: = To unsubscribe to the cygwin-announce mailing list, look at the "List-Unsubscribe: " tag in the email header of this message. Send email to the address specified there. It will be in the format: [EMAIL PROTECTED] If you need more information on unsubscribing, start reading here: http://sources.redhat.com/lists.html#unsubscribe-simple Please read *all* of the information on unsubscribing that is available starting at this URL. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: "Unable to access jarfile" when using full path of JAR
Dan Garrette wrote: > I'm having a problem running JAR files in cygwin. > > If I attempt to call a JAR file using its relative path, then it works fine: > > But, if I attempt to call a JAR file using its full path, the file no > longer seems visible: > > $ pwd > /usr/local/bin > $ java -jar /usr/local/bin/malt-1.0.1/malt.jar > Unable to access jarfile /usr/local/bin/malt-1.0.1/malt.jar The java executable is not cygwin aware, so in both DOS and cygwin environments you need to use windows paths. You can use cygpath to do the translation if necessary. $ java -jar `cygpath -m /usr/local/bin/malt-1.0.1/malt.jar` > It works just fine in DOS: > > D:\>java -jar c:\cygwin\usr\local\bin\malt-1.0.1\malt.jar > As expected. Dave. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Suggestions for 'chere' package
Da Idiocrat wrote: > I downloaded chere since I wanted to get an "Open Bash Here" menu item to > make things easier, but uninstalled it because it didn't work out for me. Sorry to hear that. > I was wondering if there was any way to get chere to add an entry to the > context menu when you right-click the BACKGROUND of Windows Explorer so that > I don't have to go to the parent folder just to open Cygwin shell in the > folder I want? Maybe I missed an option or something? I know it's not > important but it really annoyed me... Please see the thread Paul Mallas identified. There is also an older thread discussing this (2006ish). > So I uninstalled chere-1.0.1 and I had to make a .reg file to add this > functionality instead, but I'm just wondering if there is a way to do it in > chere instead, since I don't like messing around in the registry myself. I'd be interested in hearing the advantage of your .reg files over the chere script, and how it accomplishes it. The scripts should be able to duplicate anything that a .reg file does. Thanks, Dave. chere maintainer. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: 1.7.1: Does 'chere' work with Vista 64b? Can't tell by me.
Larry Hall (Cygwin) wrote: > On 12/28/2009 06:23 PM, Lee D. Rothstein wrote: >> Larry Hall (Cygwin) wrote: >>> Lee D. Rothstein wrote: >>>> Are you running Vista 64bit? If not, I suspect the registry keys set in >>>> Vista 64 are not correct as set by 'chere'. >>> No, actually I'm not, so if you're sure it's a Vista 64bit thing, then >>> that narrows the focus and those affected. The closest I have is >>> Windows 7 x64 but I can't experiment at the moment with it since >>> it requires a reboot. >> I had no problems with Vista 32 bit, that's my only evidence. > > OK, I've installed Cygwin 1.7.1 on a Windows 7 x64 system. The > system didn't have a previous version of Cygwin. I installed just > the default packages plus "chere". Once the installation was done, > I invoked 'chere -i' from a command prompt started as Administrator > and running 'bash -li'. The configuration of "chere" succeeded > and I found "Bash Prompt Here" was available in the context menu > for directories. I find the same is true on Windows 7 x86. So I > guess this isn't allot of help beyond the information that this does > work on systems running Windows 7. Perhaps someone with Vista > x64 will be able to answer your original question. It's been a while since I've had to look at chere. Bottom line - there haven't been any previous reports of failures on Vista 64 bit (and I don't have a 64-bit system available to me). Can you provide the output of `chere -r`, and the chere command you've run most recently. That'll allow me to diagnose what it's tried to do. Also, do you know where the " Shell defaulting to bash defined for lr" is coming from? Cheers, Dave chere maintainer. -- 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
Re: [Patch] chere-1.1-1: fix uninstall from Control Panel
Christian Franke wrote: > Uninstalling a chere item from Control Panel does not work if > C:\cygwin\bin is not in Windows default PATH. > The attached patch fixes this. Thanks, I'll apply this. I'm wondering whether I should just nuke that option... Regards, Dave. chere maintainer. -- 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