X-Spam-Check-By: sourceware.org Message-ID: <20060427230838.70271.qmail@web38913.mail.mud.yahoo.com> Date: Thu, 27 Apr 2006 16:08:38 -0700 (PDT) From: Siddhartha Shivshankar Subject: Variable read error? Multiple spaces To: cygwin AT cygwin DOT com MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Hi. After I try to read the contents of a file containing multiple spaces into a bash variable, only one space is seen in the variable. Output similar to the following 2 space example is seen for 3 spaces as well. Is this an error? If so, does anyone know a work-around? Thanks, -Siddhartha. ---------- Output from bash follows ----------- $ cat>i.txt Hello world $ export b=`cat i.txt` $ echo $b Hello world $ export b=`