RE: Cygwin broken after update (PATH problem?)

2006-10-30 Thread Com MN PG P E B Consultant 3
> One thing to try would be temporarily adding a text mount for /etc and
> seeing if it helps. 

Sorry, what exactly does it mean "to add a *text* mount"?

Ronald
-- 
Ronald Fischer (phone +49-89-63676431)
mailto:[EMAIL PROTECTED]

--
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 broken after update (PATH problem?)

2006-10-23 Thread Com MN PG P E B Consultant 3
> >>   Your /etc/profile has DOS-style CRLF line endings.
> > 
> > Well, the problem is that there *is* no /etc/profile at all.
> 
>   Well, that tells us two things:
> 
> 1)  Setup must have failed part-way through.  Normally 
> re-running it, with
> "Install from local package directory", and clicking through 
> all the default
> options, and letting it run to completion should fix any 
> problems, but I see
> you tried that already.  Hmm.

No, I run setup again from the *website*. But I think this must
be even more safer than just doing it locally.

> >>   You will, I'm sure, not have updated your version of 
> bash without reading
> >> the relevant release announcement,
> > 
> > What type of announcement? 
> 
>   The release announcements, that are posted to the 
> cygwin-announce list as
> well as to the main cygwin list, every time that a cygwin 
> package is updated.
> Weren't you curious about what updates you were going to get 
> and in what way
> they would be different from what you already had installed?  

Honestly, no, not at all. Yes, this makes me an ignorant, but the
main reason I went to redo the setup, was that I wanted to install
a new package, and when doing this I thought it might be a good
idea to update everything, to get the most recent bug fixes 
and so on. So I wasn't that interested in new features.

> This one:
> 
> http://cygwin.com/ml/cygwin-announce/2006-09/msg6.html
> 
> seems to explain at least part of your problem: self-overwriting error
> messages are a sign of CRLF line-ends.

I see. Indeed I did modify the profile, and although I normally take
care about
the line endings (the editor is set to keep line endings style), it
might be 
that I also had used on one occasion a different editor which did not
observe
this policy. Not very likely, but I don't want to rule out this
possibility.

But this would not explain why the /etc/profile got *erased*.

However, the announcement says that one should not have bash running
while
doing the setup. I think I did have a cygwin window open, running zsh on
top of bash.

> > I went to http://cygwin.com/ (on this
> > page, there is definitely no "release announcement" to see), 
> 
>   Not all the documentation at the cygwin.com website is on 
> the front page.
> It wouldn't all fit.  You're expected to have browsed the 
> docs, faq and
> mailing-list summaries of your own accord.  (The fact that you're here
> suggests you /did/ read the mailing-list summary page...)

Yes, I misunderstood you here. I thought you wanted to suggest that
the announcements of the most recent release were supposed to be
always published on the front page (or at least represented via a
direct link, as it is the case on some other software homepages).

> > So it seems that setup did 
> not overwrite,
> > but delete it, which is really kind of strange.
> 
>   Yep, it's absolutely not meant to do that.  Which means 
> that something went
> badly wrong, but it's a bit hard to guess what.
> 
>   If setup.exe doesn't repair the system for you, you can get 
> a fresh copy of
> /etc/profile out of /etc/defaults/etc.  

Thank you, I will try it.

Ronald
-- 
Ronald Fischer (phone +49-89-63676431)
mailto:[EMAIL PROTECTED]

--
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 broken after update (PATH problem?)

2006-10-22 Thread Com MN PG P E B Consultant 3
 

> -Original Message-
> From: Dave Korn [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, October 19, 2006 11:36 AM
> To: cygwin@cygwin.com
> Subject: RE: Cygwin broken after update (PATH problem?)
> 
> On 19 October 2006 09:13, Com MN PG P E B Consultant 3 wrote:
> 
> >> No such file or directory
> >> No such file or directory
> >> command not found
> >> command not found
> > 
> 
>   Your /etc/profile has DOS-style CRLF line endings.

Well, the problem is that there *is* no /etc/profile at all.

Here is the content of my etc:

 Volume in drive C is System
 Volume Serial Number is 84E7-BD21

 Directory of C:\cygwin\etc

17.10.2006  12:22  .
17.10.2006  12:22  ..
22.08.2003  18:12 2.557 a2ps-site.cfg
22.08.2003  18:1215.071 a2ps.cfg
17.10.2006  12:18  alternatives
03.03.2006  06:08   215.739 bash_completion
17.10.2006  12:18  bash_completion.d
08.02.2003  12:36 1.356 csh.cshrc
09.10.2003  16:49   404 csh.login
17.10.2006  12:18  defaults
26.11.2005  08:07 4.839 enscript.cfg
17.10.2006  12:18  fonts
21.10.2005  10:05   770 group
21.10.2005  08:07   479 hosts.lnk
21.10.2005  10:36   139.967 lynx.cfg
22.05.2005  09:17 1.898 mime.types
22.05.2005  09:1787.414 Muttrc
21.10.2005  08:07   495 networks.lnk
21.10.2005  08:07 1.691 passwd
19.10.2006  09:33  postinstall
17.10.2006  12:24  preremove
17.10.2006  12:24  profile.d
21.10.2005  08:07   495 protocols.lnk
21.10.2005  08:07   495 services.lnk
19.10.2006  09:33  setup
17.10.2006  12:18  skel
17.10.2006  12:22  ssmtp
21.04.2005  22:3713.717 termcap
16.11.2005  20:56 4.224 wgetrc
17.10.2006  12:19  X11
  17 File(s)491.611 bytes
  13 Dir(s)   9.771.290.624 bytes free


>   You will, I'm sure, not have updated your version of bash 
> without reading
> the relevant release announcement,

What type of announcement? I went to http://cygwin.com/ (on this
page, there is definitely no "release announcement" to see), then
clicked on "install or update", which executed setup, then I got
a list of possible packages (in which I added a few), and let it
run.

