bug-bash
[Top][All Lists]
Advanced

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

Re: remove empty '' in address@hidden result?


From: Greg Wooledge
Subject: Re: remove empty '' in address@hidden result?
Date: Mon, 30 Oct 2017 08:35:26 -0400
User-agent: NeoMutt/20170113 (1.7.2)

On Mon, Oct 30, 2017 at 10:34:47AM +0800, Clark Wang wrote:
> See following example:
> 
> [STEP 100] # echo $BASH_VERSION
> 4.4.12(2)-release
> [STEP 101] # v=\'\'
> [STEP 102] # printf '%q\n' "$v"
> \'\'
> [STEP 103] # printf '%s\n' "address@hidden"
> ''\'''\'''
> [STEP 104] #

What's the bug?  They are equivalent.

If you mean "I would like bash to perform a second optimization pass
over the result of address@hidden so that it's prettier in my degenerate edge
cases", I suspect there are better uses of Chet's time, but it's his call.



reply via email to

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