Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
* File name expansion in (t)csh on RedHat 6.1 Linux.
@ 2000-03-21  5:00 Gerlach van Beinum
  2000-03-21  5:00 ` Rich Griswold
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Gerlach van Beinum @ 2000-03-21  5:00 UTC (permalink / raw)


Since yesterday we have a DS10 with RedHat 6.1 Linux. We had already several
I386 Linuxes. One thing that is very strange for us is the fact that the
command 'ls [A-Z]*'  lists ALL files in the directory and not only the files
that start with an upper case letter. This happens in the csh and in tcsh.
The bash does not have this 'feature'... I presume this behaviour can be
switched off, but I can not find how... Is there someone out there who
recognizes this??

gerlach van beinum

G.vanBeinum@bouw.tno.nl








^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: File name expansion in (t)csh on RedHat 6.1 Linux.
  2000-03-21  5:00 File name expansion in (t)csh on RedHat 6.1 Linux Gerlach van Beinum
@ 2000-03-21  5:00 ` Rich Griswold
  2000-03-21  5:00   ` Tony Hammitt
  2000-03-22  5:00 ` Gerlach van Beinum
  2000-03-22  5:00 ` Michal Jaegermann
  2 siblings, 1 reply; 5+ messages in thread
From: Rich Griswold @ 2000-03-21  5:00 UTC (permalink / raw)


Gerlach van Beinum wrote:
> 
> Since yesterday we have a DS10 with RedHat 6.1 Linux. We had already several
> I386 Linuxes. One thing that is very strange for us is the fact that the
> command 'ls [A-Z]*'  lists ALL files in the directory and not only the files
> that start with an upper case letter. This happens in the csh and in tcsh.
> The bash does not have this 'feature'... I presume this behaviour can be
> switched off, but I can not find how... Is there someone out there who
> recognizes this??
> 
> gerlach van beinum
> 
> G.vanBeinum@bouw.tno.nl

I have the same problem on my AS 200 with RH6.1.  I also see this
problem with sort:

/home/richard > cat foo
a
Z
B
d
D
8
c
/home/richard > cat foo | sort
8
a
B
c
D
d
Z

I didn't have this problem with RH5.2 on my Alpha, and I don't have the
problem with RH6.1 on x86.  I suspect that ls and sort have the same
problem.

-- 

Richard Griswold - griswold@acm.org

On the products of the Sirius Cybernetics Corporation:

"It is easy to be blinded to the essential uselessness of them by
the sense of achievement you get from getting them to work at all.
In other words... their fundamental design flaws are completely
hidden by their superficial design flaws."
  Douglas Adams, "The Hitchhiker's Guide to the Galaxy"

#include <stddisclaimer.h>



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: File name expansion in (t)csh on RedHat 6.1 Linux.
  2000-03-21  5:00 ` Rich Griswold
@ 2000-03-21  5:00   ` Tony Hammitt
  0 siblings, 0 replies; 5+ messages in thread
From: Tony Hammitt @ 2000-03-21  5:00 UTC (permalink / raw)


I think that you have some environment variable with messed up settings
that make it ignore case.  

Could you guys type 'set' and 'setenv' and post that?

I don't have the problem; here's what I get:

 =-] set
addsuffix
argv    ()
cwd     /home/username
dirstack        /home/username
echo_style      both
edit
gid     500
group   username
history 200
home    /home/username
loginsh
owd
path    (/home/username/bin /usr/local/games/bin /bin /usr/local/bin /usr/bin/X11 /usr/sbin /usr/bin /sbin /root/bin /usr/games /mnt/old/usr/bin /mnt/old/usr/X11R6/bin)
prompt   =-] 
prompt2 %R? 
prompt3 CORRECT>%R (y|n|e|a)? 
shell   /bin/tcsh
shlvl   1
status  0
tcsh    6.08.00
term    xterm
tty     pts/0
uid     500
user    username
version tcsh 6.08.00 (Astron) 1998-10-02 (alpha-dec-linux) options 8b,nls,dl,al,rh,color

 =-] setenv
DISPLAY=somealpha:0.0
TERM=xterm
HOME=/home/username
PATH=/home/username/bin:/usr/local/games/bin:/bin:/usr/local/bin:/usr/bin/X11:/usr/sbin:/usr/bin:/sbin:/root/bin:/usr/games:/mnt/old/usr/bin:/mnt/old/usr/X11R6/bin
SHELL=/bin/tcsh
MAIL=/var/spool/mail/username
LOGNAME=username
HOSTTYPE=alpha
VENDOR=dec
OSTYPE=linux
MACHTYPE=alpha
SHLVL=1
PWD=/home/username
USER=username
GROUP=username
HOST=anotheralpha
REMOTEHOST=somebox
HOSTNAME=anotheralpha


(BTW my hostnames etc. are made up)

Tony Hammitt


Rich Griswold wrote:
> 
> Gerlach van Beinum wrote:
> >
> > Since yesterday we have a DS10 with RedHat 6.1 Linux. We had already several
> > I386 Linuxes. One thing that is very strange for us is the fact that the
> > command 'ls [A-Z]*'  lists ALL files in the directory and not only the files
> > that start with an upper case letter. This happens in the csh and in tcsh.
> > The bash does not have this 'feature'... I presume this behaviour can be
> > switched off, but I can not find how... Is there someone out there who
> > recognizes this??
> >
> > gerlach van beinum
> >
> > G.vanBeinum@bouw.tno.nl
> 
> I have the same problem on my AS 200 with RH6.1.  I also see this
> problem with sort:
> 
> /home/richard > cat foo
> a
> Z
> B
> d
> D
> 8
> c
> /home/richard > cat foo | sort
> 8
> a
> B
> c
> D
> d
> Z
> 
> I didn't have this problem with RH5.2 on my Alpha, and I don't have the
> problem with RH6.1 on x86.  I suspect that ls and sort have the same
> problem.
> 
> --
> 
> Richard Griswold - griswold@acm.org
> 
> On the products of the Sirius Cybernetics Corporation:
> 
> "It is easy to be blinded to the essential uselessness of them by
> the sense of achievement you get from getting them to work at all.
> In other words... their fundamental design flaws are completely
> hidden by their superficial design flaws."
>   Douglas Adams, "The Hitchhiker's Guide to the Galaxy"
> 
> #include <stddisclaimer.h>



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: File name expansion in (t)csh on RedHat 6.1 Linux.
  2000-03-21  5:00 File name expansion in (t)csh on RedHat 6.1 Linux Gerlach van Beinum
  2000-03-21  5:00 ` Rich Griswold
