Path: csiph.com!au2pb.net!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!news.glorb.com!usenet.stanford.edu!not-for-mail From: Eric Blake Newsgroups: gnu.bash.bug Subject: Re: Paste with null delimiter Date: Tue, 3 Nov 2015 10:41:22 -0700 Organization: Red Hat, Inc. Lines: 55 Approved: bug-bash@gnu.org Message-ID: References: <3a207f09-fc2b-4a2e-a6e5-1d33c7479849@googlegroups.com> NNTP-Posting-Host: lists.gnu.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="Ddx86XaBOXxovwAd8PK1KvcNdFGxKC5p7" X-Trace: usenet.stanford.edu 1446572490 4617 208.118.235.17 (3 Nov 2015 17:41:30 GMT) X-Complaints-To: action@cs.stanford.edu To: julio.neves@gmail.com, bug-bash@gnu.org Envelope-to: bug-bash@gnu.org Openpgp: url=http://people.redhat.com/eblake/eblake.gpg User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 In-Reply-To: <3a207f09-fc2b-4a2e-a6e5-1d33c7479849@googlegroups.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 209.132.183.28 X-BeenThere: bug-bash@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports for the GNU Bourne Again SHell List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com gnu.bash.bug:11823 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --Ddx86XaBOXxovwAd8PK1KvcNdFGxKC5p7 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 11/03/2015 09:29 AM, julio.neves@gmail.com wrote: > An example is better than thousand words: >=20 > $ seq 1 2 9 > odd > $ seq 2 2 10 > even > $ paste -d "" odd even > 12 > 34 > 56 > 78 > 910 > $ paste -d"" odd even This is equivalent to: paste -dodd even which is NOT the same as the NUL delimiter as the argument to -d. There is no way to specify an empty string as the option to a short option, except as a separate parameter. This is not a bug in bash, but in your usage. --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --Ddx86XaBOXxovwAd8PK1KvcNdFGxKC5p7 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJWOPHDAAoJEKeha0olJ0Nq/CIH/R2RAhM9Qc11P/Na8M2BLVVo OV28NQTKt/dXzoizASb1Nn0kefe6FMHRVDa0mnNjQMLUUkr7+Hg9e7kpKqgB89zn maCSn+TfTyu3MP5KTAA6MzwXoRLSH5G12ptAk5iG6KTPV/XMMGYchy9Kkr4GS4bk YrU3hVnXkyuT3zB3r7UCL8P2mxlc8pa/Ur8Y51TDcL0iEtwrtsHws+YFCyGK+3LQ NK/sjposQ5vHsH/AXiWljb01Gb5DQIChECk/Cp2Q5FfEWsAtCV92ljISdES6oX+7 V1G2V1NAktODLxXVgHuGSX2/G0xp3bBQXxliKNJTgRUy/UWjFrY+HULrMCqVvNY= =d6CZ -----END PGP SIGNATURE----- --Ddx86XaBOXxovwAd8PK1KvcNdFGxKC5p7--