www.delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-Spam-Check-By: | sourceware.org |
Date: | Thu, 4 Jun 2009 10:28:09 +0200 |
From: | Corinna Vinschen <corinna-cygwin AT cygwin DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: of and oc |
Message-ID: | <20090604082809.GC29270@calimero.vinschen.de> |
Reply-To: | cygwin AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
References: | <831vq08y5j DOT fsf AT gmail DOT com> |
MIME-Version: | 1.0 |
In-Reply-To: | <831vq08y5j.fsf@gmail.com> |
User-Agent: | Mutt/1.5.19 (2009-02-20) |
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 |
On Jun 4 11:40, Haojun Bao wrote: > cygstart is so useful that I want type less keys: > > alias of=cygstart #on cygwin-1.5 > > or: > > function of () > { > if which "$1" > /dev/null 2>&1; then > if [[ "$1" == of ]]; then > local file=`which cygstart`; > else > local file="`which \"$1\"`"; > fi; > shift; > cygstart "$file" "$@"; > else > cygstart "$@"; > fi > } #on cygwin-1.7, because we must specify full path now > > oc is my name for `open containing folder', and I peeked into source of > Firefox to write it: > > function oc () > { > cygstart `which explorer.exe` /n,/select,\""`cygpath -alw \"$1\"`"\" > } > > It won't work for non-ascii file names though, as a Chinese, I feel > a bit sorry for that Did you read http://cygwin.com/1.7/cygwin-ug-net/setup-locale.html? Does it help? I assume that cygstart itself isn't yet locale-aware. This is all quite new. Give us package maintainers a bit of time. 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |