Cygwin使っている人いますか? その22 (948レス)
上下前次1-新
1(1): 2014/09/06(土)01:51 AAS
Cygwin Information and Installation
外部リンク:www.cygwin.com
Cygwin アンテナ
外部リンク:sohda.net
2: 2014/09/06(土)01:52 AAS
過去スレ
1 2chスレ:unix
2 2chスレ:unix
3 2chスレ:unix
4 2chスレ:unix
5 2chスレ:unix
6 2chスレ:unix
7 2chスレ:unix
8 2chスレ:unix
9 2chスレ:unix
10 2chスレ:unix
11 2chスレ:unix
12 2chスレ:unix
13 2chスレ:unix
14 2chスレ:unix
15 2chスレ:unix
16 2chスレ:unix
17 2chスレ:unix
18 2chスレ:unix
19 2chスレ:unix
20 2chスレ:unix
21 2chスレ:unix
3(1): 2014/09/06(土)01:52 AAS
関連スレ
外部リンク:find.2ch.net
FAQ
Q. XXX というコマンドはどのパッケージに含まれているの?
A. 外部リンク:www.cygwin.com で検索しれ
Q. Cygwin は UNIX の勉強に使えますか?
A. Cygwin は UNIX に慣れた人間が Windows 上で楽するのには向いていますが、
UNIX の勉強には向いていません。
4: 2014/09/06(土)01:54 AAS
関連スレ検索はこっちで
外部リンク:dig.2ch.net
5: 2014/09/08(月)17:45 AAS
乙
6: 2014/09/11(木)23:50 AAS
Windowsベースだからファイル名の大文字小文字を区別しないのは納得できる。
しかし sortコマンドがファイルの内容まで大文字区別しないのは納得しかねる。
具体的には
$ cat a.txt
a1
A2
_1
を sortすると
$ sort a.txt
_1
a1
A2
になる。
もしかしてそのたぐいのオプションとかあります?
7(1): 2014/09/12(金)00:31 AAS
sort --help
8(1): 2014/09/12(金)23:20 AAS
LANG=C
9(1): 2014/09/13(土)11:18 AAS
>>7
オプションのとこしか見てなかった。
>>8
サンクス
しかし en_US.UTF-8 でも区別してくれないんだな。
Macはどうなんだろう?
10(1): 2014/09/13(土)14:41 AAS
>>9
bash-3.2$ sw_vers
ProductName: Mac OS X
ProductVersion: 10.9.4
BuildVersion: 13E28
bash-3.2$ echo $LANG
ja_JP.UTF-8
bash-3.2$ sort --version | head -n1
sort (GNU coreutils) 5.93
bash-3.2$ cat a.txt
a1
A2
_1
bash-3.2$ sort a.txt
A2
_1
a1
bash-3.2$ sort -d a.txt
_1
A2
a1
bash-3.2$ sort -df a.txt
_1
a1
A2
11: 2014/09/13(土)17:25 AAS
>>10
サンクス!
12: 2014/09/16(火)21:05 AAS
Cygwinとhowm、emacsは手放せない。
13: 2014/10/12(日)22:49 AAS
変なのがいなくなったと思ったら、一気に過疎化したなw
14(1): 2014/10/26(日)16:25 AAS
興味本位の質問なんですが、
cygwin の stat コマンド等が扱う ‘ctime’は、NTFS 上で
外部リンク[pdf]:www.ji2.co.jp
の 4ページ目の「エントリ更新日時」に対応しているっていうので、合ってますか?
15(1): 2014/10/26(日)17:27 AAS
>>14
stat は coreutils に入ってるので、ソース(パッチ)見てみた。
setpu-x86.exe で coreutils の src にチェックを付けてインストール。
mintty 起動して、/usr/src/ に coreutils-x.xx 出来てるので、
$ grep -C 10 ctime coreutils-8.23-4.cygwin.patch
(略)
+This release depends on features that did not exist prior to
+cygwin-1.7.32. There are still corner cases of POSIX compliance that
+are impossible without more support from future cygwin versions, such
+as proper treatment of directory ctime or atomicity of some low-level
+functions, or outright impossible, such as hard links on a FAT drive.
+Cygwin provides its own `kill' that understands Windows pid's, so the
+coreutils version is renamed `gkill'. Although coreutils provides
+an `uptime', on Cygwin you will need the `procps' package. I would
+appreciate help in getting `stdbuf' ported to Cygwin. There are
+several bugs in the testsuite, so don't be alarmed at failures and
+use `make -k check' to make it to the end.
16: 2014/10/26(日)18:41 AAS
>>15
レスありがとう。posix準拠させるには周辺状況が厳しいって事ですね。
内部的な事は、ソースを読みつつゆっくりと調べてみようと思います。
上下前次1-新書関写板覧索設栞歴
あと 932 レスあります
スレ情報 赤レス抽出 画像レス抽出 歴の未読スレ
ぬこの手 ぬこTOP 0.010s