Isn't this the way an update is supposed to be done?

>   It won't overwrite a locally-modified /etc/profile, that's 
> deliberate.

And it is a good thing to do. So it seems that setup did not overwrite,
but delete it, which is really kind of strange.

Ronald
-- 
Ronald Fischer (phone +49-89-63676431)
mailto:[EMAIL PROTECTED]

--
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 broken after update (PATH problem?)

2006-10-19 Thread Com MN PG P E B Consultant 3
I had used Cygwin happily for many month. Now I wanted to update it and
it does not work
anymore. For example, when I click on the Cygwin Icon to start a bash
shell, it first 
displays the error messages

: No such file or directory
: No such file or directory
: command not found
: command not found

and then doesn't find any programs (i.e. I can't do a ls, cat, or
whatsoever):

bash-3.1$ ls
bash: ls: command not found

The programs *are* right there in C:\cygwin\bin, but an echo $PATH
revealed that this directory 
is not in the PATH:

bash-3.1$ echo $PATH
/c/Program Files/CatPC/Bin:/c/Program
Files/CatPC/Windows/System32:/c/WINNT/syst
em32:/c/WINNT:/c/WINNT/System32/Wbem:/c/Program Files/Employee
Services/:/c/Prog
ram Files/IDM computer/UltraEdit10.10c:/c/Program
Files/IXOS/bin:/c/SWS4/NTBIN
bash-3.1$

I guess the PATH is supposed to be set in /etc/profile, but when I check
C:\cygwin\etc, there is
no profile. Interestingly, csh.cshrc and csh.login *are* there.

Here is how I had performed the cygwin update:

First I reloaded setup.exe from the Cygwin website, to get the most
recent version of setup.
Then I executed setup. When setup asked me where to put the cygwin
directory etc., I always
kept the default values.

After I had observed that my bash doesn't work anymore, I repeated the
setup, to give it
a chance to cleanup any inconsistencies, but it didn't change anything.

Ronald
-- 
Ronald Fischer (phone +49-89-63676431)
mailto:[EMAIL PROTECTED]


cygcheck.out
Description: cygcheck.out
--
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: zsh as login shell

2005-10-24 Thread Com MN PG P E B Consultant 3
 
> Use mkzsh to do this.  For help, type 'mkzsh --help'

Thank you, this is exactly what I was looking for.

> > It works kind of, but I can't get zsh executed as login 
> shell. The BAT
> > file invoking the bash login shell calls bash using
> >
> >  bash --login -i
> 
> See the '-l' option of zsh in the manpages.

Thank you, this works equally well.

I had searched the manpages for this option, but overlooked it...

Ronald

--
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: zsh as login shell

2005-10-24 Thread Com MN PG P E B Consultant 3
> What about editing /etc/passwd? Pesonally, I use customized 
> cygwin.bat.

How exactly would this work? After all, we are talking about Windows
Batch skripts,
don't we? And they are not aware of /etc/passwd. 

But maybe I didn't get your point. How do you suggest that I should
modify my /etc/passwd?

Ronald

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



zsh as login shell

2005-10-24 Thread Com MN PG P E B Consultant 3
I would like to have on my Windoze desktop an Icon for zsh running under

Cygwin, similar to the standard Cygwin Icon which runs a bash login
shell,
so that I can choose whether to get a window using bash or using zsh.

It works kind of, but I can't get zsh executed as login shell. The BAT
file
invoking the bash login shell calls bash using

  bash --login -i

but zsh has no equivalent to the --login option, so I just use

  zsh -i

which makes the shell interactive, but not login. Zsh considers itself a
login
shell iff it is called under a name starting with a dash.

Is there an elegant solution to this problem? Of course I could

  cp -- zsh -zsh

and call -zsh, but I would have then to redo this everytime I update zsh
to a 
newer version. Another possibility would be to execute a shell script
using
bash and in this script do an

  exec -a -zsh zsh -I

But maybe someone knows a better way to do this?

Ronald 
-- 
Ronald Fischer <[EMAIL PROTECTED]>
 

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