Mark Greene
prgrmr at gmail.com
Fri Jul 25 09:55:16 EDT 2008
What keyboard does the OS think you have?
mark
On Thu, Jul 24, 2008 at 12:09 PM, John Abreau <jabr at blu.org> 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
>
> I've traced these to files under /etc/profile.d, and on further
> testing I find that the
> offending lines are using backquotes, e.g.
>
> if [ `/usr/bin/id -u` = 0 ] ; then
>
> When I try to use backquotes on the command line on this server, I get
> no output.
> Even stranger, if I have a suspended vi job, then running something in
> backquotes
> terminates the vi process:
>
> $ vi foo
> ^Z
> [1]+ Stopped nvi foo
> $ echo `echo bar`
>
> [1]+ Terminated nvi foo
>
> If I do this on my other systems, I get
>
> $ echo `echo bar`
> bar
>
> and the vi job does not terminate.
>
> 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.
>
>
> --
> John Abreau / Executive Director, Boston Linux & Unix
> IM: jabr at jabber.blu.org / abreauj at AIM / abreauj at Yahoo / zusa_it_mgr at Skype
> Email jabr at blu.org / WWW http://www.abreau.net / PGP-Key-ID 0xD5C7B5D9
> PGP-Key-Fingerprint 72 FB 39 4F 3C 3B D6 5B E0 C8 5A 6E F1 2C BE 99
>
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
>
> _______________________________________________
> gnhlug-discuss mailing list
> gnhlug-discuss at mail.gnhlug.org
> http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.gnhlug.org/mailman/private/gnhlug-discuss/attachments/20080725/a94fb20b/attachment.html
More information about the gnhlug-discuss
mailing list