vim-jp / vim-jp/lang-ja

Use .SHELLFLAGS `-o pipefail` or so

Open
#183 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Roff
Stars
23
Forks
11
Avg merge
1h 50m
Merged PRs (30d)
1

Description

iconv の無い環境で実行したら、ja.euc-jp.po の作成で iconv: command not found が記録されるんだけど、
そこで止まらずに ja.euc-jp.ck の作成に進行してしまった。

これはパイプの途中が失敗しても、exit codeに反映されないことが原因。

.SHELLFLAGS := -eu -o pipefail -c

を追加設定して、きちんと失敗するようにしたほうがよさそう。
ただそのためにはシェルが bash じゃないとダメなんだよなぁ…

余談、ja.euc-jp.ck では空の ja.euc-jp.po を読もうとして vim が止まらない、という現象にも遭遇した。
余力があればこれもチェックして直したいが… 別 issue 作った方が良いかな?


参照:

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the Makefile rules that create ja.euc-jp.po and ja.euc-jp.ck, then reproduce the generation in an environment without iconv. Ensure a failure in the pipeline is reflected in the command status and prevents the next target from proceeding; treat the vim behavior as separate unless the existing rules explicitly cover it.

Written by the indexing model from the issue text.

Assessment

Tech stack
shell
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.