Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 17852 - tcsh-6.12-r2 is by default case insensitive
Summary: tcsh-6.12-r2 is by default case insensitive
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Fabian Groffen
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-19 21:34 UTC by Todd Geders
Modified: 2005-09-30 12:33 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Todd Geders 2003-03-19 21:34:18 UTC
This recently added behavior is quite annoying to the people used to it being
case insensitive.  Furthermore, the setting is unable to be adjusted in the
.tcsh.config of the user, but rather has to be globally edited in the
/etc/profile.d/tcsh-settings (and only by root).

I've edited the .tcsh-settings to allow a user to choose to have this changed
feature or not, via setting a TCSH_IGNORE_CASE variable in .tcsh.config.  I
personally would suggest that the enhanced autocomplete (with case insensitivity
 and such) be turned OFF by default (as before), but if higher powers have
deemed it necessary, at least now it can be chosen by the user.  My coding
skills are severely lacking, so if you guys have a more elegant way of doing
what I have, please do.  Thanks.

diff /etc/profile.d/tcsh-settings.original /etc/profile.d/tcsh-settings
87c87,91
< set complete=enhance
---
> if ( $?TCSH_IGNORE_CASE ) then
>     set complete=enhance
> else
>     unset complete
> endif

diff ~/.tcsh.config.original ~/.tcsh.config
65a66,73
>
> #
> # Ignore case?
> #
> # Value: set to enable, unset to disable.  (Default: enabled)
> #
> setenv TCSH_IGNORE_CASE 1
>
Comment 1 Todd Geders 2003-03-20 20:04:16 UTC
Autocorrection is also annoying and unable to be changed by the user...the following fixes that (and also contains fixes for my above bug).  With what's below, the defaults are same as they come now, but now they are at least user modifiable...

diff /etc/profile.d/tcsh-settings.original /etc/profile.d/tcsh-settings
87c87,91
< set complete=enhance
---
> if ( $?TCSH_SHELL_IGNORE_CASE ) then
>     set complete=enhance
> else
>     unset complete
> endif
90c94,98
< set correct=all
---
> if ( $?TCSH_SHELL_SPELLING_COMPLETION ) then
>     set correct=all
> else
>     unset correct
> endif



diff ~/.tcsh.config.original ~/.tcsh.config
65a66,79
>
> #
> # Ignore case?
> #
> # Value: set to enable, unset to disable.  (Default: enabled)
> #
> #setenv TCSH_SHELL_IGNORE_CASE 1
>
> #
> # Perform both completion and spelling correction of command line?
> #
> # Value: set to enable, unset to disable.  (Default: enabled)
> #
> setenv TCSH_SHELL_SPELLING_COMPLETION 1

Comment 2 Alain Penders (RETIRED) gentoo-dev 2003-03-21 17:01:48 UTC
I'll look into adding this in the next days, however, I want to point out two issues:

- The user can *always* override settings simply by entering them in his .tcshrc.
- complete=enhance does more than just making command line completion case
  insensitive, so controlling it with TCSH_SHELL_IGNORE_CASE isn't 100% accurate.
Comment 3 Todd Geders 2003-03-21 17:15:02 UTC
Oh, I completely agree about the .cshrc/.tcshrc being able to override this behavior, but since it looks like .tcsh.config is trying to be the centralized tcsh configuration file for the user (with conveinent descriptions of what each setting does), I suggest it would be best for users to allow all the defaults given in /etc/profile.d/tcsh-settings to be easily modified in ~/.tcsh.config.  My tcsh behavior changed after updating and nothing in the ~/.tcsh.config could return my behavior to normal.  

As for the complete=enhance, I am only casually familiar with this setting based off of its description in tcsh-settings, so I agree it may not be 100% accurate.
Comment 4 Alain Penders (RETIRED) gentoo-dev 2003-03-21 18:00:38 UTC
Ah yes... understood.  The previous tcsh config files were very simplistic and did
things in the wrong place causing some bugs that people have been reporting.  I
figured it was best to just replace them altogether with a more feature-complete
set, and provide the config file to give those people who don't know much about
tcsh a chance to easily change them.  And those people who use TCSH enough to care
about it's exact behaviour can easily enough create their own .tcshrc.

Anyway, I'll try to add your suggestions in a backward compatible way.

Thanks!
Comment 5 Fabian Groffen gentoo-dev 2005-09-27 12:07:34 UTC
note to self: done
Comment 6 Fabian Groffen gentoo-dev 2005-09-30 12:33:36 UTC
Fixed in 6.14-r1