Re: bash -c '$COMSPEC' # worked sometime b4 cygwin 1.5.24-2

2008-08-28 Thread Larry Hall (Cygwin)
Tom Rodman wrote: On Thu 8/28/08 22:38 +0200 Reini Urban wrote: Larry Hall (Cygwin) schrieb: There hasn't been any effort to support Windows paths in Cygwin for a long time. That doesn't mean it wouldn't have worked sometime in the past. it worked in cygwin 1.5.19-4 A nice long ride it h

Re: bash -c '$COMSPEC' # worked sometime b4 cygwin 1.5.24-2

2008-08-28 Thread Tom Rodman
On Thu 8/28/08 22:38 +0200 Reini Urban wrote: > Larry Hall (Cygwin) schrieb: > > There hasn't been any effort to support Windows paths in Cygwin for a long > > time. That doesn't mean it wouldn't have worked sometime in the past. it worked in cygwin 1.5.19-4 > > It's just that doing so is not

Re: bash -c '$COMSPEC' # worked sometime b4 cygwin 1.5.24-2

2008-08-28 Thread Reini Urban
Larry Hall (Cygwin) schrieb: There hasn't been any effort to support Windows paths in Cygwin for a long time. That doesn't mean it wouldn't have worked sometime in the past. It's just that doing so is not a goal of this project. Use the POSIX form of the path and will work nicely for you -

Re: bash -c '$COMSPEC' # worked sometime b4 cygwin 1.5.24-2

2008-08-24 Thread Larry Hall (Cygwin)
Tom Rodman wrote: Greetings: ~ $ date;cygcheck -c cygwin Sun Aug 24 11:37:36 CDT 2008 Cygwin Package Information Package VersionStatus cygwin 1.5.25-15 OK ~ $ "$COMSPEC" -bash: D:\WINNT\system32\cmd.exe: command not found ~ $ ls -l "$COMSPE

Re: Bash -c without exiting

2007-09-26 Thread Warren Young
patrickinminneapolis wrote: I modified Cygwin.bat to the following, bash --login -i -c 'cd /cygdrive/c && exec bash' and it still exits. I think you can get the effect you want by changing your home directory in /etc/passwd to /cygdrive/c -- Unsubscribe info: http://cygwin.com/ml/#unsu

RE: Bash -c without exiting

2007-09-26 Thread Dave Korn
On 26 September 2007 15:09, patrickinminneapolis wrote: > I modified Cygwin.bat to the following, > bash --login -i -c 'cd /cygdrive/c && exec bash' > and it still exits. Use double quotes; this batch file is parsed by cmd.exe, which doesn't recognize single quotes, but it does recognise the '&

Re: Bash -c without exiting

2007-09-26 Thread patrickinminneapolis
I modified Cygwin.bat to the following, bash --login -i -c 'cd /cygdrive/c && exec bash' and it still exits. -- View this message in context: http://www.nabble.com/Bash--c-without-exiting-tf4518164.html#a12901775 Sent from the Cygwin Users mailing list archive at Nabble.com. -- Unsubscrib

Re: Bash -c without exiting

2007-09-25 Thread Igor Peshansky
On Tue, 25 Sep 2007, patrickinminneapolis wrote: > I'd like to drop to the current directory like this, > > bash --login -i -c 'Drop to current directory' > > without exiting cygwin. Thanks. Not Cygwin-specific. Try bash --login -i -c 'cd /tmp && exec bash' HTH, Igor --

RE: bash -c behavior

2006-02-28 Thread Dave Korn
On 28 February 2006 03:04, Igor Peshansky wrote: > On Mon, 27 Feb 2006, Poor Yorick wrote: > >> Greetings, Cygwin users, >> >> From a terminal: >> >> [EMAIL PROTECTED] ~yorickp1 21:43:48 >> $bash -c "echo $1" yada >> >> [EMAIL PROTECTED] ~yorickp1 21:43:52 >> $bash -c "echo $*" bri

Re: bash -c behavior

2006-02-27 Thread Igor Peshansky
On Mon, 27 Feb 2006, Poor Yorick wrote: Greetings, Cygwin users, From a terminal: [EMAIL PROTECTED] ~yorickp1 21:43:48 $bash -c "echo $1" yada [EMAIL PROTECTED] ~yorickp1 21:43:52 $bash -c "echo $*" bright sunshiny day [EMAIL PROTECTED] ~yorickp1 21:45:54 Shouldn't I have

Re: bash -c error

2006-01-10 Thread Krzysztof Duleba
Eric Blake wrote This was just a minimal test case. $ bash -c time ls Segmentation fault (core dumped) That is equivalent to 'bash -c time', except that $0 is set to "ls" instead of "bash" or "time" for the duration of the command Oh, I wasn't aware of that. Thanks for explanation. Krzyszt

Re: bash -c error

2006-01-10 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Krzysztof Duleba on 1/10/2006 7:14 AM: > > This was just a minimal test case. > > $ bash -c time ls > Segmentation fault (core dumped) That is equivalent to 'bash -c time', except that $0 is set to "ls" instead of "bash" or "time" for t

