This is the mail archive of the
mailing list for the Cygwin project.
Re: tcsh and chere-0.3-1
- From: Christopher Faylor <cgf-no-personal-reply-please at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Wed, 13 Oct 2004 19:02:13 -0400
- Subject: Re: tcsh and chere-0.3-1
- References: <Pine.GSO.4.44.0410131538001.21185-100000@dragon>
- Reply-to: cygwin at cygwin dot com
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:
> # Apparently -l only applies if it is the only argument
> # so this may not work
> 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.
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html