Re: Newbie Questions

2014-02-06 Thread Andrey Repin
Greetings, Warren Young! >> [C:\home\Daemon]$ bash -c ./foo.sh > That's not the same command I gave you. -c changes how bash.exe > interprets the following parameter. According to `man bash', that's the correct command to execute scripts with bash. > It matters, because when you right-click a

$PATH contains dot but unclear where it comes from

2014-02-06 Thread Robert Klemme
Hi, in cygwin64 on Win 7 64 bit I find "." in $PATH: $ echo "$PATH" | tr : \\n | egrep '^\.$' . However, I was not able to detect where this came from. It's neither in the Windows system environment variables nor in the user environment variables - as you can also see on a cmd prompt: C:\Users

Re: cygwin-1.7.28 getpwent header declaration changes ?

2014-02-06 Thread Corinna Vinschen
On Feb 6 08:29, Marco Atzeri wrote: > on cygwin-1.7.28 64 bit but not on cygwin-1.7.27, > (only system difference) compiling octave I see: > > > /pub/devel/octave/octave-3.8.0-2/src/octave-3.8.0/liboctave/system/oct-passwd.cc > :114

Re: $PATH contains dot but unclear where it comes from

2014-02-06 Thread Csaba Raduly
Hi Robert, On Thu, Feb 6, 2014 at 10:01 AM, Robert Klemme wrote: > Hi, > > in cygwin64 on Win 7 64 bit I find "." in $PATH: > > $ echo "$PATH" | tr : \\n | egrep '^\.$' > . > > However, I was not able to detect where this came from. It's neither > in the Windows system environment variables nor

Re: cygwin-1.7.28 getpwent header declaration changes ?

2014-02-06 Thread Marco Atzeri
On 06/02/2014 10:01, Corinna Vinschen wrote: On Feb 6 08:29, Marco Atzeri wrote: on cygwin-1.7.28 64 bit but not on cygwin-1.7.27, (only system difference) compiling octave I see: /pub/devel/octave/octave-3.8.0-2/src/octave-3.8

Re: $PATH contains dot but unclear where it comes from

2014-02-06 Thread Robert Klemme
On Thu, Feb 6, 2014 at 10:14 AM, Csaba Raduly wrote: > Hi Robert, > > On Thu, Feb 6, 2014 at 10:01 AM, Robert Klemme wrote: >> Hi, >> >> in cygwin64 on Win 7 64 bit I find "." in $PATH: >> >> $ echo "$PATH" | tr : \\n | egrep '^\.$' >> . >> >> However, I was not able to detect where this came from

Re: $PATH contains dot but unclear where it comes from

2014-02-06 Thread Andrey Repin
Greetings, Robert Klemme! > I should have mentioned that I did just that - to no avail. > $ echo exit | bash --login -i -x 2>|log > $ egrep -n 'PATH=(.:|.*:\.($|:))' log | head > 1:+ PATH=/usr/local/bin:/usr/bin:/usr/gnu/bin:/usr/local/bin:/bin:/usr/bin:. > 140:+++ > PATH=/usr/local/bin:/usr/bin

Re: cygwin-1.7.28 getpwent header declaration changes ?

2014-02-06 Thread Jan Nijtmans
On Feb 6 08:29, Marco Atzeri wrote: > Is something slightly changed in the relative system headers ? After upgrading to Cygwin 1.7.28, Sqlite doesn't compile any more. See log below. When reverting to 1.7.27-2, everything is back to normal. The LOCK_EX macro's and friends are supposed to be def

Re: cygwin-1.7.28 getpwent header declaration changes ?

2014-02-06 Thread Corinna Vinschen
On Feb 6 14:00, Jan Nijtmans wrote: > On Feb 6 08:29, Marco Atzeri wrote: > > Is something slightly changed in the relative system headers ? > > After upgrading to Cygwin 1.7.28, Sqlite doesn't compile any > more. See log below. When reverting to 1.7.27-2, > everything is back to normal. > > T

Re: cygwin-1.7.28 getpwent header declaration changes ?

2014-02-06 Thread Corinna Vinschen
On Feb 6 11:19, Marco Atzeri wrote: > > > On 06/02/2014 10:01, Corinna Vinschen wrote: > >On Feb 6 08:29, Marco Atzeri wrote: > >>on cygwin-1.7.28 64 bit but not on cygwin-1.7.27, > >>(only system difference) compiling octave I see: > >> > >>-

Fwd: cygwin-1.7.28 getpwent header declaration changes ?

2014-02-06 Thread Jan Nijtmans
2014-02-06 15:02 GMT+01:00 Corinna Vinschen: > In sys/_default_fcntl.h, the LOCK_xx macros are defined if > __BSD_VISIBLE is defined, which *is* defined by default, unless you > define one of > > _ANSI_SOURCE > _C99_SOURCE > _C11_SOURCE > _POSIX_C_SOURCE > _XOPEN_SOURCE Yes, SQLite defin

