<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:knowledge="http://knowledge.livedoor.com/-/spec/1.0/" xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/">
<channel>
<language>ja-jp</language>
<title>livedoor ナレッジ - UNIX</title>
<link>http://knowledge.livedoor.com/rss/tag/UNIX</link>
<pubDate>Tue, 22 Dec 2009 08:36:19 +0900</pubDate>
<lastBuildDate>Sat, 05 Dec 2009 17:26:33 +0900</lastBuildDate>
<generator>http://knowledge.livedoor.com/</generator>
<description>livedoor knowledge - UNIX</description>
<copyright>Copyright 1996- livedoor Co.,Ltd.</copyright>
<image>
    <title>livedoor knowledge</title>
    <url>http://knowledge.livedoor.com/img/cmn/noimg_m.gif</url>
    <link>http://knowledge.livedoor.com</link>
    <width>43</width>
    <height>43</height>
</image>
<openSearch:totalResults>4</openSearch:totalResults>
<openSearch:startIndex>1</openSearch:startIndex>
<openSearch:itemsPerPage>15</openSearch:itemsPerPage>
<item>
    <title>make でスクリプトに引数を渡す場合は？</title>
    <link>http://knowledge.livedoor.com/43326</link>
    <description>make でスクリプトに引数を渡す場合は？
unix で、make とシェルを組み合わせて使おうとしています。

a.csh として
------------
#!/bin/csh
echo $argv[1]
set hoge = &amp;quot;HOGE&amp;quot;
echo $argv[1]
------------
というシェルを作ったとします。

%a.csh test1 
test1
test1

となります。

ところが、Makefile に
all:
     a.csh  test1 
と書いて、make を実行すると

%make all
a.csh test1
[1]
[1]

と表示されます。

make から a.csh を駆動した時も、コマンドラインから a.csh を実行した場合と同じように、a.csh 内で引数を参照できるように動作をさせたいのですが、どうすればいいのでしょうか？　ちなみに、a.csh で $argv[1] ではなく $1 と書くと、

%make all
test1
hoge 

となります。($2 は =) set コマンドを使うまでは $1 で参照できますが、いったん set コマンドを使うと置き換えられてしまうようです。

make + シェルでこんな挙動をするとは、これまで全く気づきませんでした。。。</description>
    <pubDate>Sat, 05 Dec 2009 17:26:33 +0900</pubDate>
    <guid isPermaLink="true">http://knowledge.livedoor.com/43326</guid>
    <author>はるぼうず</author>
    <category domain="http://knowledge.livedoor.com/category/101011008">その他</category>
    <knowledge:feed type="question">
        <knowledge:authorId>24172</knowledge:authorId>
        <knowledge:authorLink>http://knowledge.livedoor.com/profile/24172</knowledge:authorLink>
        <knowledge:authorIcon>http://knowledge.livedoor.com/img/my/profile_img.gif</knowledge:authorIcon>
        <knowledge:authorThumbnail>http://knowledge.livedoor.com/img/cmn/noimg_m.gif</knowledge:authorThumbnail>
        <knowledge:answers>1</knowledge:answers>
        <knowledge:closed label="解決済">Sat, 05 Dec 2009 21:22:07 +0900</knowledge:closed>
    </knowledge:feed>
</item>
<item>
    <title>XPでマウス追跡ソフト</title>
    <link>http://knowledge.livedoor.com/4635</link>
    <description>XPでマウス追跡ソフト
WindowsXPで、マウスストーカーのようにそれ自体が移動するではなくUNIX系のXeyesのように表示位置はそのままでマウスを追跡するソフトはありませんか?</description>
    <pubDate>Thu, 13 Apr 2006 07:28:05 +0900</pubDate>
    <guid isPermaLink="true">http://knowledge.livedoor.com/4635</guid>
    <author>osollemio</author>
    <category domain="http://knowledge.livedoor.com/category/101011">ソフトウェア</category>
    <knowledge:feed type="question">
        <knowledge:authorId>4293</knowledge:authorId>
        <knowledge:authorLink>http://knowledge.livedoor.com/profile/4293</knowledge:authorLink>
        <knowledge:authorIcon>http://knowledge.livedoor.com/img/my/profile_img.gif</knowledge:authorIcon>
        <knowledge:authorThumbnail>http://knowledge.livedoor.com/img/cmn/noimg_m.gif</knowledge:authorThumbnail>
        <knowledge:answers>1</knowledge:answers>
        <knowledge:closed label="お蔵入り">Sun, 14 May 2006 06:10:06 +0900</knowledge:closed>
    </knowledge:feed>
</item>
<item>
    <title>LAN接続型のハードディスクをUNIXで使用するにはどうすればいいですか?</title>
    <link>http://knowledge.livedoor.com/1244</link>
    <description>LAN接続型のハードディスクをUNIXで使用するにはどうすればいいですか?
メルコとかそのあたりです。</description>
    <pubDate>Sat, 25 Feb 2006 10:58:39 +0900</pubDate>
    <guid isPermaLink="true">http://knowledge.livedoor.com/1244</guid>
    <author>スフィー</author>
    <category domain="http://knowledge.livedoor.com/category/101001004">UNIX</category>
    <knowledge:feed type="question">
        <knowledge:authorId>177</knowledge:authorId>
        <knowledge:authorLink>http://knowledge.livedoor.com/profile/177</knowledge:authorLink>
        <knowledge:authorIcon>http://image.profile.livedoor.jp/icon/sphee12_60.gif</knowledge:authorIcon>
        <knowledge:authorThumbnail>http://image.profile.livedoor.jp/icon/sphee12_60.gif</knowledge:authorThumbnail>
        <knowledge:answers>1</knowledge:answers>
        <knowledge:closed label="解決済">Sat, 25 Feb 2006 14:15:49 +0900</knowledge:closed>
    </knowledge:feed>
</item>
<item>
    <title>UNIX系OSでお勧めは？</title>
    <link>http://knowledge.livedoor.com/1229</link>
    <description>UNIX系OSでお勧めは？
UNIX系、UNIX互換のOSでお勧めのOSは何ですか？
(Linuxなども含みます。また、フリーかどうかは問いません。)

そういえば、CD又はDVDから起動するOSってKNOPPIX以外にないんですかね？</description>
    <pubDate>Sat, 25 Feb 2006 08:05:00 +0900</pubDate>
    <guid isPermaLink="true">http://knowledge.livedoor.com/1229</guid>
    <author>　</author>
    <category domain="http://knowledge.livedoor.com/category/101001">ＯＳ</category>
    <knowledge:feed type="question">
        <knowledge:authorId>762</knowledge:authorId>
        <knowledge:authorLink>http://knowledge.livedoor.com/profile/762</knowledge:authorLink>
        <knowledge:authorIcon>http://image.profile.livedoor.jp/icon/g7zs_60.gif</knowledge:authorIcon>
        <knowledge:authorThumbnail>http://image.profile.livedoor.jp/icon/g7zs_60.gif</knowledge:authorThumbnail>
        <knowledge:answers>3</knowledge:answers>
        <knowledge:closed label="解決済">Sun, 26 Feb 2006 05:56:48 +0900</knowledge:closed>
    </knowledge:feed>
</item>
</channel>
</rss>
