Bash weirdness
Tom Wittbrodt
tomwitt2 at gmail.com
Thu Jul 24 13:00:59 EDT 2008
John Abreau wrote:
> I've got a server that's been giving strange errors lately. Most
> noticeably, when I login,
> I get several errors of the form
>
> -bash: [: =: unary operator expected
>
>
>
[snip]
> I've tried googling for these symptoms, but so far I haven't found a match.
> Has anyone else run across this odd behavior? What could be causing it?
>
> The server with the broken behavior is running CentOS release 5.2,
> and bash is bash-3.2-21.el5.
>
Any chance /bin/sh is linked to dash instead of bash?
I had the "unary operator expected" errors on Ubuntu 6.06 until I
learned they started linking /bin/sh to dash instead of bash. My CentOS
systems don't seem to have dash at all but it's worth a look.
-- Tom
More information about the gnhlug-discuss
mailing list