From owner-freebsd-questions Wed Mar 29 16:46:34 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mail.qcislands.net (mail.qcislands.net [209.53.238.6]) by hub.freebsd.org (Postfix) with ESMTP id 195AC37B64C for ; Wed, 29 Mar 2000 16:46:30 -0800 (PST) (envelope-from ccstore@qcislands.net) Received: from [209.53.238.8] (helo=wwwa.qcislands.net) by mail.qcislands.net with esmtp (Exim 3.036 #1) id 12aT6S-000OsS-00 for freebsd-questions@freebsd.org; Wed, 29 Mar 2000 16:46:28 -0800 Received: from ccstore by wwwa.qcislands.net with local (Exim 3.13 #3) id 12aT6S-00057S-00 for freebsd-questions@freebsd.org; Thu, 30 Mar 2000 00:46:28 +0000 From: Jim Pazarena To: freebsd-questions@freebsd.org, naddy@mips.rhein-neckar.de Subject: Re: bash & rcp question X-Mailer: SCO Shell Date: Wed, 29 Mar 2000 16:35:31 -0800 (PST) Message-ID: <10003291635.aa22834@ccstores.com> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >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 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