From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8308 invoked by alias); 22 Sep 2007 07:16:49 -0000 Received: (qmail 8286 invoked by uid 22791); 22 Sep 2007 07:16:47 -0000 X-Spam-Check-By: sourceware.org Received: from nitzan.inter.net.il (HELO nitzan.inter.net.il) (213.8.233.22) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 22 Sep 2007 07:16:40 +0000 Received: from HOME-C4E4A596F7 (IGLD-84-229-122-46.inter.net.il [84.229.122.46]) by nitzan.inter.net.il (MOS 3.7.3a-GA) with ESMTP id HWB45815 (AUTH halo1); Sat, 22 Sep 2007 09:13:53 +0200 (IST) Date: Sat, 22 Sep 2007 07:16:00 -0000 Message-Id: From: Eli Zaretskii To: Daniel Jacobowitz CC: denis.pilat@st.com, gdb-patches@sourceware.org In-reply-to: <20070921225527.GA28500@caradoc.them.org> (message from Daniel Jacobowitz on Fri, 21 Sep 2007 18:55:27 -0400) Subject: Re: [RFC] usage of environment variable from the command line Reply-to: Eli Zaretskii References: <46F13F2A.8010507@st.com> <20070921225527.GA28500@caradoc.them.org> X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2007-09/txt/msg00292.txt.bz2 > Date: Fri, 21 Sep 2007 18:55:27 -0400 > From: Daniel Jacobowitz > Cc: gdb-patches@sourceware.org > > I think that syntax is really ugly :-( Yes, because it comes from the DOS/Windows shell syntax. I don't think we should use it, as it makes trouble even in the Windows shell. > Before we go ahead with this can anyone think of a better one that > won't conflict with source language expressions? How about env("FOO") ? Or maybe $env("FOO"), to avoid a possibility that the debuggee has a real function by the name of `env'? > Another problem is escaping. Right now, you're supposed to be able to > give either quoted strings or raw text to most commands (it > varies, I posted a summary a while back). Front ends won't know how > to escape the string if you have e.g. %% in your $PWD or want to > print a string containing %%. The above suggestion solves this problem as well, I think.