Re: cygwin-1.7.28 getpwent header declaration changes ?

2014-02-06 Thread Corinna Vinschen
On Feb 6 15:15, Jan Nijtmans wrote: > 2014-02-06 15:02 GMT+01:00 Corinna Vinschen: > > In sys/_default_fcntl.h, the LOCK_xx macros are defined if > > __BSD_VISIBLE is defined, which *is* defined by default, unless you > > define one of > > > > _ANSI_SOURCE > > _C99_SOURCE > > _C11_SOURCE > >

Re: cygwin-1.7.28 getpwent header declaration changes ?

2014-02-06 Thread Corinna Vinschen
On Feb 6 15:28, Corinna Vinschen wrote: > On Feb 6 15:15, Jan Nijtmans wrote: > > 2014-02-06 15:02 GMT+01:00 Corinna Vinschen: > > > In sys/_default_fcntl.h, the LOCK_xx macros are defined if > > > __BSD_VISIBLE is defined, which *is* defined by default, unless you > > > define one of > > > > > >

[ANNOUNCEMENT] Updated: openmpi-1.7.4-1

2014-02-06 Thread Marco Atzeri
Version 1.7.4-1 of packages libopenmpi libopenmpicxx1 libopenmpifh2 libopenmpiuse1 libopenmpi-devel openmpi are available in the Cygwin distribution: CHANGES Full upstream changes: http://svn.open-mpi.org/svn/ompi/branches/v1.7/NEWS http://www.open-mpi.org/community/lists/an

Re: cygwin64 - installation problem - installed by administrator account

2014-02-06 Thread Larry Hall (Cygwin)
On 2/6/2014 1:42 AM, Flower, Martin wrote: All scripts have .done. Setup.log.full shows an error. I see the word McShield, and I link it to BLODA. File C:\cygwin64\etc\setup\setup.rc exists - although I assume it didn't exist when setup was started. 2014/02/05 10:05:28 Starting cygwin instal

RE: cygwin64 - installation problem - installed by administrator account

2014-02-06 Thread Flower, Martin
-Original Message- From: cygwin-owner [mailto:cygwin-owner] On Behalf Of Larry Hall (Cygwin) Sent: Thursday, February 06, 2014 3:49 PM To: cygwin Subject: Re: cygwin64 - installation problem - installed by administrator account On 2/6/2014 1:42 AM, Flower, Martin wrote: > All scripts h

Re: $PATH contains dot but unclear where it comes from

2014-02-06 Thread Robert Klemme
On Thu, Feb 6, 2014 at 12:56 PM, Andrey Repin wrote: > Greetings, Robert Klemme! Hello Andrey! >> I should have mentioned that I did just that - to no avail. > >> $ echo exit | bash --login -i -x 2>|log >> $ egrep -n 'PATH=(.:|.*:\.($|:))' log | head >> 1:+ PATH=/usr/local/bin:/usr/bin:/usr/gnu/b

Re: Clearing the buffer after quitting LESS, MAN, VIM etc.

2014-02-06 Thread Dawid Ferenczy
Christopher Faylor cygwin.com> writes: > You're apparently not using a snapshot. > > cgf I love you! :) It's very close to be perfect now. When I scroll by individual lines, it works fine. But when I try to scroll by pages, the screen is repainted between prompts only. If there are 3 lines

Cygwin directory slash problem

2014-02-06 Thread ajit samant
I would like some help on setting up Cygwin directory slash problem. when i type like /cygdrive/e/ then cygwin was looking for path that starts with \cygdrive\e\ . Means cygwin consider my forward slash as backslash and shows error in path. Have any Idea. Thanks Ajit -- View this message in

Re: Cygwin directory slash problem

2014-02-06 Thread Larry Hall (Cygwin)
On 2/6/2014 11:40 AM, ajit samant wrote: I would like some help on setting up Cygwin directory slash problem. when i type like /cygdrive/e/ then cygwin was looking for path that starts with \cygdrive\e\ . Means cygwin consider my forward slash as backslash and shows error in path. No. So le

Newbie Cygdrive questions

2014-02-06 Thread mrushton
Ok ... I am converting my scripts and making progress. But I have a question. My old shell software would let me have a path as : X:/INBOUND/CWSCRIPTS/myscript.sh To access this shared X drive under Cygwin it seems I have to do this : /cygdrive/X/INBOUND/CWSCRIPTS/myscript.sh Is this c

Re: Newbie Cygdrive questions

