From owner-freebsd-questions@FreeBSD.ORG Thu May 29 16:50:17 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 521B920E for ; Thu, 29 May 2014 16:50:17 +0000 (UTC) Received: from nqhost.drenet.net (nqhost.drenet.net [184.95.47.164]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 35D882DB4 for ; Thu, 29 May 2014 16:50:16 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by nqhost.drenet.net (Postfix) with ESMTP id 655903ADF5; Thu, 29 May 2014 12:50:16 -0400 (EDT) Received: from nqhost.drenet.net ([127.0.0.1]) by localhost (nqhost.drenet.net [127.0.0.1]) (maiad, port 10024) with ESMTP id 31404-03; Thu, 29 May 2014 12:50:16 -0400 (EDT) Received: by nqhost.drenet.net (Postfix, from userid 80) id 313303AD92; Thu, 29 May 2014 12:50:16 -0400 (EDT) To: Polytropon Subject: Re: csh and echo X-PHP-Originating-Script: 80:rcmail.php MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 29 May 2014 12:50:16 -0400 From: Andre Goree In-Reply-To: <20140529183942.7119a5e6.freebsd@edvax.de> References: <6afd2e37bfc1736513878d896c5c8314@drenet.net> <20140529183942.7119a5e6.freebsd@edvax.de> Message-ID: X-Sender: andre@drenet.net User-Agent: Roundcube Webmail/0.9.5 Cc: FreeBSD Questions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 May 2014 16:50:17 -0000 > > Try with single quotes: > > # echo '$1$rVxldcGZ$CisrIAX4SBYUkMJt9KjXl0' > $1$rVxldcGZ$CisrIAX4SBYUkMJt9KjXl0 > > > ( Sorry for the damaged 2nd mail, in case it got through ) > > Michael Thanks! > > The csh does exactly what it should to. Use '...' instead of "..." > to avoid evaluations within a string, for example: > > % echo '$1$rVxldcGZ$CisrIAX4SBYUkMJt9KjXl0' > $1$rVxldcGZ$CisrIAX4SBYUkMJt9KjXl0 > > It's not an issue, it's intended. Strings enclosed in "..." are > allowed to contain variables, whereas strings enclosed in '...' > are being processed without expansion. > > $ echo '$1$rVxldcGZ$CisrIAX4SBYUkMJt9KjXl0' > $1$rVxldcGZ$CisrIAX4SBYUkMJt9KjXl0 > > I'm sure this is mentioned somewhere in "man bash", as well as > in "man csh" regarding the C Shell. :-) You're absolutely correct, complete derp moment on my part. I knew it would be something so easy, my brain's been fried lately, lol. Thanks! -- Andre Goree -=-=-=-=-=- Email - andre at drenet.net Website - http://www.drenet.net PGP key - http://www.drenet.net/pubkey.txt -=-=-=-=-=-