@ 2000-03-22  5:00 ` Gerlach van Beinum
  2000-03-22  5:00 ` Michal Jaegermann
  2 siblings, 0 replies; 5+ messages in thread
From: Gerlach van Beinum @ 2000-03-22  5:00 UTC (permalink / raw)


The solution is in the 'locale' stuff. In /etc/profile.d there are scripts
that are activated vi /etc/chs.login
Renaming /etc/profile.d solves the problem...
Is this something for the FAQ???
gerlach
Gerlach van Beinum <G.vanBeinum@bouw.tno.nl> wrote in message
news:8b7icc$isg$1@news.surfnet.nl...
> Since yesterday we have a DS10 with RedHat 6.1 Linux. We had already
several
> I386 Linuxes. One thing that is very strange for us is the fact that the
> command 'ls [A-Z]*'  lists ALL files in the directory and not only the
files
> that start with an upper case letter. This happens in the csh and in tcsh.
> The bash does not have this 'feature'... I presume this behaviour can be
> switched off, but I can not find how... Is there someone out there who
> recognizes this??
>
> gerlach van beinum
>
> G.vanBeinum@bouw.tno.nl
>
>
>
>
>





^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: File name expansion in (t)csh on RedHat 6.1 Linux.
  2000-03-21  5:00 File name expansion in (t)csh on RedHat 6.1 Linux Gerlach van Beinum
  2000-03-21  5:00 ` Rich Griswold
  2000-03-22  5:00 ` Gerlach van Beinum
@ 2000-03-22  5:00 ` Michal Jaegermann
  2 siblings, 0 replies; 5+ messages in thread
From: Michal Jaegermann @ 2000-03-22  5:00 UTC (permalink / raw)


Gerlach van Beinum (G.vanBeinum@bouw.tno.nl) wrote:
: Since yesterday we have a DS10 with RedHat 6.1 Linux. We had already several
: I386 Linuxes. One thing that is very strange for us is the fact that the
: command 'ls [A-Z]*'  lists ALL files in the directory and not only the files
: that start with an upper case letter. This happens in the csh and in tcsh.

I **think** that this may have someting to do with a broken collating
sequence if at least one of environment variables LC_ALL or LANG is set.
At least if one of these is set to 'en_US' then there is no way to
prevent 'sort' from folding an upper and lower case.  Try to unset both
of these and check how this will affect results.

If this helps you may prevent setting these variables on a startup of
tcsh by doing 'chmod a-x /etc/profile.d/lang.csh'; but you may still
want to keep something from there so you may want just edit, or replace,
this setup file with something of your choice.

Weirdly enough running 'ls' from bash does not seem to be affected
even if a corresponding LC_COLLATE file still seems to be consulted.
I am not sure what is going on and 'sort' is buggered does not matter
from where you are running it.  In any case, just yesterday I filed
a bug report on bugzilla.redhat.com, filing it under "Platform: Alpha"
as this is where I can confirm this, and got a note today from
bugzilla that this report was changed to "Platform: All" as everybody
appears to be broken in the same manner.  So do not feel chosen. :-)

  Michal




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2000-03-22  5:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-03-21  5:00 File name expansion in (t)csh on RedHat 6.1 Linux Gerlach van Beinum
2000-03-21  5:00 ` Rich Griswold
2000-03-21  5:00   ` Tony Hammitt
2000-03-22  5:00 ` Gerlach van Beinum
2000-03-22  5:00 ` Michal Jaegermann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox