Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Could Strawberry Perl be messing up bindkey settings on tcsh?

by Just in (Sexton)
on Oct 18, 2010 at 14:05 UTC ( [id://865941]=perlquestion: print w/replies, xml ) Need Help??

Just in has asked for the wisdom of the Perl Monks concerning the following question:

Rather off topic, and rather insinuating, but googling has run off at tangents so I do beg your pardon. However someone may have some insight . . .

I've downloaded and installed Strawberry Perl 5.8.8.4 on two Vista boxes both to C:\strawberry, both have tcsh courtesy of cygwin in C:\bin, and both have AS 5.10 in C:\Perl which I manage by editing %Path% as and when I please.

It seems that after the Strawberry install the up key no longer shows the last command in tcsh, instead the cursor goes up a line. In fact all the keybindings are being ignored, and all I'm getting is "^[[A: Command not found."

source /etc/profile.d/bindkey.tcsh

has no effect, and neither does uninstalling Strawberry.

I was able to use Windows restore to get tcsh to behave so it's not as dire as all that, but was wondering if any of you have any ideas/pointers that I could try?

cygwin version follows:

$ uname -a CYGWIN_NT-6.0 mimi-PC 1.7.7(0.230/5/3) 2010-08-31 09:58 i686 Cygwin

Just in

Replies are listed 'Best First'.
Re: Could Strawberry Perl be messing up bindkey settings on tcsh?
by Corion (Patriarch) on Oct 18, 2010 at 14:17 UTC

    Something else changed. Strawberry Perl does not really adjust anything.

    Maybe you can try reinstalling Strawberry Perl now to see if the problem is directly connected to it?

      It's quite definite - I've done a system restore, got the up key to work in tcsh as expected.

      Just to make sure it's not a 5.8 thing, I downloaded 5.12.0.1.msi and installed it to C:\strawberry

      Fresh after the install, no reboot needed, I launched tcsh and after pressing the up key I get the dreaded '^[[A: Command not found."

      Unlikely as it seems, what could be the cause?

      I'll repeat the process tomorrow and do text registry snapshots before, but I doubt anything will be evident from the diff.

      Just in

Re: Could Strawberry Perl be messing up bindkey settings on tcsh?
by kcott (Archbishop) on Oct 18, 2010 at 15:16 UTC

    If you've moved tcsh from C:\cygwin\bin to C:\bin, then that may be where your problem lies.

    Under Cygwin, C:\bin is actually /cygdrive/c/bin which is different from /bin (where tcsh lives).

    Further, you say you've edited %Path% (which is fine for the MSWindows environment) but do you also need to edit $PATH (for the Cygwin environment).

    Two other gotchas (related to Cygwin symlinks):

    • What you see under Cygwin as tcsh, is actually tcsh.exe
    • C:\cygwin\usr\bin probably looks empty; however which tcsh from Cygwin, probably shows /usr/bin/tcsh

    Additional Info:

    I have the same Strawberry Perl as you indicate installing (5.12.0.1 MSI) but I'm using XP not Vista.

    Neither MSWindows nor Strawberry Perl know anything about tcsh:

    Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. C:\_\tmp>tcsh 'tcsh' is not recognized as an internal or external command, operable program or batch file. C:\_\tmp>perl -wE "`tcsh`" 'tcsh' is not recognized as an internal or external command, operable program or batch file. C:\_\tmp>

    The up-arrow works fine in tcsh (under Cygwin). Here I launch tcsh (from the bash shell), run which tcsh then hit up-arrow to get the last command:

    ken@Miranda ~ $ tcsh [ken@Miranda ~]$ which tcsh /usr/bin/tcsh [ken@Miranda ~]$ which tcsh

    And just for completeness, the bash shell finds tcsh in the same place:

    ken@Miranda ~/c/_/tmp $ which tcsh /usr/bin/tcsh

    -- Ken

Re: Could Strawberry Perl be messing up bindkey settings on tcsh?
by bingos (Vicar) on Oct 18, 2010 at 15:31 UTC

    Strawberry Perl installer will set the environment variable TERM to dumb

    I have amended my cygwin.bat launcher thing to have:

    set TERM=cygwin

      My MSWindows TERM remains dumb; my Cygwin TERM is xterm:

      C:\_\tmp>echo %TERM% dumb C:\_\tmp> ken@Miranda ~ $ echo $TERM xterm ken@Miranda ~

      -- Ken

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://865941]
Approved by marto
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2024-04-26 07:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found