| delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT 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 AT cygwin DOT com |
| From: | gialloporpora <gialloporpora AT gmail DOT 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 AT dough DOT gmane DOT org> <4FE21D0B DOT 7010409 AT cygwin DOT com> |
| Mime-Version: | 1.0 |
| 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 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 |
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
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |