bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Paste with null delimiter


From: Eric Blake
Subject: Re: Paste with null delimiter
Date: Tue, 3 Nov 2015 10:41:22 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0

On 11/03/2015 09:29 AM, address@hidden 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

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]