Skip to content

Commit a50a15a

Browse files
authored
Merge pull request #2004 from h-east/update-syntax
Update original
2 parents 4a0e08e + 3759369 commit a50a15a

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

doc/syntax.jax

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*syntax.txt* For Vim バージョン 9.1. Last change: 2025 Mar 15
1+
*syntax.txt* For Vim バージョン 9.1. Last change: 2025 Mar 21
22

33

44
VIMリファレンスマニュアル by Bram Moolenaar
@@ -3405,25 +3405,25 @@ Vimは様々なファイル名がどのタイプであるかを指定するこ
34053405
/bin/sh /bin/ksh /bin/bash を探す)。第一行でシェルを指定されていれば、そのシェ
34063406
ルが使用される。しかしいくつかのファイル(例. .profile)はシェルファイルであるこ
34073407
とはわかっていても、どのタイプか明らかではない。さらに、多くのシステムでshは
3408-
"bash" (Linux, Windows+cygwin) や "ksh" (Posix) へのシンボリックリンクになって
3408+
"bash" (Linux, Windows+cygwin) や "ksh" (POSIX) へのシンボリックリンクになって
34093409
いる。
34103410

34113411
以下の変数のどれかを.vimrcで定義することにより、デフォルトを設定すること
34123412
ができる:
34133413

34143414
ksh: >
34153415
let g:is_kornshell = 1
3416-
< posix: (これは g:is_kornshell に1を設定することとほぼ同じ) >
3416+
< posix: (デフォルト) >
34173417
let g:is_posix = 1
34183418
< bash: >
34193419
let g:is_bash = 1
3420-
< sh: (デフォルト) Bourne shell >
3420+
< dash: >
3421+
let g:is_dash = 1
3422+
< sh: Bourne shell >
34213423
let g:is_sh = 1
34223424
3423-
< (dash 使用者は posix を使用するべき)
3424-
34253425
"#! ..." という行がなく、かつユーザーが上の方法でデフォルトの sh.vim の構文を
3426-
設定していない場合、sh.vim は Bourne シェルの構文であると仮定する。エラーレポー
3426+
設定していない場合、sh.vim は POSIX シェルの構文であると仮定する。エラーレポー
34273427
トで RFC や市場浸透統計を引用する必要はありません。ただただ、デフォルトでシス
34283428
テムに使用されるバージョンのシェルを選択し、それに対応する "let..." をあなたの
34293429
.vimrc に導入してください。

en/syntax.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*syntax.txt* For Vim version 9.1. Last change: 2025 Mar 15
1+
*syntax.txt* For Vim version 9.1. Last change: 2025 Mar 21
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -3512,25 +3512,25 @@ cases pertain, then the first line of the file is examined (ex. looking for
35123512
/bin/sh /bin/ksh /bin/bash). If the first line specifies a shelltype, then
35133513
that shelltype is used. However some files (ex. .profile) are known to be
35143514
shell files but the type is not apparent. Furthermore, on many systems sh is
3515-
symbolically linked to "bash" (Linux, Windows+cygwin) or "ksh" (Posix).
3515+
symbolically linked to "bash" (Linux, Windows+cygwin) or "ksh" (POSIX).
35163516

35173517
One may specify a global default by instantiating one of the following
35183518
variables in your <.vimrc>:
35193519

35203520
ksh: >
35213521
let g:is_kornshell = 1
3522-
< posix: (using this is nearly the same as setting g:is_kornshell to 1) >
3522+
< posix: (default) >
35233523
let g:is_posix = 1
35243524
< bash: >
35253525
let g:is_bash = 1
3526-
< sh: (default) Bourne shell >
3526+
< dash: >
3527+
let g:is_dash = 1
3528+
< sh: Bourne shell >
35273529
let g:is_sh = 1
35283530
3529-
< (dash users should use posix)
3530-
35313531
If there's no "#! ..." line, and the user hasn't availed himself/herself of a
35323532
default sh.vim syntax setting as just shown, then syntax/sh.vim will assume
3533-
the Bourne shell syntax. No need to quote RFCs or market penetration
3533+
the POSIX shell syntax. No need to quote RFCs or market penetration
35343534
statistics in error reports, please -- just select the default version of the
35353535
sh your system uses and install the associated "let..." in your <.vimrc>.
35363536

0 commit comments

Comments
 (0)