Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #11823

Re: Paste with null delimiter

Path csiph.com!au2pb.net!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!news.glorb.com!usenet.stanford.edu!not-for-mail
From Eric Blake <eblake@redhat.com>
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 <mailman.1591.1446572489.7904.bug-bash@gnu.org> (permalink)
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 <bug-bash.gnu.org>
List-Unsubscribe <https://lists.gnu.org/mailman/options/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=unsubscribe>
List-Archive <http://lists.gnu.org/archive/html/bug-bash>
List-Post <mailto:bug-bash@gnu.org>
List-Help <mailto:bug-bash-request@gnu.org?subject=help>
List-Subscribe <https://lists.gnu.org/mailman/listinfo/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=subscribe>
Xref csiph.com gnu.bash.bug:11823

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

On 11/03/2015 09:29 AM, julio.neves@gmail.com wrote:
> An example is better than thousand words:
> 
> $ 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.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Back to gnu.bash.bug | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Paste with null delimiter julio.neves@gmail.com - 2015-11-03 08:29 -0800
  Re: Paste with null delimiter Eric Blake <eblake@redhat.com> - 2015-11-03 10:41 -0700
  Re: Paste with null delimiter Andreas Schwab <schwab@linux-m68k.org> - 2015-11-03 18:47 +0100
  Re: Paste with null delimiter Eric Blake <eblake@redhat.com> - 2015-11-03 13:32 -0700
  Re: Paste with null delimiter Eric Blake <eblake@redhat.com> - 2015-11-03 13:43 -0700
  Re: Paste with null delimiter Eric Blake <eblake@redhat.com> - 2015-11-03 13:52 -0700
  Re: Paste with null delimiter Andreas Schwab <schwab@linux-m68k.org> - 2015-11-03 22:57 +0100
  Re: Paste with null delimiter Stephane Chazelas <stephane.chazelas@gmail.com> - 2015-11-04 15:44 +0000

csiph-web