2014-02-06 Thread Larry Hall (Cygwin)
On 2/6/2014 1:53 PM, mrushton wrote: Ok ... I am converting my scripts and making progress. But I have a question. My old shell software would let me have a path as : X:/INBOUND/CWSCRIPTS/myscript.sh To access this shared X drive under Cygwin it seems I have to do this : /cygdrive/X/INBOUND

qsort_r and libc.a version?

2014-02-06 Thread Jim Garrison
I tried to build libgit2 so I could try to build gitg but encountered undefined reference to `qsort_r' GitHub has a closed issue for this https://github.com/libgit2/libgit2/issues/1606 saying that qsort_r was added to glibc in version 2.8, released in 2008. Since libc in Cygwin is part of

Re: using spawn functions to avoid fork() errors

2014-02-06 Thread Larry Hall (Cygwin)
On 2/6/2014 8:50 AM, Steven Bardwell wrote: On 2/5/2014 7:07 AM, Steven Bardwell wrote: I have no problem doing some recoding of my application to reliably solve my issues with fork() -- can you all point me in the direction of the 'spawn family of calls'? See spawn.cc ->

Re: qsort_r and libc.a version?

2014-02-06 Thread Larry Hall (Cygwin)
On 2/6/2014 2:04 PM, Jim Garrison wrote: I tried to build libgit2 so I could try to build gitg but encountered undefined reference to `qsort_r' GitHub has a closed issue for this https://github.com/libgit2/libgit2/issues/1606 saying that qsort_r was added to glibc in version 2.8, released

Re: Cygwin SSH and msysGit

2014-02-06 Thread Someone Somebody
I did some additional research of my own, it seems that the only thing that should really be os dependent is in the working dir and the index file and since this is not relevant for pure push/fetch I think it might work ok using Cygwin's Git. But who knows... msysGit includes a lot of different p

Re: Newbie Cygdrive questions

2014-02-06 Thread Richard
On Thu, 6 Feb 2014, mrushton wrote: To access this shared X drive under Cygwin it seems I have to do this : /cygdrive/X/INBOUND/CWSCRIPTS/myscript.sh Is this correct ? Is there a better way ? And C: seems to be /cygdrive/C/ A BETTER way? This has nothing per se to do with Cygwin, but,

Re: Cygwin SSH and msysGit

2014-02-06 Thread Christopher Faylor
On Thu, Feb 06, 2014 at 09:46:50PM +0200, Someone Somebody wrote: > I did some additional research of my own, it seems that the only >thing that should really be os dependent is in the working dir and the >index file and since this is not relevant for pure push/fetch I think >it might work ok using

Re: Newbie Questions

2014-02-06 Thread Warren Young
On 2/6/2014 01:13, Andrey Repin wrote: Greetings, Warren Young! [C:\home\Daemon]$ bash -c ./foo.sh That's not the same command I gave you. -c changes how bash.exe interprets the following parameter. According to `man bash', that's the correct command to execute scripts with bash. Are yo

Re: get rid of getpwent? (Was: cygwin-1.7.28 getpwent header declaration changes ?)

2014-02-06 Thread Warren Young
On 2/6/2014 07:13, Corinna Vinschen wrote: Btw., it would be a good idea to get rid of calls to getpwent/getgrent in future. They *probably* won't do anymore what they were supposed to do if you don't have passwd/group files. There must be a way to list an executable's DLL imports, and thereb

RE: using spawn functions to avoid fork() errors

2014-02-06 Thread Steven Bardwell
> On 2/6/2014 8:50 AM, Steven Bardwell wrote: > > Larry - thanks for the link to the source for the spawn() APIs. It works > > perfectly on my 32-bit install (where, as it happens, the fork() issue > > never shows up either). > > > > However, on my 64-bit install, the spawnv() call is returning w

Re: using spawn functions to avoid fork() errors

2014-02-06 Thread Larry Hall (Cygwin)
On 2/6/2014 5:14 PM, Steven Bardwell wrote: On 2/6/2014 8:50 AM, Steven Bardwell wrote: Larry - thanks for the link to the source for the spawn() APIs. It works perfectly on my 32-bit install (where, as it happens, the fork() issue never shows up either). However, on my 64-bit install, the

Re: Newbie Cygdrive questions

2014-02-06 Thread David Conrad
It may be useful to know, if you do not already, that the cygpath utility can be used to convert between Windows and Unix paths. cygpath -u X:/INBOUND/CWSCRIPTS/myscript.sh will give you /cygdrive/x/INBOUND/CWSCRIPTS/myscript.sh, and cygpath -w /cygdrive/x/INBOUND/CWSCRIPTS/myscript.sh will giv

Re: using spawn functions to avoid fork() errors

2014-02-06 Thread David Conrad
>>> On 2/6/2014 8:50 AM, Steven Bardwell wrote: However, on my 64-bit install, the spawnv() call is returning with an error -- 'No such file or directory' -- when I try to spawn /bin/sh. A few things come to mind as possibilities to check, or try. First, there is a certain amount of mag

