Re: Problem with cd in Cygwin scripts

2006-12-07 Thread Jim Easton
Hi, Wed, 06 Dec 2006 David Bishop wrote: > #!/bin/sh > # > rm -f putfile > echo "put supernova.html" > putfile > # Check the sn2006 directory > cd sn2006 > down=0 > . > cd ../sn2005 > > Manually, all of these cd commands work, but when I put them in a script > I only get errors. I run the s

Re: CASE error in script file

2006-11-09 Thread Jim Easton
oping to learn something. It's no wonder I couldn't find the ignrc option - it doesn't exist in my version. :-) Also, as per Larry Hall, it hurls on linux, solaris and I didn't try any others. Thanks again. Jim Easton -- Unsubscribe info: http://cy

Re: CASE error in script file

2006-11-08 Thread Jim Easton
version of cygwin; CYGWIN_NT-5.1 1.5.19(0.150/4/2) 2006-01-20 13:28 and so presumably an earlier version of bash GNU bash, version 3.00.16(14)-release (i686-pc-cygwin) Is there a bash variable that controls such behaviour (I can't find one) or was there an upgrade in the int

Re: Piping to the 'read' command

2006-10-29 Thread Jim Easton
Hi, Fri, 27 Oct 2006 Eric Blake wrote: > According to Jim Easton on 10/27/2006 1:43 AM: > > This suggests to me that it is executing that read in a subshell that > > can't pass the variable back to its parent. This dispite the fact that > > it appears to be the same pr

Re: Piping to the 'read' command

2006-10-27 Thread Jim Easton
d with a "$" rather than a ">". Futhermore, VAR2 is unknown after the closing "}". I get the same result if the commands are in a script (See below) and on cygwin, solaris and linux. This suggests to me that it is executing that read in a subshell that can'

Re: tr command suddenly behaves differently

2006-09-24 Thread Jim Easton
Hi, > According to Logu on 9/23/2006 4:46 AM: > > After analysing I found that the tr command did not work correctly. So > > the command > > $ /usr/bin/tr [:upper:] [:lower:] Sat, 23 Sep 2006 Eric Blake wrote > There's your problem. You didn't quote properly. Try: > $ echo [:upper:] [:lower:] >

Re: Problem when using variable assignment, backticks in shell script

2006-08-31 Thread Jim Easton
Hi, Mon, 28 Aug 2006 Russell Silva wrote: > I am having a problem using Cygwin, variable assignment, and backticks > when shell scripting. Occasionally, variables assigned using a > backticked expression are not properly assigned; they are left empty. > The problem appears to be non-deterministic

Re: grep and words

2006-07-13 Thread Jim Easton
Hi, Guy Przytula wrote: > > another question from newbie .. > > is it possible with grep to select only the rows where the second word > > applies, because the pattern can occur at different places like : > > row 1 : zzz > > row 2 : zzz > > I need only the row where word 2 = yy

Re: directories via. cygwin/windows

2006-07-12 Thread Jim Easton
Hi All, Yesterday I wrote: > > Could someone please explain to me what is going on or direct me > > to documentation that would explain it or perhaps to a more > > appropriate list. "Thank you" to everyone who responded my question. It gives me a lot to investigate - it will take me a while. :

directories via. cygwin/windows

2006-07-11 Thread Jim Easton
Dear All, Could someone please explain to me what is going on or direct me to documentation that would explain it or perhaps to a more appropriate list. If I cd to: /cygdrive/c/Documents and Settings/jim/Local Settings/Temporary Internet Files ls shows: Content.IE5 Content.MSO desktop.ini Wher

RE: Using du.exe to calculate disk usage on a Microsoft cluster server

2006-07-08 Thread Jim Easton
Hi, On Fri, 07 Jul 2006 Will Beldman wrote: > 1. I have explained how I got long filenames (From another message): > "I don't own the files. One example is 259 characters long. They are > caused by users who have chosen to name their files the same thing as > the first sentence of their MS Word

Re: setup - duplicating cygwin

2006-06-20 Thread Jim Easton
Hi Corinna, > On Jun 20 02:58, Jim Easton wrote: > > Question: is /proc implemented and I just haven't figured out how to > > install it? > > Did you try > > $ cd /proc > $ ls -l > > before asking? Oh Dear! I tried: cd /cygdrive/c/cygwin cd pro

Re: setup - duplicating cygwin

2006-06-20 Thread Jim Easton
Hi Igor, > > Tell me; In case things go wrong, to recover my present configuration > > is it sufficient to simply restore /cygdrive/c/cygwin and > > /cygdrive/c/cygwin.disk or is there something more subtle going on. > > If you didn't change the mounts, it should be sufficient to restore > c:\cyg

Re: setup - duplicating cygwin

2006-06-19 Thread Jim Easton
Hi Igor > > 1) using windows read "installed.db" into "my documents" > > 2) the version numbers were already set to zero. > > Whup. Stop right here. When you say "the version numbers were already > set to zero", you don't mean those extra zeroes at the end of each line, > do you? Because if yo

