[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: redirecting a file descriptor to an array variable? Possible? How? R
From: |
Greg Wooledge |
Subject: |
Re: redirecting a file descriptor to an array variable? Possible? How? RFE? |
Date: |
Wed, 18 Nov 2015 15:38:16 -0500 |
User-agent: |
Mutt/1.4.2.3i |
On Wed, Nov 18, 2015 at 12:29:15PM -0800, Linda Walsh wrote:
> Greg Wooledge wrote:
> >An argument cannot contain a NUL byte. So it's moot.
> ---
> As in:
> >printf '"%c"\n' $'\x00'|hexdump -C
> 00000000 22 00 22 0a |".".|
imadev:~$ printf '"%c"\n' '' | od -t x1
0000000 22 0 22 a
0000004
$'\x00' and $'\0' and '' and "" are all empty strings.
Still don't believe me?
imadev:~$ x=$'\x00'; echo "${#x}"
0
It has length 0.
- Re: redirecting a file descriptor to an array variable? Possible? How? RFE?, (continued)
Re: redirecting a file descriptor to an array variable? Possible? How? RFE?, konsolebox, 2015/11/16