www.delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,SPF_PASS |
X-Spam-Check-By: | sourceware.org |
MIME-Version: | 1.0 |
Subject: | RE: Re: Want to let variable pass to cygstart. |
Date: | Wed, 11 Mar 2009 09:05:13 -0000 |
Message-ID: | <5E25AF06EFB9EA4A87C19BC98F5C875302C1B82C@core-email.int.ascribe.com> |
In-Reply-To: | A<ttser4ddkpuvfqbvv4bpq43pbtebc2f7h8@4ax.com> |
References: | <nkber4delvo8ob4tm437av4k6fnblgbggr AT 4ax DOT com> <49B7401A DOT 3080309 AT gmail DOT com> A<ttser4ddkpuvfqbvv4bpq43pbtebc2f7h8 AT 4ax DOT com> |
From: | "Phil Betts" <Phil DOT Betts AT ascribe DOT com> |
To: | <cygwin AT cygwin DOT com> |
Reply-To: | <cygwin AT cygwin DOT com> |
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 |
Hongyi Zhao wrote: > On Wed, 11 Mar 2009 04:37:46 +0000, Dave Korn > <dave DOT korn DOT cygwin AT xxxxxxxxxx DOT xxx> wrote: Please don't quote raw email addresses. It only feeds the spammers. > > It's bash shell metacharacters. The '&' character terminates a > command and > >puts it into the background. The simplest way is to use single quotes > ' ' > >around the URL you want to cygstart. >=20 > Thanks a lot. Except that single quotes will also prevent variable substitution. If=20 you want to use metacharacters AND variables, you have to use the=20 backslash to escape the metacharacters. Alternatively, you could concatenate strings like this: 'stringA&stringB'$variable'stringC&stringD' Phil --=20 This email has been scanned by Ascribe PLC using Microsoft Antigen for Exch= ange. -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |