[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[debian-users:51084] Re: bsah で cd //
- From: "KAWABE,Tsuyoshi" <tkawabe@xxxxxxxxx>
- Subject: [debian-users:51084] Re: bsah で cd //
- Date: Tue, 30 Sep 2008 18:08:20 +0900
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=BzoaGMZSfu+QHc7fhyp35yBQNso9/uHXPHUX3uDQNTc=; b=mOljbyaOG4jbiUmBWOhiCYXf7jV7gLjjcN7OI7etG1qJbE+lk6wPnl0iYm6VRzaNia 5LnT0IgQB+Db/XgrgcqaslDac6HhM59sfFHHIs3S0WiU1up6FC2DNBpUGmrnpykRQWcx Tryl9kNxztCyftsiMTzbTOTi1ikUUo4uZF1vw=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=cslF4TKLxDJ1u6baCoJFZLo4Y5Dghw4LBZfDsCnOS6ETixZWB2Owt64Q9LPA/LiTxn 77cONfWGp9PaxXekz9v2qS7ZYF9/iSPHxLIO7OxOCQwlWqskksG6+t7w0UQpul7dBfcq DJFvfCU3oIH6UX6a7yZJ81zCRGkm0C7uWa1nU=
- List-help: <mailto:debian-users-ctl@debian.or.jp?body=help>
- List-id: debian-users.debian.or.jp
- List-owner: <mailto:debian-users-admin@debian.or.jp>
- List-post: <mailto:debian-users@debian.or.jp>
- List-software: fml [fml 4.0.3 release (20011202/4.0.3)]
- List-unsubscribe: <mailto:debian-users-ctl@debian.or.jp?body=unsubscribe>
- X-ml-info: If you have a question, send e-mail with the body "help" (without quotes) to the address debian-users-ctl@debian.or.jp; help=<mailto:debian-users-ctl@debian.or.jp?body=help>
- X-ml-name: debian-users
- X-mlserver: fml [fml 4.0.3 release (20011202/4.0.3)]; post only (only members can post)
- X-spam-checker-version: SpamAssassin 3.1.7-deb (2006-10-05) on osdn.debian.or.jp
- X-spam-level:
- X-spam-status: No, score=-0.9 required=10.0 tests=KI,SUBJECT_ENCODED_TWICE autolearn=disabled version=3.1.7-deb
- References: <48E17D9C.2020003@xxxxxxxxx> <86ej325jzw.wl%mitsuru@xxxxxxxxxxxxxxxx>
- Message-id: <48E1EC7B.7030207@xxxxxxxxx>
- X-mail-count: 51084
- User-agent: Thunderbird 2.0.0.17 (Windows/20080914)
川辺です.
武藤@Debianぷろじぇくとさん,吉田 充@横浜チーム.情報基盤センター.理化学研究所さん
情報ありがとうございます.
mitsuru@xxxxxxxxxxxxxxxx さんは書きました (2008/09/30 13:34):
>> 偶然 typo して気づいたのですが,bash で cd // とすると,
>> $PWD が // となります.
>> これは私だけ? そういう仕様? バグ?
>> ご存知の方,居られますでしょうか?
>> // ってどんな使い方があるか等あれば教えて頂けると幸いです.
> bash の source の doc/FAQ もしくは、ftp://ftp.cwru.edu/pub/bash/FAQ
> の E10) に、
>
> ========================================================================
> E10) Why does `cd //' leave $PWD as `//'?
>
> POSIX.2, in its description of `cd', says that *three* or more leading
> slashes may be replaced with a single slash when canonicalizing the
> current working directory.
>
> This is, I presume, for historical compatibility. Certain versions of
> Unix, and early network file systems, used paths of the form
> //hostname/path to access `path' on server `hostname'.
> ========================================================================
>
> とありますね。
吉田さん情報ありがとうございます.FAQ だったんですね.
歴史的経緯からの互換のための仕様で //hostname/path って使い方が
あったとは.pwd も builtin の pwd だけが // になるようです.
勉強になりました.どうもありがとうございます.