Re: Login shell?

2007-01-18 Thread Thorsten Kampe
* Luke Kendall (Thu, 18 Jan 2007 18:03:33 +1100 (EST))
> On 17 Jan, Thorsten Kampe wrote:
> >  * Luke Kendall (Wed, 17 Jan 2007 13:29:31 +1100 (EST))
> > > I just want to confirm, that the traditional Cygwin way of achieving
> > > this same result is still to modify cygwin.bat on a PC-by-PC basis
> > > (assuming one user per PC), rather than to take the traditional Unix
> > > way and change the shell field in /etc/passwd?
> >  
> >  If you want to change your login shell you modify the passwd file.
> 
> That's what we do, yes, because our modified cygwin.bat runs shell.exe,
> not bash.

Well, that's not what you do. If you login (via ssh for instance) 
cygwin.bat doesn't get executed.
  
> >  cygwin.bat is just a target for the shortcut.
> 
> But doesn't cygwin.bat run bash (not the shell specified in
> /etc/passwd)?

That correct.
 
> > I think the zsh 
> >  maintainer has a batch file that creates links to start zsh instead of 
> >  bash.
> 
> That sounds like it doesn't use /etc/passwd.

mkzsh just creates a zsh.bat

> Perhaps Michael should have called shell.exe login.exe :-)
> shell.c is only 60-odd lines long.
> 
> Just to be quite explicit, here is our modified cygwin.bat:
> 
> @echo off
> C:
> chdir C:\cygwin\bin
> 
> shell
> 
> It seems neater to me than the current approach.

The neat approach is to check if your problem still exists and trying 
to solve it.

Thorsten


--
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: Snapshot speed on managing files

2007-01-18 Thread Marco atzeri

--- "Larry Hall (Cygwin)"
<[EMAIL PROTECTED]> ha scritto:

> 
> Did you update your build recently?  Corinna checked
> in a fix for this on
> Saturday
>
.
> 

I will wait the next snapshot to test the changes.

Regards
Marco







___ 
Vinci i biglietti per FIFA World Cup in Germania! 
yahoo.it/concorso_messenger

--
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.0 CVS mmap failure

2007-01-18 Thread Corinna Vinschen
On Jan 17 13:42, Brian Ford wrote:
> On Wed, 17 Jan 2007, Corinna Vinschen wrote:
> > On Jan 16 17:28, Brian Ford wrote:
> > > PS: In an strace of this, I see three fstat64s called from within a
> > > single mmap64.  Do you know where they all are, and if two should be
> > > optimized away?
> >
> > There's only one such call in list::set.
> 
> which is called from map::add_list, yes.  I also see one in
> map::get_list_by_fd.

Uh, yes.

> mmap.cc:1203 mmap64():
>   map_list = mmapped_areas.get_list_by_fd (fd);
> mmap.cc:982 mmap_worker():
>   if (!(map_list = mmapped_areas.get_list_by_fd (fd))
> mmap.cc:983 mmap_worker():
>   && !(map_list = mmapped_areas.add_list (fd)))
> 
> Also:
> 
> mmap.cc:1134 mmap64():
>   DWORD low = GetFileSize (fh->get_handle (), &high);
> 
> > STC?
> 
> It looks like your statement is true for the first mmap in a process, but
> subsequent mmaps have significant overhead.  In the attached STC, I count
> 5 fstat64s of the same fd via strace, plus the GetFileSize mentioned
> above.
> 
> PS. Since this isn't a bug, I don't expect you to do any more than
> consider putting it in your long term low priority que or reply with a PTC
> Thanks for the evaluation tuits ;-).

Right, it's an optimization problem rather than a bug.  Patches
welcome, but I've put it on my TODO list, too.


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  cygwin AT cygwin DOT com
Red Hat

--
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: cygwin 1.5.23-2 : CREAD termios option don't work

2007-01-18 Thread Florent Morin

It compiles but it don't work fine. I want it to works with pseudo-terminals.

2007/1/17, Dave Korn <[EMAIL PROTECTED]>:

On 17 January 2007 14:38, Florent Morin wrote:


> I use select() to read/write socket and read/write serial. But, after
> writing the content of socket on serial port, I can't read serial port
> (access denied).


> I have tested it on Linux. It works fine. When I send data throw
> telnet protocol, the data are received by the peripheral connected to
> serial and vice-versa.
>
> Perhaps I don't use the functions very well. So, if you can help me, thanks.


  :)  ser2net compiles on cygwin OOTB.


cheers,
  DaveK
