Use .SHELLFLAGS `-o pipefail` or so
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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