GNU coreutils 9.10 がリリースされました.
paste でマルチバイト文字を認識するようになったそうです.まだ対応していなかったんだとちょっと試してみました.
paste(1) is now multi-byte character aware
まずは適当なファイルを用意します.
$ echo '1 2 3' > num $ echo 'い ろ は' > data
GNU coreutils 9.7 のpaste で試すと日本語のデータもうまく動いていそうです.
$ paste --version | head -1 paste (GNU coreutils) 9.7 $ paste num data 1 い 2 ろ 3 は
NEWS の下の方を見ると少し詳しく書いてありました.
'paste' now supports multi-byte --delimiters characters.
デリミタにマルチバイト文字が使えるようになったようです.
ということで再度,今度はデミリタを指定します.
GNU coreutils 9.7 のpaste でデリミタに
, を指定$ paste num data -d, 1,い 2,ろ 3,は
GNU coreutils 9.7 のpaste でデリミタに
= を指定$ paste num data -d= 1�� 2�� 3��
たしかにマルチバイト文字を使うとおかしくなります.
GNU coreutils 9.10 を用意
$ wget https://ftp.gnu.org/gnu/coreutils/coreutils-9.10.tar.xz \ https://ftp.gnu.org/gnu/coreutils/coreutils-9.10.tar.xz.sig $ echo 'SHA256 (coreutils-9.10.tar.xz) = FlNamt8LEANzZOLWEqrT2fTso6NElJztdNEvr0vVHSU=' | cksum -a sha256 --check coreutils-9.10.tar.xz: OK $ gpg --verify coreutils-9.10.tar.xz.sig gpg: assuming signed data in 'coreutils-9.10.tar.xz' gpg: Signature made Wed Feb 4 21:46:29 2026 JST gpg: using RSA key 6C37DC12121A5006BC1DB804DF6FD971306037D9 gpg: Good signature from "P draig Brady <P@draigBrady.com>" [unknown] gpg: aka "P draig Brady <pixelbeat@gnu.org>" [unknown] gpg: WARNING: This key is not certified with a trusted signature! gpg: There is no indication that the signature belongs to the owner. Primary key fingerprint: 6C37 DC12 121A 5006 BC1D B804 DF6F D971 3060 37D9 $ tar xvf coreutils-9.10.tar.xz $ cd coreutils-9.10 $ sudo apt build-dep coreutils $ ./configure $ make $ src/paste --version | head -1 paste (GNU coreutils) 9.10
GNU coreutils 9.10 のpaste でデリミタにマルチバイト文字を指定
$ ./src/paste num data -d= 1=い 2=ろ 3=は $ ./src/paste num data -d🐈 1🐈い 2🐈ろ 3🐈は
ということでGNU coreutils 9.10 のpaste でデリミタにマルチバイト文字が使えるようになっているのが確認できました.
使い道はあまり浮かびませんが…….
環境
$ dpkg-query -W coreutils coreutils 9.7-3 $ src/paste --version paste (GNU coreutils) 9.10 Copyright (C) 2026 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Written by David M. Ihnat and David MacKenzie. $ lsb_release -dr Description: Debian GNU/Linux forky/sid Release: n/a $ arch x86_64