delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/01/12/13:51:56

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <81CC73FC2FACD311A2D200508B8B88AA1ADB10@kurion_exch.kurion.com>
From: Dan Lipofsky <dlipofsky AT kurion DOT com>
To: "'cygwin AT cygwin DOT com'" <cygwin AT cygwin DOT com>
Subject: RE: xterm-like terminal emulator
Date: Fri, 12 Jan 2001 12:40:57 -0600
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)

> You assume too much.  Unless you changed /bin/sh on your system to be a
> copy/link of bash, /bin/sh != /bin/bash.  You're getting /bin/sh with your
> attempt.  /bin/sh is ash by default which has none of the features you're 
> trying to use.

That was the problem.  However, copying bash to sh does not fix
the problem completely.  When you run bash as "sh" it behaves
like sh - it doesn't read .bash_profile or .bashrc.

I have my shell set up as /bin/bash in /etc/passwd,
but I guess that rxvt does not honor this.

So I finally figured out why this works:
	bash --noprofile --norc -c "rxvt -ls -fn Courier-13"
Bash is running rxvt which then runs bash instead of sh.
It does this because bash sets the SHELL variable, which
rxvt looks at to decide the shell to run.  So I set it manually
instead and my problems are solved.  Here is my new BAT script:
	@echo off
	C:
	chdir \cygwin\bin
	set SHELL=/bin/bash
	rxvt -fn Courier-13 -sr -ls -title bash
Perhaps we should add this to the FAQ somewhere.
I am using rxvt from http://www.io.com/~bub/rxvt.html

Thank you to everyone for your help.
- Dan

 

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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