Sophie

Sophie

distrib > Fedora > 14 > x86_64 > media > updates > by-pkgid > 0d244cef41502353818b7ddf77fcf901 > files > 36

yash-doc-2.28-1.fc14.noarch.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
    "http://www.w3.org/TR/html4/strict.dtd">
<html lang="ja">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="Content-Script-Type" content="text/javascript">
<meta http-equiv="Content-Style-Type" content="text/css">
<meta name="author" content="magicant">
<meta name="description" content="Yash の pwd 組込みコマンドについて">
<title>Yash マニュアル: pwd 組込みコマンド</title>
<link rel="Contents" href="../index.html" title="目次">
<link rel="Prev" href="pushd.html" title="Pushd 組込みコマンド">
<link rel="Next" href="read.html" title="Read 組込みコマンド">
<link rel="Stylesheet" href="../style.css">

<div class="breadcrumb"><a href="../index.html">目次</a> >
<a rel="Up" href="index.html">組込みコマンド一覧</a></div>
<h1>Pwd 組込みコマンド</h1>

<p><dfn>Pwd 組込みコマンド</dfn>はシェルの現在の作業ディレクトリを表示します。

<h2 id="syntax">構文</h2>
<ul>
<li><code>pwd [-LP]</code>
</ul>

<h2 id="description">説明</h2>
<p>Pwd コマンドはシェルの現在の作業ディレクトリを絶対パスで標準出力に出力します。

<h2 id="options">オプション</h2>
<dl>
<dt><code>-L</code>, <code>--logical</code>
<dd><a href="../params.html#sv-pwd"><code>PWD</code> 変数</a>の値が現在の作業ディレクトリの絶対パスで、中に <code>.</code> や <code>..</code> を含んでいなければ、それを出力します。それ以外の場合は <code>-P</code> を指定した場合と同様に出力します。
<dt><code>-P</code>, <code>--physical</code>
<dd>現在の作業ディレクトリの絶対パスを、中にシンボリックリンクを含まないかたちで出力します。
</dl>
<p><code>-L</code> (<code>--logical</code>) オプションと <code>-P</code> (<code>--physical</code>) オプションの両方を指定した場合、後に指定したほうを優先します。どちらも指定していない場合は、<code>-L</code> を指定したものとみなします。

<h2 id="operands">オペランド</h2>
<p>なし

<h2 id="exitstatus">終了ステータス</h2>
<p>エラーがない限り pwd コマンドの終了ステータスは 0 です。

<h2 id="notes">補足</h2>
<p>Pwd コマンドは<a href="../builtin.html#types">準特殊組込みコマンド</a>です。