--
Can't think of a witty .sigline today


--
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: Problem open(...) serial port /dev/com20 and tcgetattr(...)

2007-01-18 Thread Corinna Vinschen
On Jan 17 13:18, Stan Pinte wrote:
> Dear Corinna,
> 
> Thanks for your quick follow-up!
> 
> I tried the more POSIXy /dev/ttySxx, and they work until /dev/ttyS16.
> This, and the next ones (I tested up to ttyS20) fail with a "No such
> file or directory" error.
> 
> One note: I am using VSPD5 from eltima software to create virtual serial
> ports under windows XP. However, all my other windows applications seem
> to be perfectly able to taok to these virtuals serial ports.

Hmm, I can only test up to COM16.  Cygwin allows names up to /dev/ttyS63
and converts them up to \\.\com64.  The conversion works, but the Windows
function to open the device fails when I use ports > \\.\com16.  Which
makes sense, given that only COM1 - COM16 exist on the system.

Sorry, but you're on your own here.  Somebody who has more ports has to
debug this.  http://cygwin.com/acronyms/#PTC


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  cygwin AT cygwin DOT com
Red Hat

--
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: readline-5.2.1-6, libreadline6-5.2.1-6

2007-01-18 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

A new release of readline and libreadline6, 5.2.1-6, is available for use,
replacing 5.2.1-5 as the current version.  5.1-5 remains the previous
version, to match the fact that a previous version of bash 3.1 is still
available.

NEWS:
=
This release fixes the regression introduced in 5.2.1-5 that accidentally
missed the upstream patch to fix prompt display bugs.  Hopefully there are
no further functional changes caused by my switching to cygport packaging.

This version is not strictly binary compatible with readline 5.1; but the
only incompatibility is the removal of a cygwin-specific entry point that
the cygwin-specific bash 3.0 (but not bash 3.1) depended on.  Now that
bash 3.0 is no longer available from the cygwin mirrors, I felt it safe to
drop that cygwin-specific patch.

This version is not strictly behaviorally compatible with readline 5.1.  A
case has been reported where tab completion using bash 3.1 and readline
5.2 does not work quite right.  It is best to stick with either bash
3.1/readline 5.1, or upgrade both programs to bash 3.2.x/readline 5.2.x.
When you use setup.exe to upgrade, this should happen automatically.

See also the upstream documentation in /usr/share/doc/readline-5.2.1/.

DESCRIPTION:

The readline library will read a line from the terminal and return it,
allowing the user to edit the line with emacs or vi editing keys.  It also
allows a history feature, for editing previous entries, making command
line interfaces easier-to-use and more intuitive.

libreadline6 provides the .dlls needed for readline and history expansion
for dynamic linking in other programs, including bash and gdb; it is
required for a minimal cygwin installation.  The 6 in libreadline6
distinguishes incompatible API changes made to the prior libreadline4 and
libreadline5 libraries still available on the mirrors. readline provides
the documentation and the static libraries required for static linking;
you should only need it if you plan on compiling an application that links
with -lreadline or -lhistory.

UPDATE:
===
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.
Save it and run setup, answer the questions and pick up 'libreadline6'
from the 'Base' category (it should already be selected), or 'readline' in
the 'Devel' category.  Be sure that you do not have any cygwin programs
running during the upgrade.

DOWNLOAD:
=
Note that downloads from sources.redhat.com (aka cygwin.com) aren't
allowed due to bandwidth limitations.  This means that you will need to
find a mirror which has this update, please choose the one nearest to you:
http://cygwin.com/mirrors.html

QUESTIONS:
==
If you want to make a point or ask a question the Cygwin mailing list is
the appropriate place.

- --
Eric Blake
volunteer cygwin readline maintainer

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.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFrwoO84KuGfSFAYARAqF9AKCytMEXDnpB+GQ2bUXOM7/sBXbm3ACdEOtJ
UQxQfdKaraBAEuVmQ4m4zPU=
=/p9v
-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/



Installation with root privilage: can't download Intel Fortran F90 compiler

2007-01-18 Thread K. Basu

The problem with running filename.sh was fixed with d2u - thanks!

But there's another problem now!

I am trying to download the Intel Fortran F90 compiler (which is
originally intended for Linux) to work on windows with Cygwin. It
requires installing as 'root'. I tried to install it from the windows
Administrator account, but it didn't work. Would you know how to fix
this?

Thanks,
KB




On 1/17/07, Dave Korn <[EMAIL PROTECTED]> wrote:

On 17 January 2007 20:06, Kasturi Basu wrote:

> Hi Dave,

  Hi KB, http://cygwin.com/acronyms#PPIOSPE please!

> Haven't used d2u before. A google search revealed several versions:
> http://linux.maruhn.com/sec/d2u.html Would you recommend any particular one?
>

  The one that comes as part of cygwin!  If you don't already have it, use
setup.exe to install the cygutils package.


cheers,
  DaveK
--
Can't think of a witty .sigline today


--
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: Installation with root privilage: can't download Intel Fortran F90 compiler

2007-01-18 Thread Chris January

It won't work because Cygwin is not a Linux emulator. There are no
recent Linux emulators/translation layers for Windows and even if you
did use one the compiler would not generate Windows binaries. You need
a Windows version of the Intel Fortran compiler or you could use a
virtual machine (e.g. VirtualBox) / Co-operative Linux to run a full
Linux session under Windows. How to do any of this is off-topic for
this mailing list.

On 18/01/07, K. Basu <[EMAIL PROTECTED]> wrote:

The problem with running filename.sh was fixed with d2u - thanks!

But there's another problem now!

I am trying to download the Intel Fortran F90 compiler (which is
originally intended for Linux) to work on windows with Cygwin. It
requires installing as 'root'. I tried to install it from the windows
Administrator account, but it didn't work. Would you know how to fix
this?

Thanks,
KB




On 1/17/07, Dave Korn <[EMAIL PROTECTED]> wrote:
> On 17 January 2007 20:06, Kasturi Basu wrote:
>
> > Hi Dave,
>
>   Hi KB, http://cygwin.com/acronyms#PPIOSPE please!
>
> > Haven't used d2u before. A google search revealed several versions:
> > http://linux.maruhn.com/sec/d2u.html Would you recommend any particular one?
> >
>
>   The one that comes as part of cygwin!  If you don't already have it, use
> setup.exe to install the cygutils package.
>
>
> cheers,
>   DaveK
> --
> Can't think of a witty .sigline today
>
>
> --
> 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/




--
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/



There is no prompt message if shared object file cannot open, when I was running a program.

2007-01-18 Thread kou yu

Problem: when running a program from bash and the program requires a
lib that is missing, I do not get any error message. Only a exit
status of 128. Can I change this behavior?

I've exhausted those help resources (include FAQ, User's Guide,
mailing list archives and even google). The closer I have found so far
is this thread: "no message or dialog when a DLL is missing", its link
is http://sourceware.org/ml/cygwin/2006-08/msg00895.html. But that
thread disappointed me by ending up with nothing definited. The
posters and replyers seemed to be regardless to this problem.

On Linux, etc., when a shared library is missing at runtime, any
attempt to execute a binary depending on it will get an error like:

% /usr/bin/xvidtime
/usr/bin/xvidtune: error while loading shared libraries:
libXdmcp.so.6: cannot open shared object file: No such file or
directory

I'm pretty this message is coming directly from (in this case)
ld-linux.so (the "DLL loader" on linux).

If Cygwin is intercepting the equivalent exception on Windows, perhaps
a possible compromise would be for cygwin1.dll to emit such an error
to stderr?

Failing with return code 128 is far less helpful, but printing to
"stderr" (or whatever is eating off that pipe) is much more
script-friendly than a GUI pop-up.

--
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: Installation with root privilage: can't download Intel Fortran F90 compiler

2007-01-18 Thread Tim Prince

[EMAIL PROTECTED] wrote:

It won't work because Cygwin is not a Linux emulator. There are no
recent Linux emulators/translation layers for Windows and even if you
did use one the compiler would not generate Windows binaries. You need
a Windows version of the Intel Fortran compiler or you could use a
virtual machine (e.g. VirtualBox) / Co-operative Linux to run a full
Linux session under Windows. 



There is nothing strange about installing Windows ifort in accordance 
with instructions (not using cygwin), then using cygwin as a build 
environment to run ifort, at least for 32-bit builds.  For 64-bit 
builds, some work-arounds are needed, as cygwin tools like ar and link 
don't work.


--
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: Snapshot speed on managing files

2007-01-18 Thread Marco atzeri

--- Marco atzeri <[EMAIL PROTECTED]> ha scritto:
> --- "Larry Hall (Cygwin)"
> > Did you update your build recently?  Corinna
> checked
> > in a fix for this on
> > Saturday
> >
>
<http://cygwin.com/ml/cygwin-cvs/2007-q1/msg00021.html>.
> > 
> 
> I will wait the next snapshot to test the changes.
> 