RE: setup - duplicating cygwin

2006-06-18 Thread Jim Easton
Hi, Tue, 16 May 2006 I wrote: > Would someone please tell me what file(s) I would have to take with > me (eg. on a disk) to someone else's machine, both running windows XP, > whereby I could get setup to download the same cygwin components that > are on my machine? Wed, 17 May 2006 I wrote: > I s

Re: setup - duplicating cygwin

2006-05-18 Thread Jim Easton
Hi Igor, > Ugh, top-posting... Reformatted. Oops - sorry. Some people prefer it :-( Does not include me actually. It gets a little hard to follow if it's not consistent. > On Wed, 17 May 2006, Jim Easton wrote: > > > > From: "Dave Korn" <[EMAIL

RE: setup - duplicating cygwin

2006-05-17 Thread Jim Easton
floopy. :-) Thank again. Jim > From: "Dave Korn" <[EMAIL PROTECTED]> > On 16 May 2006 09:20, Jim Easton wrote: > > > Hi, > > > > Would someone please tell me what file(s) I would have to take with > > me (eg. on a disk) to someone else

setup - duplicating cygwin

2006-05-16 Thread Jim Easton
Hi, Would someone please tell me what file(s) I would have to take with me (eg. on a disk) to someone else's machine, both running windows XP, whereby I could get setup to download the same cygwin components that are on my machine? Thank you. Jim -- Unsubscribe info: http://cygwin

Re: script in cygwin

2006-04-20 Thread Jim Easton
Hi All, A way back (22 Feb 2006) I asked about script in cygwin. On my last update lo and behold in comes script - how nice. :-) I don't know who to thank but thank you nevertheless. I notice one minor difference between the cygwin version and the version I am used to on several Unix OSs. That

Re: find and /cygdrive/c

2006-04-09 Thread Jim Easton
Dear Eric, > > Version 4.2.27 had the same problem but 4.3.0 worked. > > Glad I could help. Hmm, even though 4.3.0 is marked > alpha quality upstream, compared to stable 4.2.27, > maybe I should go ahead and make 4.3.0 the current > version for cygwin, since there have been several reports > of

Re: find and /cygdrive/c

2006-04-08 Thread Jim Easton
;m not sure what the significance is but this find had another option/feature enabled (viz. O_NOFOLLOW) ie. $ find -version GNU find version 4.3.0 Features enabled: O_NOFOLLOW(enabled) LEAF_OPTIMISATION FTS $ Jim > According to Jim Easton on 4/6/2006 4:14 AM: > > > > I don&#x

Re: find and /cygdrive/c

2006-04-06 Thread Jim Easton
Dear Eric, Eric Blake wrote: > According to Richard Quadling on 4/5/2006 3:52 AM: > > On 05/04/06, Jim Easton wrote: > >> example: > >> > >> $ find /cygdrive/c -iname \*Telus\* -print > >> find: .: No such file or directory > >> fin

find and /cygdrive/c

2006-04-05 Thread Jim Easton
Hi People, Find does not seem able to search the /cygdrive/c directory. example: $ find /cygdrive/c -iname \*Telus\* -print find: .: No such file or directory find: /cygdrive/c/AUTOEXEC.BAT: No such file or directory find: /cygdrive/c/AVG7QT.DAT: No such file or directory find: /cygdrive/c/boot.

