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


Groups > gnu.bash.bug > #11823

Re: Paste with null delimiter

From Eric Blake <eblake@redhat.com>
Newsgroups gnu.bash.bug
Subject Re: Paste with null delimiter
Date 2015-11-03 10:41 -0700
Organization Red Hat, Inc.
Message-ID <mailman.1591.1446572489.7904.bug-bash@gnu.org> (permalink)
References <3a207f09-fc2b-4a2e-a6e5-1d33c7479849@googlegroups.com>

Show all headers | 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