RE: qsort_r and libc.a version?

2014-02-06 Thread Jim Garrison
> -Original Message- > Behalf Of Larry Hall (Cygwin) > Sent: Thursday, February 06, 2014 11:39 AM > Subject: Re: qsort_r and libc.a version? > > On 2/6/2014 2:04 PM, Jim Garrison wrote: > > I tried to build libgit2 so I could try to build gitg but encountered > > > > undefined referen

Re: qsort_r and libc.a version?

2014-02-06 Thread Larry Hall (Cygwin)
On 2/6/2014 6:29 PM, Jim Garrison wrote: -Original Message- Behalf Of Larry Hall (Cygwin) Sent: Thursday, February 06, 2014 11:39 AM Subject: Re: qsort_r and libc.a version? On 2/6/2014 2:04 PM, Jim Garrison wrote: I tried to build libgit2 so I could try to build gitg but encountered

[ANNOUNCEMENT] Updated: perl-Text-CSV_XS-1.04-1

2014-02-06 Thread David Stacey
Version 1.04-1 of perl-Text-CSV_XS has been uploaded. CHANGE LOG == 1.04- 2014-02-01, H.Merijn Brand * get_columnd () with no argument now returns the empty list instead of undef when no columns defined * fragments (rcf7111) now also support AoH (was AoA only) * Err

Re: Newbie Cygdrive questions

2014-02-06 Thread Mike Rushton
That is good to know about that utility Cygpath. Maybe I will try it. What I was doing was going thru some scripts ... changing the paths ... clean in up stuff ... over the years I ended up with a lot of commented out sections of code ... and testing them. And this is a different approach

Re: Newbie Cygdrive questions

2014-02-06 Thread Andrey Repin
Greetings, mrushton! > Ok ... I am converting my scripts and making progress. > But I have a question. > My old shell software would let me have a path as : > X:/INBOUND/CWSCRIPTS/myscript.sh > To access this shared X drive under Cygwin it seems I have to do this : > /cygdrive/X/INBOUND

Re: Newbie Cygdrive questions

2014-02-06 Thread Mike Rushton
I see. What would you say to this ? I have to use an EDI translator - it runs under windows/dos and had unix versions I was trying this ... but the program needed to see the path of a config file ... after the -cp switch. /cygdrive/c/gentran61SA/lftran /cygdrive/c/gentran61sa/data/EDN -id

[ANNOUNCEMENT] Updated: python-openssl, New: python3-openssl

2014-02-06 Thread Yaakov (Cygwin/X)
The following packages have been updated for both arches: * python-openssl-0.13.1-1 * python3-openssl-0.13.1-1 (NEW) This package provides Python bindings for the OpenSSL libraries. This is an update to the latest upstream release, and the first to be built for Python 3.x. -- Yaakov Cygwin/

[ANNOUNCEMENT] Updated: ruby-1.9.3-p484-1

2014-02-06 Thread Yaakov (Cygwin/X)
The following packages have been updated for both arches: *** ruby-1.9.3-p484-1 *** ruby-doc-1.9.3-p484-1 *** ruby-tcltk-1.9.3-p484-1 Ruby is an interpreted scripting language for quick and easy object-oriented programming. This is an update to the latest upstream patch release, which includes

[ANNOUNCEMENT] Updated: ca-certificates-1.96-3

2014-02-06 Thread Yaakov (Cygwin/X)
The following package has been updated for the Cygwin distribution: *** ca-certificates-1.96-3 ca-certificates contains the Certificate Authority root certificates needed for verifying SSL certificates. This release provides symlinks in a couple more places to match hardcoded locations in a wi

Re: Newbie Cygdrive questions

2014-02-06 Thread Mike Rushton
Good ... I will have to work with that Cygpath and see what kind of results that I get. I am unsure how this program is going to respond. I may have to just do the shell escape and execute the invocation of gentran if the program can not figure out where the location of its configuration files

Re: Newbie Cygdrive questions

2014-02-06 Thread Larry Hall (Cygwin)
On 2/6/2014 8:05 PM, Mike Rushton wrote: I see. What would you say to this ? I have to use an EDI translator - it runs under windows/dos and had unix versions I was trying this ... but the program needed to see the path of a config file ... after the -cp switch. /cygdrive/c/gentran61SA/lftra

[ANNOUNCEMENT] Updated: libzip-0.11.2-1

2014-02-06 Thread Yaakov (Cygwin/X)
The following packages have been updated for both arches: * libzip-0.11.2-1 * libzip2-0.11.2-1 * libzip-devel-0.11.2-1 * libzip-doc-0.11.2-1 LibZip is a C library for reading, creating, and modifying zip archives. Files can be added from data buffers, files, or compressed data copied directly