Re: Precision of doubles and stdio

2006-03-07 Thread Jim Easton
> Roberto Bagnara wrote: > ... > > $ a.out > > 70.9 > > 70.905684341886080801486968994140625 > ... > > $ ./a.exe > > 70.9 > > 70.9000000000568434188608080148696899414 ... > Jim Easton wrote: > With all due respect, why would you

Re: Precision of doubles and stdio

2006-03-06 Thread Jim Easton
Dear Mr. Bagnara, Roberto Bagnara wrote: ... > does this on Linux/i686 > > $ a.out > 70.9 > 70.905684341886080801486968994140625 > > and does the following under Cygwin on the same machine: ... > $ ./a.exe > 70.9 > 70.90568434188608080148696899414 > > Why? Is there a w

Re: script in cygwin

2006-02-25 Thread Jim Easton
On Fri, 24 Feb 2006 Igor Peshansky wrote: > On Fri, 24 Feb 2006, Jim Easton wrote: > > On Thu, 23 Feb 2006 Igor Peshansky wrote: > > > On Wed, 22 Feb 2006, Jim Easton wrote: > > > > > > > Does cygwin have a program called "script". It is a program

Re: script in cygwin

2006-02-24 Thread Jim Easton
Hi, On Thu, 23 Feb 2006 Igor Peshansky wrote: > On Wed, 22 Feb 2006, Jim Easton wrote: > > > Does cygwin have a program called "script". It is a program > > which records terminal traffic in a file. > > ... > ... > IIRC, "script" is availa

script in cygwin

2006-02-22 Thread Jim Easton
Hi, Does cygwin have a program called "script". It is a program which records terminal traffic in a file. If so what would I select in setup to get it? Thanks in advance. Jim -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/p

Re: Select()

2006-02-03 Thread Jim Easton
> From [EMAIL PROTECTED] Fri Feb 3 01:10:29 2006 > Date: Fri, 03 Feb 2006 00:10:02 -0800 > From: Brian Dessent <[EMAIL PROTECTED]> > To: cygwin@cygwin.com > Subject: Re: Select() > Reply-To: cygwin@cygwin.com Brian Dessent wrote: > Jim Easton wrote: > > >

Re: Select()

2006-02-02 Thread Jim Easton
not exported? > > You need to read the file "how-signals-work.txt" which explains that. > It's not a weak alias, it's a direct mapping, they are the same > function. > > Brian I hate to display my ignorance like this but where does one find "how-signals

Re: vim under cygwin

2005-12-20 Thread Jim Easton
On Tue, 20 Dec 2005, Luke Vanderfluit wrote: > Hi. > > I'm a vi user :-) > > I recently started using cygwin, so forgive me if this is an obvious one. > I want to use vi under cygwin but I'm having trouble with terminal settings. > > apparently these are the possible term settings. > > builtin_ansi

Re: signals and read blocking - EINTR

2005-11-02 Thread Jim Easton
Hi Samuel Thibald wrote: > Mmm, I had a look at posix, at it says "The state of these flags is > not specified for signal()." So that you indeed need to explicitely > unset the flag, else the behavior is implementation-dependant (BSD sets > SA_RESTART and clears SA_RESETHAND for instance). > > Al

Re: signals and read blocking - EINTR

2005-11-01 Thread Jim Easton
Hi, Christopher Faylor wrote: > On Mon, Oct 31, 2005 at 08:49:30PM -0700, Jim Easton wrote: > >I'm wondering what am I missing? Is there a flag in sigaction > >or something else that I could be setting? > > Yes. SA_RESTART is the flag. and then Samuel Thibault w

signals and read blocking - EINTR

2005-10-31 Thread Jim Easton
Hi, Correct me if I'm wrong but it is my understanding that a signal, specifically SIGALRM, should free a blocked read request and, for example, getchar() or read(), should return an EINTR error. (viz. Interrupted system call) This happens on Solaris, sun 4, Sgi and AIX machines but apparently no