X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-0.7 required=5.0	tests=BAYES_40,DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,KHOP_THREADED,NML_ADSP_CUSTOM_MED,RCVD_IN_HOSTKARMA_NO,SPF_HELO_PASS,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: gialloporpora <gialloporpora@gmail.com>
Subject: Re: A little annoiance after modifying my .bashrc file to add an alias to edit files
Date: Thu, 21 Jun 2012 01:46:07 +0200
Lines: 53
Message-ID: <jrtneb$2gi$1@dough.gmane.org>
References: <jrt43g$d3f$1@dough.gmane.org> <4FE21D0B.7010409@cygwin.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 8bit
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:15.0) Gecko/20120620 Thunderbird/15.0a2
In-Reply-To: <4FE21D0B.7010409@cygwin.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Risposta al messaggio di Larry Hall (Cygwin) :

> I'm curious why you query the list for help instead of your original source.


Since, I suppose that the author doesn't know the answer, because I 
suppose, that if he knew the answer would have written it directly in 
article. In past I have always asked in this newsgroup for Cygwin 
related problems, always with good and satisfactory answers, like in 
this occasion
And asking in newsgroup I could easily save the thread archiving it in TB.


> That notwithstanding, the reason you see this is because the alias you found
> and are using is wrong.  From the bash man page:
>
>     There is no mechanism for using arguments in the replacement text.  If
>     arguments are needed, a shell function should be  used  (see  FUNCTIONS
>     below).
>
> The alias you pulled from the web tries to work-around this restriction,
> without much success (not surprisingly).  Use a function something like
> this:
>
> edit ()
> {
>      cygstart "/cygdrive/c/Programmi/Crimson\ Editor/cedt.exe" $(cygpath -w
> "$*")




Thank you very much Larry for you explanation, it works perfectly
Exactly what I am searching for




Sandro








-- 
Sto ascoltando: *The Rolling Stones – Salt Of The Earth * - 
http://bit.ly/MEuiyc
Two things are infinite: the universe and human stupidity; and I'm not 
sure about the universe.



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

