Re: [ANNOUNCEMENT] Updated: bash-3.1-9

2006-10-05 Thread Frank Illenseer

Or even experiment with the SHELLOPTS environment variable.  If you set it
in windows, even the first run of bash will obey igncr; or, from within
bash, if you do 'export SHELLOPTS' to convert it from a shell variable to
an environment variable, then further bash invocations will inherit the
setting of this option, without having to edit every script.


This would be a good place for the "igncr" if it worked!

If i set this variable in windows to the value of just "igncr" I get the 
following error upon starting the bash:


   bash: igncr: invalid option name

So I looked in the man pages for bash:

 SHELLOPTS
A  colon-separated  list of enabled shell options.  Each word 
in
the list is a valid argument  for  the  -o  option  to  the  
set
builtin command (see SHELL BUILTIN COMMANDS below).  The 
options
appearing in SHELLOPTS are those reported as on by set  -o.   
If
this  variable  is  in the environment when bash starts up, 
each
shell option in the list will  be  enabled  before  reading  
any

startup files.  This variable is read-only.

If I type "set -o" then "igncr" is *NOT* listed. Thus I assume this is the 
reason why the SHELLOPTS results in an error.




--
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 scripts fail with bash3.1-8

2006-10-05 Thread Thomas Porschberg
Am Wed, 04 Oct 2006 10:19:52 -0500
schrieb mwoehlke :

> Thomas Porschberg wrote:
> > Am Tue, 3 Oct 2006 17:02:29 +0100
> > schrieb "Dave Korn" :
> >> On 03 October 2006 16:43, Turly O'Connor wrote:
> >>> By way of an example as to what broke, note that in the following
> >>> that  "cleartool" is not a cygwin tool (it's a Windows
> >>> executable), writing its CRLF-terminated output to Windows'
> >>> stdout.
> >>>
> >>> CHECKOUTS=`cleartool lsc -all -cvi -s`  # list all my checkouts
> >>>
> >>> I used to be able to do
> >>>
> >>> for one in $CHECKOUTS ; do echo $one Hello ; done
> >>>
> >>> C:/Path/To/file1 Hello
> >>> C:/Path/To/file2 Hello
> >>>
> >>> Now it seems that "$one" above contains the binary CR, so I get:
> >>>
> >>> Hello h/To/file1
> >>> Hello h/To/file2
> >>>
> >>> What do I need to do to get this working again?
> >>   How about
> >>
> >> CHECKOUTS=`cleartool lsc -all -cvi -s | d2u`  # list all my
> >> checkouts
> >>
> >> or 
> >>
> >> for one in $((echo $CHECKOUTS | d2u)) ; do echo $one Hello ; done
> >>
> >> depending on how happy cleartool is on piping output to a cygwin
> >> program.
> > 
> > This is exactly the problem I have with my sqlplus call.
> > Is there a way to solve it without introducing the d2u filter ?
> 
> You could try the new shopt... but have you considered arranging for 
> 'sqlplus' to point to a shell script that would exec 'sqlplus.exe'
> and pipe it through d2u?
> 
I tried the new "shopt -s igncr;#' but it does not work for this case.
(It does work if I have CR polluted files but not with the piped stdout
result)
Your approach with the additional shell script looks good. Thank you.
But it was not necessary in the past and now I have to do it for every
Windows program I call from cygwin and that writes to stdout.
( ATM I see only sqlplus in my case :-) ).

Thomas

 

-- 


--
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 unix commands in windows

2006-10-05 Thread Tom Lee

Eric,

thanks for your help.


>
> after further study, I noticed that using "c:/directory" works fine with
> my tests except tar.exe.
>
>
> I understand people here may like /cygdrive/c more than c:/.  Just want
> to know if it is an accident feature that all other commands can work
> with c:/ except tar?

You asked, so I'll answer.  Yes, it is an accident that other tools
understand c:/.  Cygwin operates on the philosophy that you should use
POSIX paths, aka /cygdrive/c (or if that is too much typing for you, read
'man mount' for how you can shorten it to /c, by remounting cygdrive as
'/').


is there a way to mount /cygdrive/c as /?
by default,  c:/cygwin is mounted as /.

I really like the feature of "ls /" to display evevrything under c:/


<...>
 Another example of a program that parses its arguments is make; you need
only read last months archives for the debate about make 3.80 vs. make
3.81 for proof that using DOS paths in cygwin programs is ASKING for
problems.


I just checked the debate. it looks a strong demand for supporting dos path.
A good lessen. I think I need to make a copy of these unix commands in case 
the future release remove the support of "C:/". :)


Thanks for your tips.

tom

_
All-in-one security and maintenance for your PC.  Get a free 90-day trial!  
http://clk.atdmt.com/MSN/go/msnnkwlo005001msn/direct/01/?href=http://www.windowsonecare.com/?sc_cid=msn_hotmail



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



ssh server: authentification problem

2006-10-05 Thread carole gimenez

Hi,

We installed cygwin 1.5.21-1 with openssh-4.3p2-3 on a windows 2003 
server. Then we installed winscp on another windows 2003 server to make 
tests.


We created users on Active Directory.

We followed installation instructions of this site:
http://www.commentcamarche.net/faq/sujet-2132-reseaux-installation-d-un-serveur-ssh-sous-windows

We choosed password authentication.

When we try to log on ssh server with any user, we obtain this message: 
"access denied". Otherwise, if this user belongs to the 
"Administrateurs" group, it works fine. Why?


We sought which was the reason without success.

I tried on my Linux PC. The result is the same:

# ssh [EMAIL PROTECTED]
[EMAIL PROTECTED]'s password:
Last login: Wed Oct  4 15:13:04 2006 from serv.simpps.local

[EMAIL PROTECTED] ~

# ssh [EMAIL PROTECTED]
[EMAIL PROTECTED]'s password:
Permission denied, please try again.


Can someone help us, please?

Thanks For advance.

Carole Gimenez.


--
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: Requesting an updated gcc-mingw-g++ package to match gcc-g++-3.4.4-2 (PR24196)

2006-10-05 Thread Dave Korn
On 05 October 2006 07:19, Prehnite - wrote:

> I was running gcc-g++-3.4.4-1, and was running into the same problem of a
> std::string allocating memory in a different DLL described here:
> http://www.cygwin.com/ml/cygwin/2005-10/msg00051.html
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24196

> Could someone please upload matching gcc-mingw-* packages that contain the
> fix applied to 3.4.4-2?

  Request duly noted.  I'm half-way through updating the main cygwin gcc
release ATM; I'll look at this after I've got it done and before I move on to
thinking about 3.4.6.

> Updated binary packages is of course the ideal. In the mean time, I
> attempted to build updated packages myself, however I found that the
> gcc-mingw-g++-20050522-1-src.tar.bz2 package does not meet the source
> package description described here:
> http://cygwin.com/setup.html#package_contents
> As the supposed source tarball inside it does not contain source files. It
> only contains executables, libraries, and headers. It also contains an
> un-usable configure script, and no build script. This may be ignorance on my
> part as I've never built a cygwin package from source before, but I could
> not get it to do much with the files provided.

  Yes, I am aware of that.  I have no idea how it came to be this way, it's a
situation I have inherited and will have to figure out how it's supposed to
work before I can roll any new versions.


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/



RE: Cygwin server/cvs passwd problem

2006-10-05 Thread Dave Korn
On 05 October 2006 02:33, René Berber wrote:

> I don't understand what you are doing here, what version of CVS understands
> the command "passwd"? 

  CVSNT.  


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/



Re: Problems with bind and UDP server

2006-10-05 Thread Corinna Vinschen
On Sep 27 17:14, Anonymous wrote:
> [...]
> I compile and run net-snmp under cygwin (I have net-snmp 5.3.0.1).
> The server snmpd by default uses UDP port 161. I now have the most
> recent cygwin DLL and the server snmpd seems no longer to work.
> 
> I think I tracked down the problem to the bind command. For a 
> "very simple test" I used Beej's socket programming examples.
> I give the listings at the end of the message.
> 
> http://beej.us/guide/bgnet/output/htmlsingle/bgnet.html#listen
> 
> The listener program works fine on regular Linux and with older
> cygwin DLLs . but under the latest it returns an error.
> Has something changed?

I tried your below example under 1.5.21 and with a more recent developer
version of Cygwin and the tests run fine in both cases:

  $ ./udp-listener.exe 
   $ ./udp-talker.exe localhost blah
   sent 4 bytes to 127.0.0.1
  got packet from 127.0.0.1
  packet is 4 bytes long
  packet contains "blah"

If there's a bug, it's not triggered by this test.  If it triggers
the problem on your machine, I'd assume the influence of some other
piece of software (firewall, virus scanner, etc)


Corinna

> listener.c
> 
> /*
> ** listener.c -- a datagram sockets "server" demo
> */
> [...]

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



AW: Cygwin server/cvs passwd problem

2006-10-05 Thread Erik Nijkamp
http://www.cvsnt.org/wiki/InstallationTips#head-b6c8355ff21a64da5c4cad319b631ec9e826af5f

Section 4.6

Any user entered like this MUST be an NT user on the *local* system! CVS will 
not accept any user login that is not connected to a "real" account. But you 
can "alias" a CVS login to a "real" user by this command (only works if users 
connect with pserver):

cvs passwd -a -r  



Actually I need an alias because we only have a 5 user license for the nt 
machine. However, could you please answer the question, if that is possible
in some way.

The CVS server itself is running on NT (not within cygwin) and the passwd
command is NOT working in cygwin since there is no " Verify Password:"
and it never returns.

Yes, I'm using CVS NT and I ask here because this is not a matter of cvs nt,
but rather of cygwin since it doesn't print the "verify password:".




-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von René Berber
Gesendet: Donnerstag, 5. Oktober 2006 03:33
An: cygwin@cygwin.com
Betreff: Re: Cygwin server/cvs passwd problem

Erik Nijkamp wrote:

> Currently I’m trying to use the newest cygwin version as ssh server
> for windows xp sp2,
>
> which is working quite smoothly. But actually I need to create a cvs
> alias for an existing nt user.

An alias?

Are you in fact creating a user in the /etc/passwd file? if you want to use it 
as an alias you have to copy the SSID part of the real user to the alias user.

As an option, an much easier, have you considered adding a user in CVS?  You 
just have to add a passwd file into the reporitory's CVSROOT, an entry of the 
form:   

> Works out of the box in windows/prompt itself, but whenever I try
> exactly the same within the cygwin or putty bash it hangs on the second 
> password
> verification:
>
> [NT]
> C:\Documents and Settings\Administrator>cvs -d :pserver:nijkamp:[EMAIL 
> PROTECTED]
> host:/testrepo passwd -a -r nijkamp afoobar3
>
> Adding user [EMAIL PROTECTED]
> New Password:
> Verify Password:

I don't understand what you are doing here, what version of CVS understands the 
command "passwd"?

> [Putty/Cygwin]
>
> [EMAIL PROTECTED] ~
> $ cvs -d :pserver:nijkamp:[EMAIL PROTECTED]:/testrepo passwd -a -r nijkamp 
> foobar2
>
> Adding user [EMAIL PROTECTED]
> New Password: secret

It looks like it worked, what is the problem?

> This is a must for my current project and I would be glad if somebody
> could help me.

You seem to be using a modified CVS, so why ask here?

My Cederqvist manual for CVS 1.12.12 says "Someday, there may be a cvs passwd 
command", I know that is not the latest version but the latest in Cygwin 
packages is 1.11.21 (latest stable).
--
René Berber


--
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: tcsh executing .com files under Cygwin DLL 1.5.21

2006-10-05 Thread Corinna Vinschen
On Oct  3 12:46, David Mastronarde wrote:
> When I upgraded from Cygwin DLL 1.5.19-4 to 1.5.21, tcsh started trying to 
> execute files on the path with extension .com, with often fatal results.
> [...]

It's the way it is.  There's special code in tcsh which is identical for
Cygwin and U/Win.  It handles the .bat, .exe, and .com extensions
similar.  It might be worth to remove this, but I'd have to discuss this
with the tcsh upstream maintainers.


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/



XmGrace does not work

2006-10-05 Thread Roberto Veiga

Dear all:

I've installed Cygwin in my laptop running Windows XP, and a program
that I really need a lot (XmGrace) does not work. When I type the
command "xmgrace" and press Enter, nothing happens. I've seen that
this problem is related to the current version of xorg. Ok, I
reinstalled a previous version of xorg, ran rebaseall and XmGrace
still does not work. I uninstalled and so reinstalled Cygwin, with the
previous version of xorg selected, and XmGrace, unfortunately, insists
not to work. Any idea?

[]s,

Roberto Veiga

--
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: Max Block Size in mt

2006-10-05 Thread Corinna Vinschen
On Oct  3 19:33, Jeffry T Ross wrote:
> I'm trying to read data from a Sony AIT-e260 SCSI drive under Cygwin.
> Cygwin 1.5.21-2
> mt 2.3.1
> 
> I know that the tape is good, because I can read from it (using the same
> drive) under Redhat.
> 
> The first file on the tape is 96 bytes so I do the following:
> >> export TAPE=/dev/nst0
> >> mt setblk 0
> >> dd if=$TAPE of=header.txt
> 
> This works fine.
> 
> The second file on the tape is 1GB and is written with a block size on
> 200kB.
> When I do the following:
> >> mt setblk 204800
> >> dd if=$TAPE of=segment.0
> 
> I get the following error:
> mt: /dev/nst0: Invalid argument
> 
> I've found that the maximum block size in mt can only be 64kB.
> 
> Am I missing something or is there a limitation to mt under Cygwin?

It's a limitation in Windows.  The default settings only allow
blocksizes up to 64K.  There's some information on the net that this is
a result of the default size of the scatter/gather arrays in the SCSI
controller driver settings.  Search for the keyword "MaximumSGList",
which should give you lots of hits.

However, I have tried this on three different machines with three
different SCSI controllers, and setting the MaximumSGList value only
works on one machine with a Adaptec U160 controller, even though it's
documented to work for most, if not all controllers. 

At one point I started to write code using direct SCSI access using the
IOCTL_SCSI_PASSTHROUGH ioctl codes, but hit the same limitation.  I
could set the blocksize to a value > 64K, but when reading data I never
got more than the first 64K from the block, plus the error code
ERROR_MORE_DATA.  Since I couldn't find a workaround, I eventually gave
up on this :(

I guess the bottom line is if you need to create portable tapes, stick
to blocksizes up to 64K.


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 unix commands in windows

2006-10-05 Thread Dave Korn
On 05 October 2006 08:52, Tom Lee wrote:


> is there a way to mount /cygdrive/c as /?
> by default,  c:/cygwin is mounted as /.
> 
> I really like the feature of "ls /" to display evevrything under c:/

  If that's *really* what you want, i.e. you want all your unix/linux-style
usr, lib, etc, bin, var (and so on) directories scattered amongst your
win32-style "Documents and Settings", "Program Files", "WINDOWS" (and so on)
directories in your C drive root directory, you should just install cygwin to
C:\ instead of installing it to C:\cygwin by changing the default install
location when you run setup.exe.


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/



RE: cygwin unix commands in windows

2006-10-05 Thread Tom Lee



> I really like the feature of "ls /" to display evevrything under c:/

  If that's *really* what you want, i.e. you want all your 
unix/linux-style

usr, lib, etc, bin, var (and so on) directories scattered amongst your
win32-style "Documents and Settings", "Program Files", "WINDOWS" (and so 
on)
directories in your C drive root directory, you should just install cygwin 
to

C:\ instead of installing it to C:\cygwin by changing the default install
location when you run setup.exe.


I noticed that if I run those commands in a machine without cygwin 
installed.

it still looks for c:\cygwin

is there a special setting or change I can get it done? such as registry 
value modification.


thanks.

Tom

_
Get today's hot entertainment gossip  http://movies.msn.com/movies/hotgossip


--
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] Updated: bash-3.1-9

2006-10-05 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

According to Frank Illenseer on 10/5/2006 1:08 AM:
>> Or even experiment with the SHELLOPTS environment variable.  If you
>> set it
>> in windows, even the first run of bash will obey igncr; or, from within
>> bash, if you do 'export SHELLOPTS' to convert it from a shell variable to
>> an environment variable, then further bash invocations will inherit the
>> setting of this option, without having to edit every script.
> 
> This would be a good place for the "igncr" if it worked!
> 
> If i set this variable in windows to the value of just "igncr" I get the
> following error upon starting the bash:
> 
>bash: igncr: invalid option name

Oh right :(  It's a shame that 'set -o' and 'shopt' have different
namespaces.  It sounds like I should promote igncr to set -o status
instead.  OK, look for a bash-3.1-10 that does this...

- --
Life is short - so eat dessert first!

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

iD8DBQFFJPeS84KuGfSFAYARAjRhAKCDKcKu0IpzxoOo93sybi1tMelSSwCfaU23
WI2XU3ZsbS9MestJNFex91A=
=Qlfz
-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: XmGrace does not work

2006-10-05 Thread Jonathan D. Arnold / Daemon Dancing

Roberto Veiga wrote:

Dear all:

I've installed Cygwin in my laptop running Windows XP, and a program
that I really need a lot (XmGrace) does not work. When I type the
command "xmgrace" and press Enter, nothing happens. I've seen that
this problem is related to the current version of xorg. Ok, I
reinstalled a previous version of xorg, ran rebaseall and XmGrace
still does not work. I uninstalled and so reinstalled Cygwin, with the
previous version of xorg selected, and XmGrace, unfortunately, insists
not to work. Any idea?


It's unclear on what you have had happen in the past - did it used to
work? If it is a Cygwin/X problem / application, you should probably
post to that list, but one man's guess is that you haven't started
the X server, as that doesn't happen automagically.

--
Jonathan Arnold (mailto:[EMAIL PROTECTED])
Daemon Dancing in the Dark, a FreeBSD weblog:
http://freebsd.amazingdev.com/blog/

UNIX is user-friendly. It's just a bit picky about who its friends are.

--
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 unix commands in windows

2006-10-05 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

According to Tom Lee on 10/5/2006 6:13 AM:
> 
>> > I really like the feature of "ls /" to display evevrything under c:/
>>
>>   If that's *really* what you want, i.e. you want all your
>> unix/linux-style
>> usr, lib, etc, bin, var (and so on) directories scattered amongst your
>> win32-style "Documents and Settings", "Program Files", "WINDOWS" (and
>> so on)
>> directories in your C drive root directory, you should just install
>> cygwin to
>> C:\ instead of installing it to C:\cygwin by changing the default install
>> location when you run setup.exe.
> 
> I noticed that if I run those commands in a machine without cygwin
> installed.
> it still looks for c:\cygwin

Which commands look for c:\cygwin when it is not installed?  setup.exe,
and all cygwin programs, honor your mount points.  If cygwin has never
been installed, then no programs know to look for c:\cygwin because there
is no cygwin installed and thus no mount points.  And until cygwin is
installed, cygwin 'ls' will not work.  Furthermore, it is not ls that
handles DOS paths, but cygwin1.dll.  In other words, saving a copy ls.exe
will not guarantee you that DOS paths will still work if in the future you
upgrade cygwin1.dll and that upgrade happens to disable DOS path support
for all cygwin programs.  (Of course, the likelihood of cygwin disabling
DOS path support now seems slim, based on the potential backlash this list
will get as compared to the minimal overhead of currently supporting it.)

setup.exe defaults to installing in c:\cygwin, but you can choose to
install anywhere else, including c:\ (although the FAQ specifically states
that installing directly into a drive root is dangerous).  And read 'man
mount' for how to tell cygwin what '/' should translate to.  If you did
the default install, then '/' translates to 'c:\cygwin'.  If you install
to c:\ then '/' translates to 'c:/'.  If you change cygdrive to be '/'
instead of '/cygdrive/', then 'ls /c' lists the contents of c:\,
regardless of what '/' maps to.  It's that simple.  Now quit asking, and
start reading the documentation.  We are getting tired of this game.  The
only use of the registry is for mount point settings, but you should use
'mount' rather than directly editing the registry.  Or maybe since you
have such a hankering desire to use DOS paths, in spite of our warnings,
you should consider using djgpp or mingw instead of cygwin.

- --
Life is short - so eat dessert first!

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

iD8DBQFFJPqZ84KuGfSFAYARApeHAJ43gvGyZ3fb5zvxGpJ3XVqpDy+cyACgwTMn
QNE4LAGmGmdroLBLrO0CTwM=
=fmlf
-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: Will cygwin produced *.exe run w/o cygwin installed?

2006-10-05 Thread Jim Kleckner


Gene Smith wrote:
I have built a cross compiler for arm under cygwin from gnu sources 
and cygwin's gcc. I now have a bunch of .exe's that run fine under 
cygwin. Is it possible to use these on a system without cygwin 
installed. Right now I don't have a system w/o cygwin so can't test.


See cygcheck which will list all of the dll files that your application 
depends on.


e.g.  cygcheck ./foo.exe

For full options, type cygcheck --help

--
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-testers] Re: readline-5.2-1 prompt issue on cygwin

2006-10-05 Thread Igor Peshansky
On Wed, 4 Oct 2006, Chet Ramey wrote:

> Eric Blake wrote:
> > According to Igor Peshansky on 10/4/2006 9:03 AM:
> >>> The upstream maintainer claims that this version fixes some prompt display
> >>> bugs when using non-printing escape sequences with a single-line prompt.
> >>> I have not verified this, but hope that this is the case.
> >> FWIW, still doesn't work for me:
> >
> >> $ export PS1='[\[\e[32m\]\h\[\e[0m\]:\[\e[33m\]\w\[\e[0m\]] \[\]'
> >> [helios:~] cd /c^L
> >> [helios:~] cd /c/c
> >>^^^
> >> This is what's displayed.  Removing the '\[\]' at the end doesn't help.
> >>Igor
> >
> > I am able to confirm this.  Using the above PS1 (the export is optional,
> > as it only has to be a shell variable rather than an environment
> > variable), and the xterm-unicode terminal as compiled for cygwin, along
> > with bash 3.1.17 and release candidate readline 5.2, I get the following
> > behavior when I type < ><^L>, where _ is the location of the
> > cursor:
>
> I can't reproduce it on Mac OS X using Terminal or xterm, using a UTF-8
> locale and the included prompt string.  I will look at it on some other
> systems tomorrow.

FWIW, it's happening in an xterm under Cygwin as well, so it's not the
"cygwin" terminfo/termcap entry.  Cygwin's xterm does not support UTF-8.

> (I can't tell from the description, but I assume that the ^L is followed
> by a screen clear.  It's supposed to.)

Yes, it was.  Since ^L behaves properly, I neglected to mention that.

> > I'm really at a loss as to how to go about debugging this, and don't
> > know whether the bug is in readline or in cygwin's terminal
> > descriptions.  I haven't yet built bash 3.2 for cygwin; is there any
> > chance that bash-3.2 is using some readline hooks that bash 3.1 was
> > not using, such that this problem would go away?
>
> It's not.  There are no readline hooks to use.
>
> > This appears to be the same bug that I have been repeatedly reporting:
> > http://lists.gnu.org/archive/html/bug-bash/2006-05/msg00023.html
> > http://lists.gnu.org/archive/html/bug-bash/2006-03/msg5.html
> > http://lists.gnu.org/archive/html/bug-bash/2005-07/msg00115.html
> >
> > Any hints on what I should try from within a debugger?
>
> Attach to it from another terminal and set breakpoints in
> _rl_move_cursor_relative.
>
> Chet

Please let me know if I can provide more input.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte."
"But no -- you are no fool; you call yourself a fool, there's proof enough in
that!" -- Rostand, "Cyrano de Bergerac"

--
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: lyx has problem with network directory names

2006-10-05 Thread Igor Peshansky
On Wed, 4 Oct 2006, David Arnstein wrote:

> On Wed, Oct 04, 2006 at 08:19:32PM -0400, Larry Hall (Cygwin) wrote:
> > So mounting the share should work-around this issue, right?
>
> Yes. I also have to redefine the HOME environment variable to P:/ and
> do "cd P:/" before starting lyx, in order to get it to work correctly.
> In this case, P: is the drive that I mounted the share on.

I don't believe Larry meant "mount" in that sense.  You can use Cygwin's
mount, like this:

mkdir -p /mnt/darnstein
mount '\\fs-sj1-15\darnstein' /mnt/darnstein

and then set your HOME to /mnt/darnstein.

> Oddly enough, lyx still complained
>   QSettings: error creating P:/.qt
>
> I don't know what the problem was. I created P:/.qt as an empty
> directory using mkdir and all is well, apparently.
>
> Anyway, thank you for the suggestion Mr. Hall.

FYI, using paths with colons in them will probably cause trouble at some
point down the line with some tool or another that treats the colon as the
separator for the remote machine name.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte."
"But no -- you are no fool; you call yourself a fool, there's proof enough in
that!" -- Rostand, "Cyrano de Bergerac"

--
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 scripts fail with bash3.1-8

2006-10-05 Thread Igor Peshansky
On Thu, 5 Oct 2006, Thomas Porschberg wrote:

> Am Wed, 04 Oct 2006 10:19:52 -0500
> schrieb mwoehlke :
>
> > Thomas Porschberg wrote:
> > > Am Tue, 3 Oct 2006 17:02:29 +0100
> > > schrieb "Dave Korn" :
> > >> On 03 October 2006 16:43, Turly O'Connor wrote:
> > >>> By way of an example as to what broke, note that in the following
> > >>> that  "cleartool" is not a cygwin tool (it's a Windows
> > >>> executable), writing its CRLF-terminated output to Windows'
> > >>> stdout.
> > >>>
> > >>> CHECKOUTS=`cleartool lsc -all -cvi -s`  # list all my checkouts
> > >>>
> > >>> I used to be able to do
> > >>>
> > >>> for one in $CHECKOUTS ; do echo $one Hello ; done
> > >>>
> > >>> C:/Path/To/file1 Hello
> > >>> C:/Path/To/file2 Hello
> > >>>
> > >>> Now it seems that "$one" above contains the binary CR, so I get:
> > >>>
> > >>> Hello h/To/file1
> > >>> Hello h/To/file2
> > >>>
> > >>> What do I need to do to get this working again?
> > >>   How about
> > >>
> > >> CHECKOUTS=`cleartool lsc -all -cvi -s | d2u`  # list all my
> > >> checkouts
> > >>
> > >> or
> > >>
> > >> for one in $((echo $CHECKOUTS | d2u)) ; do echo $one Hello ; done
> > >>
> > >> depending on how happy cleartool is on piping output to a cygwin
> > >> program.
> > >
> > > This is exactly the problem I have with my sqlplus call.
> > > Is there a way to solve it without introducing the d2u filter ?
> >
> > You could try the new shopt... but have you considered arranging for
> > 'sqlplus' to point to a shell script that would exec 'sqlplus.exe'
> > and pipe it through d2u?
> >
> I tried the new "shopt -s igncr;#' but it does not work for this case.
> (It does work if I have CR polluted files but not with the piped stdout
> result)
> Your approach with the additional shell script looks good. Thank you.
> But it was not necessary in the past and now I have to do it for every
> Windows program I call from cygwin and that writes to stdout.
> ( ATM I see only sqlplus in my case :-) ).

If you want textmode pipes, add "nobinmode" to your CYGWIN environment
variable.  See  for
more information.
HTH,
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte."
"But no -- you are no fool; you call yourself a fool, there's proof enough in
that!" -- Rostand, "Cyrano de Bergerac"

--
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: XmGrace does not work

2006-10-05 Thread Gustavo Seabra

Hi Roberto,alled cygwin in a laptop here, and had exactly the same
problem. The solution was *NOT* to reverse the xorg, but just to run
rebaseall after instalation of the most current version.

A note: if you have the most current version of xorg, even after you
rebaseall, you will have the same problem with the ImageMagick
programs (like 'display'). To solve that, you have to download the old
xorg-x11-bin-dlld-6.8.2.0 and extract only the

/usr/X11R6/bin/cygdpstk-1.dll
and
/usr/X11R6/bin/cygdps-1.dll

and then rebaseall again.

HTH,

Gustavo.

On 10/5/06, Roberto Veiga <[EMAIL PROTECTED]> wrote:

Dear all:

I've installed Cygwin in my laptop running Windows XP, and a program
that I really need a lot (XmGrace) does not work. When I type the
command "xmgrace" and press Enter, nothing happens. I've seen that
this problem is related to the current version of xorg. Ok, I
reinstalled a previous version of xorg, ran rebaseall and XmGrace
still does not work. I uninstalled and so reinstalled Cygwin, with the
previous version of xorg selected, and XmGrace, unfortunately, insists
not to work. Any idea?

[]s,

Roberto Veiga

--
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: XmGrace does not work

2006-10-05 Thread Roberto Veiga

Gustavo:

I ran rebaseall (from a DOS prompt, under ash, is it correct?) and
XmGrace still does not work <:-(

[]s,

Roberto

2006/10/5, Gustavo Seabra <[EMAIL PROTECTED]>:

Hi Roberto,alled cygwin in a laptop here, and had exactly the same
problem. The solution was *NOT* to reverse the xorg, but just to run
rebaseall after instalation of the most current version.

A note: if you have the most current version of xorg, even after you
rebaseall, you will have the same problem with the ImageMagick
programs (like 'display'). To solve that, you have to download the old
xorg-x11-bin-dlld-6.8.2.0 and extract only the

/usr/X11R6/bin/cygdpstk-1.dll
and
/usr/X11R6/bin/cygdps-1.dll

and then rebaseall again.

HTH,

Gustavo.

On 10/5/06, Roberto Veiga <[EMAIL PROTECTED]> wrote:
> Dear all:
>
> I've installed Cygwin in my laptop running Windows XP, and a program
> that I really need a lot (XmGrace) does not work. When I type the
> command "xmgrace" and press Enter, nothing happens. I've seen that
> this problem is related to the current version of xorg. Ok, I
> reinstalled a previous version of xorg, ran rebaseall and XmGrace
> still does not work. I uninstalled and so reinstalled Cygwin, with the
> previous version of xorg selected, and XmGrace, unfortunately, insists
> not to work. Any idea?
>
> []s,
>
> Roberto Veiga
>
> --
> 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/



Re: XmGrace does not work

2006-10-05 Thread Gustavo Seabra

Ok, here's what I did:

I'm just starting using cygwin, and really don't understand much. So,
after many trials, i just decided to remove the whole cygwins
installation and make a fresh install, using the most recent packages.
After this installation I ran rebaseall, and xmgrace did work.

However, I had that problem with ImageMagick. So, I had to reinstall
those 2 DLLs. Then 'display' started to work again, but xmgrace
stopped working!

Finally, I ran rebaseall again, and all works fine again.

Gustavo.

On 10/5/06, Roberto Veiga <[EMAIL PROTECTED]> wrote:

Gustavo:

I ran rebaseall (from a DOS prompt, under ash, is it correct?) and
XmGrace still does not work <:-(

[]s,

Roberto

2006/10/5, Gustavo Seabra <[EMAIL PROTECTED]>:
> Hi Roberto,alled cygwin in a laptop here, and had exactly the same
> problem. The solution was *NOT* to reverse the xorg, but just to run
> rebaseall after instalation of the most current version.
>
> A note: if you have the most current version of xorg, even after you
> rebaseall, you will have the same problem with the ImageMagick
> programs (like 'display'). To solve that, you have to download the old
> xorg-x11-bin-dlld-6.8.2.0 and extract only the
>
> /usr/X11R6/bin/cygdpstk-1.dll
> and
> /usr/X11R6/bin/cygdps-1.dll
>
> and then rebaseall again.
>
> HTH,
>
> Gustavo.
>
> On 10/5/06, Roberto Veiga <[EMAIL PROTECTED]> wrote:
> > Dear all:
> >
> > I've installed Cygwin in my laptop running Windows XP, and a program
> > that I really need a lot (XmGrace) does not work. When I type the
> > command "xmgrace" and press Enter, nothing happens. I've seen that
> > this problem is related to the current version of xorg. Ok, I
> > reinstalled a previous version of xorg, ran rebaseall and XmGrace
> > still does not work. I uninstalled and so reinstalled Cygwin, with the
> > previous version of xorg selected, and XmGrace, unfortunately, insists
> > not to work. Any idea?
> >
> > []s,
> >
> > Roberto Veiga
> >


--
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: Similar Bash 3.1.18 CR/LF Problem

2006-10-05 Thread Williams, Gerald S \(Jerry\)
Christopher Faylor wrote:
> You haven't been paying attention, it seems.
> 
> We've already been over this ground.  The performance impact
> for turning on bash's automatic CRLF handling is profound.
> That's why we're here.

I guess WJM around here. :-) But perhaps I've been paying more
attention than you think.

If a patch is incorporated into upstream BASH, it's not going
to cause performance problems. If it did, it would be rejected.
That's something for the upstream maintainers to decide.

I may be coming at this from a different angle, to be sure. I'm
not really interested in a Cygwin-specific solution--I don't
particularly want the ability to write scripts that can't run
under Linux.

gsw

--
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 unix commands in windows

2006-10-05 Thread mwoehlke

Dave Korn wrote:

On 05 October 2006 08:52, Tom Lee wrote:

is there a way to mount /cygdrive/c as /?
by default,  c:/cygwin is mounted as /.

I really like the feature of "ls /" to display evevrything under c:/


  If that's *really* what you want, i.e. you want all your unix/linux-style
usr, lib, etc, bin, var (and so on) directories scattered amongst your
win32-style "Documents and Settings", "Program Files", "WINDOWS" (and so on)
directories in your C drive root directory, you should just install cygwin to
C:\ instead of installing it to C:\cygwin by changing the default install
location when you run setup.exe.


Actually, if you don't mind sucking up precious mount points (doesn't 
Cygwin have a limit of 32 or something like that?), I would assume you 
can mount (ahem) EVERYTHING in C:\cygwin to the proper /bin, /lib, /etc, 
etc location and have / mounted as 'C:\'... but ooh that would be ugly. 
And don't ask me what problems it might cause... Better to listen to 
Eric's advice.