20070118 solved the issue. The timing now is
acceptable

VirusScan Enterprise 8.0.0

Antivirus Disabled
time rm -rf testdir
 
real0m5.437s
user0m0.100s
sys 0m0.650s
 
Antivirus Enabled

time rm -rf testdir
 
real0m8.742s
user0m0.120s
sys 0m0.630s

Thanks
Marco







___ 
Vinci i biglietti per FIFA World Cup in Germania! 
yahoo.it/concorso_messenger

--
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/



cygwin 1.5.23-2 : I can't use select() with serial device and socket

2007-01-18 Thread Florent Morin

Hello,

I have a problem using cygwin. My program does this :
- It accept a socket connection,
- it listen on it,
- it open serial device read/write (O_RDWR),
- it create 2 fd_sets,
- listening loop :
 - adding file descriptors to sets,
 - call select(),
 - if something is on serial port, I write it to socket,
 - if something is on socket, i write it to serial

It works fine on Linux.

With windows, only read or write works fine.

If I begin on reading on serial, I can't write after (access denied).
If I begin on writing on serial, I can't read after (access denied).

If someone have a solution, thanks to help me, please...

--
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: cygwin 1.5.23-2 : I can't use select() with serial device and socket

2007-01-18 Thread Brian Dessent
Florent Morin wrote:

> I have a problem using cygwin. My program does this :
> - It accept a socket connection,
> - it listen on it,
> - it open serial device read/write (O_RDWR),
> - it create 2 fd_sets,
> - listening loop :
>   - adding file descriptors to sets,
>   - call select(),
>   - if something is on serial port, I write it to socket,
>   - if something is on socket, i write it to serial
> 
> It works fine on Linux.
> 
> With windows, only read or write works fine.
> 
> If I begin on reading on serial, I can't write after (access denied).
> If I begin on writing on serial, I can't read after (access denied).

There's probably not enough information here to help.  It would be
easier if you provided a simplified standalone testcase that we can
compile and run.  Are you opening the serial device using the standard
unix name (/dev/ttyS0) and not the DOS name ("COM1")?  The latter will
succeed but probably not work with things like ioctl or select, because
in order to emulate those APIs Cygwin has to know to treat the handle
specifically as a serial device, which it only does if you open it using
the unix form.

Brian

--
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: cygwin 1.5.23-2 : I can't use select() with serial device and socket

2007-01-18 Thread Florent Morin

I use unix names. I will post an example code tomorrow.

2007/1/18, Brian Dessent <[EMAIL PROTECTED]>:

Florent Morin wrote:

> I have a problem using cygwin. My program does this :
> - It accept a socket connection,
> - it listen on it,
> - it open serial device read/write (O_RDWR),
> - it create 2 fd_sets,
> - listening loop :
>   - adding file descriptors to sets,
>   - call select(),
>   - if something is on serial port, I write it to socket,
>   - if something is on socket, i write it to serial
>
> It works fine on Linux.
>
> With windows, only read or write works fine.
>
> If I begin on reading on serial, I can't write after (access denied).
> If I begin on writing on serial, I can't read after (access denied).

There's probably not enough information here to help.  It would be
easier if you provided a simplified standalone testcase that we can
compile and run.  Are you opening the serial device using the standard
unix name (/dev/ttyS0) and not the DOS name ("COM1")?  The latter will
succeed but probably not work with things like ioctl or select, because
in order to emulate those APIs Cygwin has to know to treat the handle
specifically as a serial device, which it only does if you open it using
the unix form.

Brian

--
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: 1.7.0 CVS mmap failure

2007-01-18 Thread Corinna Vinschen
On Jan 18 10:14, Corinna Vinschen wrote:
> On Jan 17 13:42, Brian Ford wrote:
> > mmap.cc:1203 mmap64():
> >   map_list = mmapped_areas.get_list_by_fd (fd);
> > mmap.cc:982 mmap_worker():
> >   if (!(map_list = mmapped_areas.get_list_by_fd (fd))
> > mmap.cc:983 mmap_worker():
> >   && !(map_list = mmapped_areas.add_list (fd)))
> > 
> > Also:
> > 
> > mmap.cc:1134 mmap64():
> >   DWORD low = GetFileSize (fh->get_handle (), &high);
> > 
> > [...]
> > PS. Since this isn't a bug, I don't expect you to do any more than
> > consider putting it in your long term low priority que or reply with a PTC
> > Thanks for the evaluation tuits ;-).
> 
> Right, it's an optimization problem rather than a bug.  Patches
> welcome, but I've put it on my TODO list, too.

I have applied a patch to CVS which calls fstat early, at the spot where
GetFileSize got called so far.  The stat structure is then propagated to
subsequent function calls and used there.  This should reduce the fstat
calls to exactly one per file based mmap call.  All my testcases still
work fine, but we already saw that my testcases don't cover all weird
cases in the world.  So, please give this change a serious test.


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  cygwin AT cygwin DOT com
Red Hat

--
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: gv-3.6.1 erroneously displays text: doubling its vertical and halving its horizontal dimensions

2007-01-18 Thread Dan Tsafrir

On 1/18/07, Dan Tsafrir <[EMAIL PROTECTED]> wrote:

Hi,

When I open a postscript document (any document) with 'gv', the text
in the document appears doubled in height and halved in width, making
the document virtually unreadable.


Well apparently there was something messed up in the ~/.gv file, as doing

   rm ~/.gv

solved the problem.

Thanks,
   --Dan

--
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: Login shell?

2007-01-18 Thread Luke Kendall
On 18 Jan, Thorsten Kampe wrote:
>  * Luke Kendall (Thu, 18 Jan 2007 18:03:33 +1100 (EST))
> > On 17 Jan, Thorsten Kampe wrote:
> > >  * Luke Kendall (Wed, 17 Jan 2007 13:29:31 +1100 (EST))
> > > > I just want to confirm, that the traditional Cygwin way of achieving
> > > > this same result is still to modify cygwin.bat on a PC-by-PC basis
> > > > (assuming one user per PC), rather than to take the traditional Unix
> > > > way and change the shell field in /etc/passwd?
> > >  
> > >  If you want to change your login shell you modify the passwd file.
> > 
> > That's what we do, yes, because our modified cygwin.bat runs shell.exe,
> > not bash.
>  
>  Well, that's not what you do. If you login (via ssh for instance) 
>  cygwin.bat doesn't get executed.

Good, so it's just the desktop startup for the shells that might have a
neater solution.
 
> > >  cygwin.bat is just a target for the shortcut.
> > 
> > But doesn't cygwin.bat run bash (not the shell specified in
> > /etc/passwd)?
>  
>  That correct.
>   
> > > I think the zsh 
> > >  maintainer has a batch file that creates links to start zsh instead of 
> > >  bash.
> > 
> > That sounds like it doesn't use /etc/passwd.
>  
>  mkzsh just creates a zsh.bat
>  
> > Perhaps Michael should have called shell.exe login.exe :-)
> > shell.c is only 60-odd lines long.
> > 
> > Just to be quite explicit, here is our modified cygwin.bat:
> > 
> > @echo off
> > C:
> > chdir C:\cygwin\bin
> > 
> > shell
> > 
> > It seems neater to me than the current approach.
>  
>  The neat approach is to check if your problem still exists and trying 
>  to solve it.

I think the current approach would be fine if the desktop shortcuts
were named "bash" (or "zsh" for zsh.bat), rather than Cygwin.  But for
commands like rxvt, xterm, Cygwin, it seems neater not to hard-code the
choice of shell when the choice of shell has been defined in
/etc/passwd.

Sorry, I don't think I can explain the appeal any better than that.

luke


--
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: fyi, libreadline causing Metasploit to drop Cygwin

2007-01-18 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

http://cygwin.com/acronyms/#PPIOSPE

According to Lee Fisher on 1/18/2007 12:41 PM:
> Hi Eric,
> 
> First, congratulation's on the new libreadline 5.2.1-6 release for Cygwin!
> 
> FYI, I wanted to point out a recent lively discussion going on over on
> the Metasploit mailing list.
> This msg starts the thread:
> 
> http://www.metasploit.com/archive/framework/msg01515.html

Based on my initial reading of that thread, I think they are making the
right decision.  It sounds like Metasploit had the potential to be acting
as a http://cygwin.com/acronyms/#3PP, by providing a full cygwin
installation with their product.  And were they properly obeying the GPL
by providing the source code to the version of cygwin that they were
shipping?  Distributing just their app, and not a full cygwin environment,
eases their burden and makes your life easier from the perspective of
upgrading cygwin yourself.  And if you are really bothered by their
decision, then you could volunteer to become a package maintainer and make
Metasploit part of the official cygwin distribution.

