[Date Prev] [Date Index] [Date Next]
[Thread Prev] [Thread Index] [Thread Next]

[xyzzy:08109] Re: Cygwin から xyzzy に渡す cygwin 流儀のパス名を理解させたい。



大渕@ソニーエリクソンです。はじめまして。

> $ xyzzy /home/nanigashi_user/hogehoge.txt

 xyzzy $(cygpath -wa /home/nanigashi_user/hogehoge.txt)

 で、お望みの結果が得られると思います。
 私は、.bashrcに、

xyzzy () {
   START_ARG=
   if [ -f "$1" ]; then
     START_ARG=$( cygpath -was "$1")
   else
     START_ARG=$*
   fi
   "/cygdrive/d/Program Files/xyzzy/xyzzycli" "$START_ARG"
   START_ARG=
}

 を追加しています。UNIX Magazineで藤枝さんがシェルスクリプト
でやる方法を書いていましたが、それをシェル関数にしただけです。

--
buchio

Index Home