From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1IYI3T-0005tT-Rp for garchives@archives.gentoo.org; Thu, 20 Sep 2007 09:10:40 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.0/8.14.0) with SMTP id l8K91aB4024338; Thu, 20 Sep 2007 09:01:36 GMT Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by robin.gentoo.org (8.14.0/8.14.0) with ESMTP id l8K8umAZ018314 for ; Thu, 20 Sep 2007 08:56:49 GMT Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id CB92E6505D for ; Thu, 20 Sep 2007 08:56:48 +0000 (UTC) X-Virus-Scanned: amavisd-new at gentoo.org X-Spam-Score: 0.001 X-Spam-Level: X-Spam-Status: No, score=0.001 required=5.5 tests=[BAYES_50=0.001] Received: from smtp.gentoo.org ([127.0.0.1]) by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KTG6mJDu1tqb for ; Thu, 20 Sep 2007 08:56:41 +0000 (UTC) Received: from smtp112.sbc.mail.re2.yahoo.com (smtp112.sbc.mail.re2.yahoo.com [68.142.229.93]) by smtp.gentoo.org (Postfix) with SMTP id 9725E650DA for ; Thu, 20 Sep 2007 08:56:38 +0000 (UTC) Received: (qmail 28817 invoked from network); 20 Sep 2007 08:47:17 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=sbcglobal.net; h=Received:X-YMail-OSG:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:Content-Type:Content-Transfer-Encoding; b=MSbXN3ROD5ZnAoC/bmcMShW7Bu3GiLtGEnzaL5uhTTsItJva+y9eDefEkvhfAMOcev839OuE9VAqeDTNDaFCgCWxuq2vM2TzS/fr3N81eJsEIEzws6cuYzXjuO/m6pUO78pXWMJTQbi81IjfrsXlGuKo9AmEg4GHZeqit5Qr+FI= ; Received: from unknown (HELO ?192.168.1.100?) (tony.caudel@sbcglobal.net@70.136.17.50 with plain) by smtp112.sbc.mail.re2.yahoo.com with SMTP; 20 Sep 2007 08:47:17 -0000 X-YMail-OSG: ffhPKLMVM1kpTDPRWnG67GLNKESuyP3zUV6eFuc0S3G.g7Mw Message-ID: <46F23395.7030305@sbcglobal.net> Date: Thu, 20 Sep 2007 03:47:17 -0500 From: "Anthony E. Caudel" User-Agent: Thunderbird 2.0.0.6 (X11/20070811) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: Gentoo Mailing List Subject: [gentoo-user] OT: Bash question Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Archives-Salt: 81ad09d3-bdb2-4066-8743-02db956e80dc X-Archives-Hash: d395a12e8f50a9035c3ad9e0001c3fef Is there any way to make "pushd" and "popd" (Bash built-ins) silent? As it is, when the execute, the directory is echoed to the output, making it difficult to use the commands in a script. For example: OLD_VER=$(pushd /boot; ls kernel-* | sort | head -1; popd) echo $OLD_VER /boot ~ kernel-2.6.22-gentoo-r2 ~ The /boot and the tildes are returned by pushd and popd and mess up the script. There doesn't seem to be any options to turn off the echo off and shopt has nothing in it. Tony -- Those who would give up essential Liberty, to purchase a little temporary Safety, deserve neither Liberty nor Safety. -- Benjamin Franklin -- gentoo-user@gentoo.org mailing list