[: too many arguments

Satish Balay balay at fastmail.fm
Tue Feb 24 03:37:43 UTC 2004


On Mon, 23 Feb 2004, Marcus Schuetz wrote:

> Recently I noticed getting the message "[: too many arguments" when I 
> use a terminal under gnome (gnome-terminal or aterm) when using external 
> (not shell) commands (less, etc.). I tried several shells (bash, tcsh, 
> zsh) and I get this with all of them. I had no luck tracking down the 
> origin of this message. Anybody else seeing this? How about a solution?

It appears only with csh/tcsh for me.  The exact error occurs at the
following line in /etc/csh.cshrc: (verifyable with csh -x /etc/csh.cshrc)

[ "`id -gn`" = "`id -un`" -a `id -u` -gt 99 ]

It must be a bug in /usr/bin/test (which is same as /usr/bin/[ ) - as
the message goes away if I downgrade to coreutils-5.0-24 (from FC1).

Satish





More information about the test mailing list