delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/10/13/19:01:54

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
Date: Wed, 13 Oct 2004 19:02:13 -0400
From: Christopher Faylor <cgf-no-personal-reply-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: tcsh and chere-0.3-1
Message-ID: <20041013230213.GA14233@trixie.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <Pine DOT GSO DOT 4 DOT 44 DOT 0410131538001 DOT 21185-100000 AT dragon>
Mime-Version: 1.0
In-Reply-To: <Pine.GSO.4.44.0410131538001.21185-100000@dragon>
User-Agent: Mutt/1.4.1i

On Wed, Oct 13, 2004 at 03:58:02PM -0600, Andrew Grimm wrote:
>The new (very cool!) chere package doesn't work with tcsh, at least on my
>system.  The problem is that "tcsh -l" doesn't work with any additional
>arguments.  There is even a comment to that effect in the script:
>
>tcsh )
>        # Apparently -l only applies if it is the only argument
>        # so this may not work
>        SHELL_EXE="/bin/tcsh.exe"
>        SHELL_CMD="-l -c \\\"cd '%L'; exec $SHELL_EXE\\\""
>
>If I run this, the tcsh immediately bombs out, closing the shell window,
>because tcsh exits when it sees the additional arguments.
>
>There may not be a perfect solution because tcsh won't work with the
>code pattern used for the other shells.  If you make the exec'd shell a
>login shell it cd's to your home directory which defeats the purpose of
>the package.  This hack works for me, it doesn't create a real login
>shell but it fakes one fairly well:

Actually, All shells which support -l seem to cd to the home directory.
I'm not sure what the -l adds to the above since the above code just calls
the shell again after cd'ing to the directory.

It almost seems like you could just use to invoke the real shell in all
cases.  That would be faster.

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/

- Raw text -


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