delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/07/13/16:01:25

X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: =?ISO-8859-1?Q?Ren=E9_Berber?= <r DOT berber AT computer DOT org>
Subject: Re: Problem after fresh Cygwin installation
Date: Fri, 13 Jul 2007 15:00:46 -0500
Lines: 40
Message-ID: <f78lli$61u$1@sea.gmane.org>
References: <6c18a4f0707131111j3435d135m8619296a0d506cb5 AT mail DOT gmail DOT com>
Mime-Version: 1.0
User-Agent: Thunderbird 2.0.0.4 (Windows/20070604)
In-Reply-To: <6c18a4f0707131111j3435d135m8619296a0d506cb5@mail.gmail.com>
OpenPGP: url=hkp://wwwkeys.pgp.net
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Bernd Bartmann wrote:

[snip]
> Now comes the weird part. I created a new file hello.c in my home dir
> with vim. ls -al shows that the file exists, but "more hello.c" gives
> no output at all. I just get a new shell prompt.

This is going to sound strange but, which more are you running?  There is
Windows' own more, and package util-linux's more, which is the one you expe=
cted
but perhaps didn't install.

Does `cat hello.c` work?

Does `less hello.c` work?

> The same problem
> exits when I run "gcc hello.c -o hello". Nothing happens, not even an
> error message is displayed and no file hello is created.

The parameter "-o hello" actually produces hello.exe, does that file exist?

> Also, I don't get a colored shell prompt, but only a $ sign.
>=20
> Any clues?

`echo $PS1` shows how your prompt is defined, I think I have the default se=
tting
and get this result:

$ echo $PS1
\[\033]0;\w\007 \033[32m\]\u@\h \[\033[33m\w\033[0m\] $

If you get anything else that means that you changed it, somewhere in your =
bash
initialization files (.bashrc, .bash_profile, etc.)
--=20
Ren=E9 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019