delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/02/11/17:45:53

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Message-ID: <d5050b380802111445r1cf60b80o29aced8f7457eb72@mail.gmail.com>
Date: Mon, 11 Feb 2008 14:45:04 -0800
From: "Christopher Stack" <deepstructure AT gmail DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: whitespace in variables (tsch)
In-Reply-To: <20080211202647.GA28164@calimero.vinschen.de>
MIME-Version: 1.0
References: <d5050b380802111159v7f363300ibd7fa1348b66b710 AT mail DOT gmail DOT com> <20080211202647 DOT GA28164 AT calimero DOT vinschen DOT de>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

thanks much corinna.  i knew to try various ways of quoting, but
wouldn't have thought of quoting the variable itself when called!
you're a life-saver.

cheers
christopher



On Feb 11, 2008 12:26 PM, Corinna Vinschen <corinna-cygwin AT cygwin DOT com> wrote:
> On Feb 11 11:59, Christopher Stack wrote:
> > first time cygwin user and im running into a problem when setting
> > location variables on a pc.  since the pc uses whitespace (like
> > c:/Program Files), setting a variable as a direction to this location
> > seems impossible.  how do you get tsch to parse the variable properly?
> >  i've been searching google for the past two days and can't find a
> > solution.  it would seem other should have run into this previously,
> > no?
> >
> > and yes, please i've already heard all the arguments against
> > programming in csh and if i knew bash i'd use it.  thanks in advance
> > for not being *that* person.
>
> The secret buzzword is "quoting".  In every shell.  On every OS.
> This is not Cygwin specific.  I typed the below in a tcsh on Linux.
>
>   tcsh$ cd /tmp
>   tcsh$ mkdir foo\ bar
>   tcsh$ setenv DIR "foo bar"
>   tcsh$ cd $DIR
>   cd: Too many arguments.
>   tcsh$ cd "$DIR"
>   tcsh$ pwd
>   /tmp/foo bar
>
>
> Corinna
>
> --
> Corinna Vinschen                  Please, send mails regarding Cygwin to
> Cygwin Project Co-Leader          cygwin AT cygwin DOT com
> Red Hat
>
> --
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
> Problem reports:       http://cygwin.com/problems.html
> Documentation:         http://cygwin.com/docs.html
> FAQ:                   http://cygwin.com/faq/
>
>



-- 
"Space is on the verge of becoming an adventure again, Windows Vista
is flopping, and Mario Kart will be out for the Wii soon. I think the
future will be okay."
- xkcd

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019