--
Matthew
Don't use a hippo to... what was I saying?


--
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.5.21: problem with source command in bash

2006-10-05 Thread Ring, Patrick
That did it.  Thanks.  I'll have to read the release more closely.  

-Original Message-
From: Eric Blake [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 04, 2006 10:43 PM
To: cygwin@cygwin.com; Ring, Patrick 
Subject: Re: 1.5.21: problem with source command in bash

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

According to Ring, Patrick on 10/4/2006 3:07 PM:
> I am having a problem with the "source" command in bash (3.1-9).
> When I try to source a file with aliases in it, the aliases get 
> garbled so that they don't work.  When I type "alias" on the command 
> line, I can see that it is incorrect.  Other commands also do not 
> work, usually giving an error like "command not found".
> Example:
> Put the line
>alias ls='ls -F'
> in a file called trysrc.  Inside bash, cd to the directory and type
>source trysrc

Then type 'd2u trysrc' and try again.  I suspect line endings here; read
the release announcement.

- --
Life is short - so eat dessert first!

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

iD8DBQFFJHEa84KuGfSFAYARAtR0AKDXMpdhxNzHmrmzaqbrRebIisdh8wCggwv1
RLY00XaTItzhGDk8QqukK0Q=
=FRl3
-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: Un-attended install ALL

2006-10-05 Thread Rolf Campbell

Vinod K Gupta wrote:

We have a local mirror of selected packages from which we install cygwin on 
user machines. When we perform un-attended installation using setup.exe -q -L 
-l -R... the installer installs only the Base packages. How can we tell setup 
to install ALL available packages?

Vinod
Modify the setup.ini on your local mirror to have every package in the 
Base category.



--
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: Similar Bash 3.1.18 CR/LF Problem

2006-10-05 Thread Wilks, Dan
Eric Blake wrote:
> But I'm not sure whether making
> igncr the default in 'bash --posix', aka '/bin/sh', is wise, since
POSIX
> does not permit this behavior.  My only concern is that by making
igncr
> cognizant of whether posix behavior is requested, people will start
asking
> 'why does my script work with #!/bin/bash but not #!/bin/sh?'.

Ugh... If push does come to shove, I guess I can tell the
Windows-centric
folks on the team to set SHELL=c:/cygwin/bin/bash.exe so that the Win32
Version of GNU make will execute "bash c:\temp\tempscript.sh" rather
than
sh.  Just one more thing to get wrong; one more thing for our developer
install sheet; one more faq; one more...  

Seriously though, as long as I can get it to work we'll be happy.

--
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: Similar Bash 3.1.18 CR/LF Problem

2006-10-05 Thread Christopher Faylor
On Thu, Oct 05, 2006 at 10:22:11AM -0400, Williams, Gerald S (Jerry) wrote:
>On Wed, Oct 04, 2006 at 01:06:19PM -0400, Williams, Gerald S (Jerry) wrote:
>>Seriously, I'd have a hard time believing that supporting
>> endings would noticably impact performance if it
>>were done as part of upstream BASH.
>
>Christopher Faylor wrote:
>>You haven't been paying attention, it seems.
>>
>>We've already been over this ground.  The performance impact for
>>turning on bash's automatic CRLF handling is profound.  That's why
>>we're here.
>
>I guess WJM around here.  :-) But perhaps I've been paying more
>attention than you think.
>
>If a patch is incorporated into upstream BASH, it's not going to cause
>performance problems.  If it did, it would be rejected.  That's
>something for the upstream maintainers to decide.

I was specifically referring to your assertion that you would have a
hard time believing that CRLF handling would impact performance.  Since
bash already has CRLF handling that impacts performance severely I
don't see any basis in believing that just getting something included
upstream would be a guarantee that there would be no performance
problems.

But, Eric has weighed in on the subject and if he says that there isn't
much impact with his change, I certainly believe him.

cgf

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



New ftp mirror.

2006-10-05 Thread Olleg Samoylov

I just set up new ftp mirror in Russia.
ftp://ftp.mipt.ru/mirror/cygwin

I get cygwin by rsync from cygwin.com::cygwin-ftp/ once a day.

Who I must email to be included in mirrors list?

Btw, my server and ftp.chg.ru are in Europe (Moscow region), not in Asia. :)
--
Olleg Samoylov


smime.p7s
Description: S/MIME Cryptographic Signature


Re: XmGrace does not work

2006-10-05 Thread Volker Quetschke
> I've installed Cygwin in my laptop running Windows XP, and a program
> that I really need a lot (XmGrace) does not work. When I type the
> command "xmgrace" and press Enter, nothing happens. I've seen that
> this problem is related to the current version of xorg. Ok, I
> reinstalled a previous version of xorg, ran rebaseall and XmGrace
> still does not work. I uninstalled and so reinstalled Cygwin, with the
> previous version of xorg selected, and XmGrace, unfortunately, insists
> not to work. Any idea?

I read the whole thread, not only this mail. I know it doesn't help
much to say this, but it works just fine here.

I'm more than willing to fix a XmGrace problem but we need to find
what it is first.


  Volker (cygwin XmGrace package maintainer)


-- 
PGP/GPG key  (ID: 0x9F8A785D)  available  from  wwwkeys.de.pgp.net
key-fingerprint 550D F17E B082 A3E9 F913  9E53 3D35 C9BA 9F8A 785D



signature.asc
Description: OpenPGP digital signature


Re: XmGrace does not work

2006-10-05 Thread Gustavo Seabra

On 10/5/06, Volker Quetschke <[EMAIL PROTECTED]> wrote:

> I've installed Cygwin in my laptop running Windows XP, and a program
> that I really need a lot (XmGrace) does not work. When I type the
> command "xmgrace" and press Enter, nothing happens. I've seen that
> this problem is related to the current version of xorg. Ok, I
> reinstalled a previous version of xorg, ran rebaseall and XmGrace
> still does not work. I uninstalled and so reinstalled Cygwin, with the
> previous version of xorg selected, and XmGrace, unfortunately, insists
> not to work. Any idea?

I read the whole thread, not only this mail. I know it doesn't help
much to say this, but it works just fine here.

I'm more than willing to fix a XmGrace problem but we need to find
what it is first.


  Volker (cygwin XmGrace package maintainer)



Hi Volker,

I'd be glad to describe it...

This problem is reproducible, I've seen it myself and I've seen
similar problems described before. But I'm not sure it is an XmGrace
problem.

What happens is that, after a fresh installation of cygwin, cygwin/x,
XmGrace does not work "out-of-the-box". We need to (manually) run a
'rebaseall' to make it work.

If you waqnt to reploduce it, it's important that you start from a
fresh installation of cygwin. AFAIK, this is not exactly a XmGrace
problem, but has to do with newer X11 libraries, but I must confess
that I don't understand much.

Gustavo.

--
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: New ftp mirror.

2006-10-05 Thread Igor Peshansky
On Thu, 5 Oct 2006, Olleg Samoylov wrote:

> I just set up new ftp mirror in Russia.
> ftp://ftp.mipt.ru/mirror/cygwin
>
> I get cygwin by rsync from cygwin.com::cygwin-ftp/ once a day.
>
> Who I must email to be included in mirrors list?

Please re-read  carefully (particularly
the paragraph just before the words "Site List").

> Btw, my server and ftp.chg.ru are in Europe (Moscow region), not in Asia. :)

Ditto.
HTH,
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte."
"But no -- you are no fool; you call yourself a fool, there's proof enough in
that!" -- Rostand, "Cyrano de Bergerac"

--
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] Updated: OpenSSH-4.4p1-1 [WARNING]

2006-10-05 Thread Thorsten Kampe
* Corinna Vinschen (Wed, 4 Oct 2006 16:46:40 +0200)
> I've just updated the version of OpenSSH to 4.4p1-1.
> 
> This is a new major upstream release.  The Cygwin release is created
> from the vanilla sources.

For those upgrading from a previous version a warning should be 
issued: if you're not using "privilege separation" your sshd is likely 
not going to start again. The reason is that even though you're not 
using "privilege separation" (and therefor don't have a "sshd" user 
account) the sshd account is now /required/:

,--- * ChangeLog
| 20060907
| NB. this change will require that the privilege separation user must
| exist on all the time, not just when UsePrivilegeSeparation=yes
`---

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: New ftp mirror.

2006-10-05 Thread Olleg Samoylov

Igor Peshansky wrote:

Please re-read  carefully (particularly
the paragraph just before the words "Site List").


Already done. Where is problem? This is new mirror and didn't "have 
indicated that they are acting as mirrors of the full cygwin FTP area" yet.



--
Olleg Samoylov


smime.p7s
Description: S/MIME Cryptographic Signature


Re: rsync can run in command line but not in cron

2006-10-05 Thread Larry Hall (Cygwin)

lin q wrote:

Hi,
 I just installed lastest cygwin on windows xp service pack 1.

 I enabled cron in cygwin, the crontab looks like this,

# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.3548 installed on Wed Oct  4 19:11:00 2006)
# (Cron version -- $Id: crontab.c,v 1.8 2004/12/21 16:14:41 corinna Exp $)
USER=toma
USERNAME=toma
HOME=/cygdrive/c/home/toma
HOMEDRIVE=C:
UID=toma
12 19 * * * /usr/bin/rsync -azvv /cygdrive/u/ /cygdrive/c/bin/swtools > 
/tmp/swtools.cron 2>&1



 But it does not work, I check the log file, it is like this,

building file list ...
rsync: link_stat "/cygdrive/u/." failed: No such file or directory (2)
done

 It looks like it can not work with path like /cygdrive/u, this is a 
network drive.


 The problem is I can run the exact command in command line.

 Do you know why cron make difference on the path?




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

--
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: rsync can run in command line but not in cron

2006-10-05 Thread Thorsten Kampe
* lin q (Wed, 04 Oct 2006 19:38:12 -0600)
>   I just installed lastest cygwin on windows xp service pack 1.
> 
>   I enabled cron in cygwin, the crontab looks like this,
> 
> # DO NOT EDIT THIS FILE - edit the master and reinstall.
> # (/tmp/crontab.3548 installed on Wed Oct  4 19:11:00 2006)
> # (Cron version -- $Id: crontab.c,v 1.8 2004/12/21 16:14:41 corinna Exp $)
> USER=toma
> USERNAME=toma
> HOME=/cygdrive/c/home/toma
> HOMEDRIVE=C:
> UID=toma
> 12 19 * * * /usr/bin/rsync -azvv /cygdrive/u/ /cygdrive/c/bin/swtools > 
> /tmp/swtools.cron 2>&1
> 
> 
>   But it does not work, I check the log file, it is like this,
> 
> building file list ...
> rsync: link_stat "/cygdrive/u/." failed: No such file or directory (2)
> done
> 
>   It looks like it can not work with path like /cygdrive/u, this is a 
> network drive.
> 
>   The problem is I can run the exact command in command line.
> 
>   Do you know why cron make difference on the path?

Cron is running under the LocalSystem account that hasn't any rights 
on network shares. Same goes for the Schedule service (at.exe).

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: ssh server: authentification problem

2006-10-05 Thread Thorsten Kampe
* carole gimenez (Thu, 05 Oct 2006 10:00:33 +0200)

C arole G imenez?

> We installed cygwin 1.5.21-1 with openssh-4.3p2-3 on a windows 2003 
> server. Then we installed winscp on another windows 2003 server to make 
> tests.
> 
> We created users on Active Directory.
> 
> We followed installation instructions of this site:
> http://www.commentcamarche.net/faq/sujet-2132-reseaux-installation-d-un-serveur-ssh-sous-windows

You shouldn't have done that. All you need is in 
/usr/share/doc/Cygwin/openssh.README
 
> We choosed password authentication.
> 
> When we try to log on ssh server with any user, we obtain this message: 
> "access denied". Otherwise, if this user belongs to the 
> "Administrateurs" group, it works fine. Why?

If you followed the "french" instructions you have only local users in 
/etc/passwd (same with /etc/group). Therefor you shouldn't be able to 
log in with any domain account.

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: cygwin unix commands in windows

2006-10-05 Thread Thorsten Kampe
* Tom Lee (Thu, 05 Oct 2006 07:51:41 +)
> is there a way to mount /cygdrive/c as /?
> by default,  c:/cygwin is mounted as /.
> 
> I really like the feature of "ls /" to display evevrything under c:/

"or if that is too much typing for you, read 'man mount' for how you 
can shorten it to /c, by remounting cygdrive as '/')."


--
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: New ftp mirror.

2006-10-05 Thread Igor Peshansky
On Thu, 5 Oct 2006, Olleg Samoylov wrote:

> Igor Peshansky wrote:
> > Please re-read  carefully (particularly
> > the paragraph just before the words "Site List").
>
> Already done. Where is problem? This is new mirror and didn't "have
> indicated that they are acting as mirrors of the full cygwin FTP area"
> yet.

No problem, but that paragraph clearly says what contact email address to
use to add your mirror to that list (and/or to report inaccuracies).
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte."
"But no -- you are no fool; you call yourself a fool, there's proof enough in
that!" -- Rostand, "Cyrano de Bergerac"

--
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: New ftp mirror.

2006-10-05 Thread Olleg Samoylov

Igor Peshansky wrote:

No problem, but that paragraph clearly says what contact email address to
use to add your mirror to that list (and/or to report inaccuracies).


I see, "sourcemaster" is email, not duty. :) Well, I try to suppose 
email domain. :)


Thank you.
--
Olleg Samoylov


smime.p7s
Description: S/MIME Cryptographic Signature


Re: cygwin unix commands in windows

2006-10-05 Thread Tom Lee





From: Eric Blake <

>

> I noticed that if I run those commands in a machine without cygwin
> installed.
> it still looks for c:\cygwin

Which commands look for c:\cygwin when it is not installed?  setup.exe,
and all cygwin programs, honor your mount points.  If cygwin has never
been installed, then no programs know to look for c:\cygwin because there
is no cygwin installed and thus no mount points.  And until cygwin is
installed, cygwin 'ls' will not work.


that is not true.

If I copy ls.exe and related cygwin dll over a machine with no cygwin 
installed,
"ls /" will list all files under c:/ , not c:/cygwin. I mistakely thought it 
will list c:/cygwin.


that is good to know. thanks.

tom

_
Express yourself - download free Windows Live Messenger themes! 
http://clk.atdmt.com/MSN/go/msnnkwme002001msn/direct/01/?href=http://imagine-msn.com/themes/vibe/default.aspx?locale=en-us&source=hmtagline



--
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 unix commands in windows

2006-10-05 Thread Tom Lee



> is there a way to mount /cygdrive/c as /?
> by default,  c:/cygwin is mounted as /.
>
> I really like the feature of "ls /" to display evevrything under c:/

"or if that is too much typing for you, read 'man mount' for how you
can shorten it to /c, by remounting cygdrive as '/')."


thanks. I find that I need to umount first and then mount it.

tom

_
Try the new Live Search today!  
http://imagine-windowslive.com/minisites/searchlaunch/?locale=en-us&FORM=WLMTAG



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



superfluous dos box from ssh

2006-10-05 Thread Richard Foulk
Aloha,

I don't shut my machine down every day, so cruft tends to accumulate
over time.  Today, as I make a remote ssh connection from an xterm I get
an empty DOS box window on the screen for the duration of the connection.
If I close that window the ssh connection is shut down.

In the past I've restarted Cygwin to clean this up.  Is there a way
to quell this behavior by less extreme measures?


Thanks

Richard

--
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-testers] Re: readline-5.2-1 prompt issue on cygwin

2006-10-05 Thread Chet Ramey
Igor Peshansky wrote:
> On Wed, 4 Oct 2006, Chet Ramey wrote:
> 
>> Eric Blake wrote:
>>> According to Igor Peshansky on 10/4/2006 9:03 AM:
> The upstream maintainer claims that this version fixes some prompt display
> bugs when using non-printing escape sequences with a single-line prompt.
> I have not verified this, but hope that this is the case.
 FWIW, still doesn't work for me:
 $ export PS1='[\[\e[32m\]\h\[\e[0m\]:\[\e[33m\]\w\[\e[0m\]] \[\]'
 [helios:~] cd /c^L
 [helios:~] cd /c/c
^^^
 This is what's displayed.  Removing the '\[\]' at the end doesn't help.
Igor
>>> I am able to confirm this.  Using the above PS1 (the export is optional,
>>> as it only has to be a shell variable rather than an environment
>>> variable), and the xterm-unicode terminal as compiled for cygwin, along
>>> with bash 3.1.17 and release candidate readline 5.2, I get the following
>>> behavior when I type < ><^L>, where _ is the location of the
>>> cursor:
>> I can't reproduce it on Mac OS X using Terminal or xterm, using a UTF-8
>> locale and the included prompt string.  I will look at it on some other
>> systems tomorrow.
> 
> FWIW, it's happening in an xterm under Cygwin as well, so it's not the
> "cygwin" terminfo/termcap entry.  Cygwin's xterm does not support UTF-8.

I also cannot reproduce it with the bash-3.2 release candidate on Linux
(aterm or xterm) or FreeBSD6 (aterm or xterm).  I used the UTF-8 locale
to activate the multibyte locale code, which seems to be where most of
the display issues are.  Otherwise, that detail is unimportant.

Sorry I can't reproduce this particular issue, but it looks like the
prompt string you sent will be valuable in checking whether or not the
multiple-prompt-string-redraws problem has been solved.

Chet
-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
   Live Strong.  No day but today.
Chet Ramey, ITS, CWRU[EMAIL PROTECTED]http://cnswww.cns.cwru.edu/~chet/

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



Fixing /etc/profile

2006-10-05 Thread Doug Harris

I updated cygwin today and got to enjoy the fun of my shell no longer
working. Fortunately for my backside, I did search the mailing list
archive and found the answer required either setting a shopt or
modifying some CR/LF to just LF. No big deal.

The big deal, in my eyes, is that the one of the files that I had to
fix was /etc/profile. The timestamp on this file (prior to my fix) was
May 11, 2004 -- that would be the day I first installed cygwin on this
computer. I have not modified this from the original version.

Wouldn't it make sense that the default /etc/profile would work
out-of-the-box with the default bash installation?

Doug

p.s. A few quick helpful tips for people who are looking to fix their
own /etc/profile (and other files):

* The "file" command includes in its output "CRLF line terminators"
for files that have that
* "d2c /etc/profile" will quickly change the line endings in place.
Replace with other file names to fix those.
* Don't forget to check .bash_profile, .bashrc, etc
cd; file .bash* | grep "CRLF line terminators"

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



spaces in .bash_profile lead to "command not found"

2006-10-05 Thread Peter Jay Salzman
There are 4 blank lines in my .bash_profile:

   == start file
   echo 'BEGIN ~/.bash_profile'

   export ANT_HOME='/cygdrive/c/Java/apache-ant-1.6.5'
   export JAVA_HOME='/cygdrive/c/Java/jdk1.5.0_08'
   export CLASSPATH=''
   export EDITOR='vim'
   export PATH="${JAVA_HOME}/bin:${ANT_HOME}/bin:${PATH}"
   # export PS1='$ '


   # echo 'setting up aliases...'
   # alias ls='ls -F --color'
   # alias ll='ls -Fl --color'
   # alias la='ls -Fla --color'
   # alias lr='ls -Flr --color'
   # alias lar='ls -Flar --color'
   # alias desktop='cd /cygdrive/c/Documents\ and\ Settings/psalzman/Desktop'

   echo 'END ~/.bash_profile'
   == end file

Each blank line generates an error:

   $ source .bash_profile
   BEGIN ~/.bash_profile
   : command not found
   : command not found
   : command not found
   : command not found
   END ~/.bash_profile

However, if I comment all the blank lines out, I get no errors.  Each blank
line in this file seems to be causing a "command not found" error.  What
could be causing this?

Thanks,
Pete

--
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: spaces in .bash_profile lead to "command not found"

2006-10-05 Thread Jonathan Arnold

Peter Jay Salzman wrote:

There are 4 blank lines in my .bash_profile:

   == start file
   echo 'BEGIN ~/.bash_profile'

   export ANT_HOME='/cygdrive/c/Java/apache-ant-1.6.5'
   export JAVA_HOME='/cygdrive/c/Java/jdk1.5.0_08'
   export CLASSPATH=''
   export EDITOR='vim'
   export PATH="${JAVA_HOME}/bin:${ANT_HOME}/bin:${PATH}"
   # export PS1='$ '


   # echo 'setting up aliases...'
   # alias ls='ls -F --color'
   # alias ll='ls -Fl --color'
   # alias la='ls -Fla --color'
   # alias lr='ls -Flr --color'
   # alias lar='ls -Flar --color'
   # alias desktop='cd /cygdrive/c/Documents\ and\ Settings/psalzman/Desktop'

   echo 'END ~/.bash_profile'
   == end file

Each blank line generates an error:

   $ source .bash_profile
   BEGIN ~/.bash_profile
   : command not found
   : command not found
   : command not found
   : command not found
   END ~/.bash_profile

However, if I comment all the blank lines out, I get no errors.  Each blank
line in this file seems to be causing a "command not found" error.  What
could be causing this?


CR/LF where there should be CR. Try running d2u. And read the list for
more gotchas due to the bash upgrade.

--
Jonathan Arnold   http://www.buddydog.org

When cryptography is outlawed, bayl bhgynjf jvyy unir cevinpl.


--
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: spaces in .bash_profile lead to "command not found"

2006-10-05 Thread mwoehlke

Peter Jay Salzman wrote:

There are 4 blank lines in my .bash_profile:
[snip]

Each blank line generates an error:

   $ source .bash_profile
   BEGIN ~/.bash_profile
   : command not found
   : command not found
   : command not found
   : command not found
   END ~/.bash_profile

However, if I comment all the blank lines out, I get no errors.  Each blank
line in this file seems to be causing a "command not found" error.  What
could be causing this?


Have you eliminated CR's as the cause (RTFRA and STFLA if you don't know 
what I'm talking about). What version of bash are you using? It would be 
helpful if you read http://cygwin.com/problems.html, especially the part 
about ATTACHING (not pasting in-line) cygcheck output.


(Ooh... google finds lots of "wrong" results for STFLA, but the second 
RTFRA is my big-nasty-rant one ;-).)


--
Matthew
Don't use a hippo to... what was I saying?


--
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: spaces in .bash_profile lead to "command not found"

2006-10-05 Thread Larry Hall (Cygwin)

Jonathan Arnold wrote:

Peter Jay Salzman wrote:

There are 4 blank lines in my .bash_profile:

   == start file
   echo 'BEGIN ~/.bash_profile'

   export ANT_HOME='/cygdrive/c/Java/apache-ant-1.6.5'
   export JAVA_HOME='/cygdrive/c/Java/jdk1.5.0_08'
   export CLASSPATH=''
   export EDITOR='vim'
   export PATH="${JAVA_HOME}/bin:${ANT_HOME}/bin:${PATH}"
   # export PS1='$ '


   # echo 'setting up aliases...'
   # alias ls='ls -F --color'
   # alias ll='ls -Fl --color'
   # alias la='ls -Fla --color'
   # alias lr='ls -Flr --color'
   # alias lar='ls -Flar --color'
   # alias desktop='cd /cygdrive/c/Documents\ and\ 
Settings/psalzman/Desktop'


   echo 'END ~/.bash_profile'
   == end file

Each blank line generates an error:

   $ source .bash_profile
   BEGIN ~/.bash_profile
   : command not found
   : command not found
   : command not found
   : command not found
   END ~/.bash_profile

However, if I comment all the blank lines out, I get no errors.  Each 
blank

line in this file seems to be causing a "command not found" error.  What
could be causing this?


CR/LF where there should be CR. Try running d2u. And read the list for
more gotchas due to the bash upgrade.



Essentially correct but I believe you meant to say that CR/LF should be a
LF.

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

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



1.5.21: no read from ttyS0

2006-10-05 Thread Ring, Patrick
I am having trouble reading from the serial port on /dev/ttyS0.  I can
open the port, set attributes, and write data, but I never receive
anything on a read.  I have some older executables and an older cygwin
dll (1.5.19), and these still work (running in a DOS shell).  The old
executables don't work with the new dll, and they also don't work after
I recompile.  

I can send and receive data between the two computers using
hyperterminal, so I know that the hardware is ok.  I have checked the
serial port settings with stty after my program runs and after running
hyperterminal, and they are the same.

I have attached a test program.  I have only one serial port, so I
either use a serial loopback connector, or connect to another computer
through a null modem cable and use hyperterminal.

Thanks in advace for your help.
Patrick


cygcheck.out
Description: cygcheck.out


tryser.c
Description: tryser.c
--
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/

Reverting to older Cygwin installation?

2006-10-05 Thread mwoehlke
I've been keeping up with the new make, bash, etc, on my own desktop, 
but I'd like to try updating our build machine's packages to see if we 
can get some speed out of the new bash release. However, this being a 
build machine, breaking it would be *bad*.


I *want* to say I can downgrade (not uninstall and reinstall, downgrade) 
to the exact configuration we had by backing up the local install 
directory and - if needed - re-installing from there, but can someone 
confirm that this will (or at least "should") work?


--
Matthew
Don't use a hippo to... what was I saying?


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



0 Byte Files with SSL and LESS Packages

2006-10-05 Thread Torsten Giebl

Hello !


In the last days i updated my CYGWIN installation
and after that i have the following, even after
reinstalling the SSH-SSL Packages and the LESS
Packages :


[EMAIL PROTECTED] /usr/bin
$ ls -la less
-- 1 wizard Kein 0 Oct  4 13:47 less

[EMAIL PROTECTED] /usr/bin
$ ls -la ssh
-- 1 wizard Kein 0 Oct  4 13:47 ssh

[EMAIL PROTECTED] /usr/bin
$


CU

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



Is there a way to install old version cygwin?

2006-10-05 Thread lin q

Hi,
 I just installed the latest cygwin from scratch, it does not work with 
some important software I use everyday. I do not have the enough time to 
investigate the problem. Since the old version worked very well with my 
software, I am wondering if there is some way to install the old version?


Thanks.

_
Express yourself - download free Windows Live Messenger themes! 
http://clk.atdmt.com/MSN/go/msnnkwme002001msn/direct/01/?href=http://imagine-msn.com/themes/vibe/default.aspx?locale=en-us&source=hmtagline



--
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: Reverting to older Cygwin installation?

2006-10-05 Thread Larry Hall (Cygwin)

mwoehlke wrote:
I've been keeping up with the new make, bash, etc, on my own desktop, 
but I'd like to try updating our build machine's packages to see if we 
can get some speed out of the new bash release. However, this being a 
build machine, breaking it would be *bad*.


I *want* to say I can downgrade (not uninstall and reinstall, downgrade) 
to the exact configuration we had by backing up the local install 
directory and - if needed - re-installing from there, but can someone 
confirm that this will (or at least "should") work?




Well you should at the very least be able to restore the original state
by removing your Cygwin installation and installing from the local
download directory, assuming it hasn't been changed in any way and
that the packages there represented the totality of what you have
installed currently.  If in doubt, install it on a clean machine and
poke around with the result.

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

--
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: 0 Byte Files with SSL and LESS Packages

2006-10-05 Thread Larry Hall (Cygwin)

Torsten Giebl wrote:

Hello !


In the last days i updated my CYGWIN installation
and after that i have the following, even after
reinstalling the SSH-SSL Packages and the LESS
Packages :


[EMAIL PROTECTED] /usr/bin
$ ls -la less
-- 1 wizard Kein 0 Oct  4 13:47 less

[EMAIL PROTECTED] /usr/bin
$ ls -la ssh
-- 1 wizard Kein 0 Oct  4 13:47 ssh



It appears that you either have some bad packages or some
local permissions problems.  The former should be rectified by
installing the packages from an alternate mirror.  The latter
would require inspecting your Windows permissions for the user
doing the installation.


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

--
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: Is there a way to install old version cygwin?

2006-10-05 Thread Larry Hall (Cygwin)

lin q wrote:

Hi,
 I just installed the latest cygwin from scratch, it does not work with 
some important software I use everyday. I do not have the enough time to 
investigate the problem. Since the old version worked very well with my 
software, I am wondering if there is some way to install the old version?


Rerun 'setup.exe' and pick "Prev".

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

--
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: Look command not working for me

2006-10-05 Thread Larry Hall (Cygwin)

David Arnstein wrote:

When I type into my bash shell, for example
look doctor
I get
look: /usr/share/dict/words: No such file or directory

The directory /usr/share/dict does not even exist. I have reinstalled 
the util-linux package. No help.


Any suggestions? Cygcheck output is attached.



Maybe try the source package?  Dunno.  It's definitely not in the binary
package or anything else I can find via http://cygwin.com/packages/.


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

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



gpg hangs when decrypting/verifying signatures

2006-10-05 Thread Charli Li
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Please note that this may or may not have something to do with all of
the newsgroups/mailing lists above in the header.  Cygwin provides the
DLL so gpg can run; enigmail utilizes gpg to do its thing in emails; and
gpg is the backbone of this.

After updating my Thunderbird nightly (2.0b1) for a couple of days,
something went strange with gpg and enigmail.  Thunderbird kept hanging
forever just because it was trying to decrypt/verify a signature by
using a hung gpg process. I know this from looking in Sysinternals
Process Explorer, because there was a gpg process in the tree of
thunderbird.exe.  In order to get away from this problem, I have to kill
gpg one or more times, since it might just pop back up again.

Fortunately, though, I can still sign and encrypt messages, just like
this one.  As mentioned above, this message/thread may have something to
do with all of the above (mail header), so please send any replies to
the newsgroups/mailing lists above.  (Cygwinners, please don't send
email to my *other* email address!)

- --
Charli
- ---
"Sheesh, where'd you get all this stuff?"

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.1 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFJd3jKGyf4JaPChgRArhJAJwJFkHzkb2hF9V7hTHIgkoMg9dkiQCeLdOO
8A21UuTd9LhfcgKq0NTbBdE=
=t9ob
-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: bash scripts fail with bash3.1-8

2006-10-05 Thread Thomas Porschberg
Am Thu, 5 Oct 2006 09:38:23 -0400 (EDT)
schrieb Igor Peshansky :

> On Thu, 5 Oct 2006, Thomas Porschberg wrote:
> 
> > Am Wed, 04 Oct 2006 10:19:52 -0500
> > schrieb mwoehlke :
> >
> > > Thomas Porschberg wrote:
> > > > Am Tue, 3 Oct 2006 17:02:29 +0100
> > > > schrieb "Dave Korn" :
> > > >> On 03 October 2006 16:43, Turly O'Connor wrote:
> > > >>> By way of an example as to what broke, note that in the
> > > >>> following that  "cleartool" is not a cygwin tool (it's a
> > > >>> Windows executable), writing its CRLF-terminated output to
> > > >>> Windows' stdout.
> > > >>>
> > > >>> CHECKOUTS=`cleartool lsc -all -cvi -s`  # list all my
> > > >>> checkouts
> > > >>>
> > > >>> I used to be able to do
> > > >>>
> > > >>> for one in $CHECKOUTS ; do echo $one Hello ; done
> > > >>>
> > > >>> C:/Path/To/file1 Hello
> > > >>> C:/Path/To/file2 Hello
> > > >>>
> > > >>> Now it seems that "$one" above contains the binary CR, so I
> > > >>> get:
> > > >>>
> > > >>> Hello h/To/file1
> > > >>> Hello h/To/file2
> > > >>>
> > > >>> What do I need to do to get this working again?
> > > >>   How about
> > > >>
> > > >> CHECKOUTS=`cleartool lsc -all -cvi -s | d2u`  # list all my
> > > >> checkouts
> > > >>
> > > >> or
> > > >>
> > > >> for one in $((echo $CHECKOUTS | d2u)) ; do echo $one Hello ;
> > > >> done
> > > >>
> > > >> depending on how happy cleartool is on piping output to a
> > > >> cygwin program.
> > > >
> > > > This is exactly the problem I have with my sqlplus call.
> > > > Is there a way to solve it without introducing the d2u filter ?
> > >
> > > You could try the new shopt... but have you considered arranging
> > > for 'sqlplus' to point to a shell script that would exec
> > > 'sqlplus.exe' and pipe it through d2u?
> > >
> > I tried the new "shopt -s igncr;#' but it does not work for this
> > case. (It does work if I have CR polluted files but not with the
> > piped stdout result)
> > Your approach with the additional shell script looks good. Thank
> > you. But it was not necessary in the past and now I have to do it
> > for every Windows program I call from cygwin and that writes to
> > stdout. ( ATM I see only sqlplus in my case :-) ).
> 
> If you want textmode pipes, add "nobinmode" to your CYGWIN environment
> variable.  See 
> for more information.

Yep, cool thing. It works and now I can abandon my sqlplus wrapper
script. Thank you.

Thomas

-- 


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