Date: Wed, 29 Mar 2000 16:35:31 -0800 (PST) From: Jim Pazarena <paz@ccstores.com> To: freebsd-questions@freebsd.org, naddy@mips.rhein-neckar.de Subject: Re: bash & rcp question Message-ID: <10003291635.aa22834@ccstores.com>
next in thread | raw e-mail | index | archive | help
>Subject: Re: bash & rcp question
>From: naddy@mips.rhein-neckar.de (Christian Weisgerber)
>Date: 30 Mar 2000 00:21:37 +0200
>To: freebsd-questions@freebsd.org
>Jim Pazarena <paz@ccstores.com> wrote:
>> The command issued is:
>> rcp /u/wrappers/hosts.blacklist machinea:/u/wrappers
>>
>> and the failing error message is:
>> bash: [: =: unary operator expected
>>
>The user on machina has bash as login shell. Due to the way rcp
>works, it spawns a shell on machinea using rsh, and if that shell
>is bash, it detects that it is called from rsh and as a special
>case executes ~/.bashrc despite not running interactively. (This
>is a documented, albeit somewhat idiosyncratic behavior.)
>Anyway, the user has something in his ~/.bashrc that doesn't work
>when the shell doesn't run interactively. Since it's the '[' command
>that complains above, the error is probably in an "if [ ... ]"
>construct.
>--
>Christian "naddy" Weisgerber naddy@mips.rhein-neckar.de
The perfectly correct answer. My humble appreciation and admiration.
--
Jim Pazarena mailto:paz@ccstores.com
http://www.qcislands.net/paz
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?10003291635.aa22834>