> 
> Metasploit, one of the top security tools out there, is written in Ruby
> and currently distributed with CygWin, is about to drop Windows support,
> because of libreadline problems on Cygwin.
> 
> In case there is anything you can do to help!
> 
> Thanks,
> Lee
> 
> 

Nothing in that thread made it obvious as to what they perceived the
readline problems to be, so no I can't help without a more detailed report.

- --
Don't work too hard, make some time for fun as well!

Eric Blake [EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFsCWI84KuGfSFAYARAiOOAJ0dlkloiNkjJxfqtPVYZyxke2+VcACglcY6
YVsXMIV6mwqh0ceh/NkU99I=
=TUx3
-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/



Laptop Account Information

2007-01-18 Thread needlaptops
how are you doing? I thought i'd tell you about this site I found. I
think it was you that said you wanted a laptop, so maybe this is your
best bet. all you have to do is enter your zip code. it's easy and
free, so I thought you'd be interested.

http://laptops4u.cjb.net

-
































--
If you do not want to receive any more newsletters, 
http://hotmylayouts.com/list/?p=unsubscribe&uid=7f3610fdf68ee585a343a2ae0456cce0

To update your preferences and to unsubscribe visit
http://hotmylayouts.com/list/?p=preferences&uid=7f3610fdf68ee585a343a2ae0456cce0
Forward a Message to Someone
http://hotmylayouts.com/list/?p=forward&uid=7f3610fdf68ee585a343a2ae0456cce0&mid=36


--
Check Out www.hotmylayouts.com, FREE MYSPACE STUFF! --



--
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: fyi, libreadline causing Metasploit to drop Cygwin

2007-01-18 Thread Brian Dessent
Eric Blake wrote:

> > Metasploit, one of the top security tools out there, is written in Ruby
> > and currently distributed with CygWin, is about to drop Windows support,
> > because of libreadline problems on Cygwin.
> >
> > In case there is anything you can do to help!
>
> Nothing in that thread made it obvious as to what they perceived the
> readline problems to be, so no I can't help without a more detailed report.

I agree with Eric, I think you're misinterpreting what they said.  They
were saying that a native (i.e. non-Cygwin) Win32 port of readline is a
mess, and the alternative -- bundling the entire Cygwin environment --
puts too much strain on their bandwidth and user support for dealing
with upgrades.  Nothing in that message seemed to indicate that there
was anything wrong with the Cygwin implementation of libreadline.  If I
were them I'd simply make metasploit a package that can be installed
with setup.exe (it needn't even be an official packge, although that
helps) and that way they don't have to provide anything but that one
package.

Brian

--
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/



Default For Install Should Be Install Everything

2007-01-18 Thread Michael Boom
When people I tell about Cygwin install it, they tend
to use the default.  They don’t realize that by
clicking the word “Default”, it will change to
Install, and install everything.  I think the default
should be to install everything.  Few people are going
to read the installation documentation and few people
want to install less than everything.  Does anyone
agree?  If so who should I send my opinion to?  


 

Sucker-punch spam with award-winning protection. 
Try the free Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/features_spam.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: Default For Install Should Be Install Everything

2007-01-18 Thread Larry Hall (Cygwin)

Michael Boom wrote:

When people I tell about Cygwin install it, they tend
to use the default.  They don’t realize that by
clicking the word “Default”, it will change to
Install, and install everything.  I think the default
should be to install everything.  Few people are going
to read the installation documentation and few people
want to install less than everything.  Does anyone
agree?  If so who should I send my opinion to?  



If you're having problems getting people you tell to install
Cygwin with all packages, why not tell them how to install
everything?  Or, if you think that's too complex, you could
provide a custom package server that allows them to download and
install everything (see
).  Just
set up a dummy package that's part of the base category and depends
on every other package.  Point folks you want to have install
everything to your server and "voila!", you're done.  Or you could
provide patches to 'setup.exe' to insert a page with the more
traditional coarse options of "Full", "Minimal", and "Custom" options
(see ).  I'd argue even
with today's world of more broadband connections, defaulting the
install to download upward of a GB worth of packages is still going
to be an issue for most.  But I believe that even if that's not true,
having a clearer way to install everything would probably resolve any
current confusion, regardless of the default option set.  As for who
you should tell, well, I guess that's this list.  If all you want to
do is tell people about your opinion, I think you're done.  If you're
interested in doing more than just presenting your opinion, I've
provided you with a few options to consider as well. :-)

--
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
216 Dalton Rd.  (508) 893-9889 - FAX
Holliston, MA 01746

_

A: Yes.
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting annoying in email?

--
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/