Re: bash -c error

2006-01-10 Thread Brian Dessent
Krzysztof Duleba wrote: > > near future. In the meantime, avoid invalid uses of time (POSIX states > > that time takes a mandatory argument of the utility name to run; the > > bash > > extension of letting time take no arguments was the culprit here). > > This was just a minimal test case. I th

Re: bash -c error

2006-01-10 Thread Krzysztof Duleba
Eric Blake Thanks for the backtrace. I'll see about rolling a bash 3.0-15 in the near future. In the meantime, avoid invalid uses of time (POSIX states that time takes a mandatory argument of the utility name to run; the bash extension of letting time take no arguments was the culprit here).

Re: bash -c error

2006-01-10 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Brian Dessent on 1/9/2006 10:29 AM: > >>$ bash -c time >>Segmentation fault (core dumped) >> > > This looks like a bash bug. It looks like only 3.0 is affected, as it works > fine in 3.1. Since 'time' is a builtin, it appears to be a b

Re: bash -c error

2006-01-10 Thread Krzysztof Duleba
Dave Korn wrote: Just try running 'time' from the bash prompt. You get a SEGV from strlen AFAICT. No, I don't. But I do get a strange behaviour with time for ((i=0;i<=100++)) do :; done It works fine if you fix the bug :) I know, which is even more amusing. Krzysztof Duleba --

RE: bash -c error

2006-01-10 Thread Dave Korn
Krzysztof Duleba wrote: > Christopher Faylor wrote: > >>> $ bash -c time >>> Segmentation fault (core dumped) >>> >>> $ uname -a >>> CYGWIN_NT-5.1 DULI2 1.5.19s(0.141/4/2) 20051020 10:37:08 i686 unknown >>> unknown Cygwin >>> >>> Reproduced on several machines. I wonder what can it be. >> >> J

Re: bash -c error

2006-01-10 Thread Krzysztof Duleba
Christopher Faylor wrote: $ bash -c time Segmentation fault (core dumped) $ uname -a CYGWIN_NT-5.1 DULI2 1.5.19s(0.141/4/2) 20051020 10:37:08 i686 unknown unknown Cygwin Reproduced on several machines. I wonder what can it be. Just try running 'time' from the bash prompt. You get a SEGV fro

Re: bash -c error

2006-01-09 Thread Brian Dessent
Krzysztof Duleba wrote: > $ bash -c time > Segmentation fault (core dumped) > > $ uname -a > CYGWIN_NT-5.1 DULI2 1.5.19s(0.141/4/2) 20051020 10:37:08 i686 unknown > unknown Cygwin This looks like a bash bug. It looks like only 3.0 is affected, as it works fine in 3.1. Since 'time' is a builtin

Re: bash -c error

2006-01-09 Thread Cliff Stanford
Christopher Faylor wrote: > Just try running 'time' from the bash prompt. You get a SEGV from strlen > AFAICT. > > This doesn't seem to have anything to do with "-c". It seems to be an > issue with the time command. Not my experience: [EMAIL PROTECTED] ~ $ time real0m0.000s user0m0.0

Re: bash -c error

2006-01-09 Thread Christopher Faylor
On Mon, Jan 09, 2006 at 05:13:54PM +0100, Krzysztof Duleba wrote: >$ bash -c time >Segmentation fault (core dumped) > >$ uname -a >CYGWIN_NT-5.1 DULI2 1.5.19s(0.141/4/2) 20051020 10:37:08 i686 unknown >unknown Cygwin > >Reproduced on several machines. I wonder what can it be. Just try running 'ti

RE: bash -c

2002-10-20 Thread Scott Prive
> >Chris F.: Please do write that book! > > I'm negotiating as fast as I can. :-) > > cgf Would it help if everyone politely asked the potential publisher "when" they'll ever have a Cygwin book? ;-) -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http

Re: bash -c

2002-10-20 Thread Christopher Faylor
On Sun, Oct 20, 2002 at 03:10:45PM -0400, Scott Prive wrote: >> >Chris F.: Please do write that book! >>I'm negotiating as fast as I can. :-) > >Would it help if everyone politely asked the potential publisher "when" >they'll ever have a Cygwin book? :-) So far, I think everyone is convinced. I

Re: bash -c

2002-10-20 Thread Christopher Faylor
On Sun, Oct 20, 2002 at 08:55:53AM -0700, Randall R Schulz wrote: >I'm not completely well-versed on this detail, but I'm under the impression >that the interpretation of "*" is different when a Cygwin command is >invoked directly from a Windows CMD.exe. (In a fully Cygwin context, the >shell it

Re: bash -c

2002-10-20 Thread Randall R Schulz
G, At 08:37 2002-10-20, g frances wrote: Hi, I'm new to cygwin and have a simple question. Tried to find the answer on the mailing list search archive, but no luck. I've just downloaded the lastest version of Cygwin on Windows 2000 Professional, SP2. When trying to invoke a command at the N