Date: 30 Mar 2000 00:21:37 +0200 From: naddy@mips.rhein-neckar.de (Christian Weisgerber) To: freebsd-questions@freebsd.org Subject: Re: bash & rcp question Message-ID: <8btvlh$1psr$1@bigeye.rhein-neckar.de> References: <10003290917.aa14533@ccstores.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Jim Pazarena <paz@ccstores.com> wrote: > This is on FreeBSD 3.4 on both machines. The user can rlogin back > and forth between both machines without requiring passwords. > > The command issued is: > rcp /u/wrappers/hosts.blacklist machinea:/u/wrappers > > and the failing error message is: > bash: [: =: unary operator expected > > can someone interpret this error message in the context above (please)? 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 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?8btvlh$1psr$1>