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


Groups > gnu.bash.bug > #15721

Re: Not missing, but very hard to see (was Re: Backslash missing in brace expansion)

From Ilkka Virta <itvirta@iki.fi>
Newsgroups gnu.bash.bug
Subject Re: Not missing, but very hard to see (was Re: Backslash missing in brace expansion)
Date 2019-12-12 23:01 +0200
Message-ID <mailman.748.1576184532.1979.bug-bash@gnu.org> (permalink)
References (3 earlier) <5b5064a8-7175-42e7-1eb5-6374dee6c11e@redhat.com> <21761e28-c496-ff67-d7b7-628c9325085f@iki.fi> <9dd3a388-39b1-c059-de99-813f1e411764@case.edu> <5DF2987E.5000309@tlinx.org> <568aeaaa-22b3-c7b9-0e18-a92bef6d2ffb@iki.fi>

Show all headers | View raw


On 12.12. 21:43, L A Walsh wrote:
> On 2019/12/06 14:14, Chet Ramey wrote:
> 
> Seems very hard to print out that backquote though.  Closest I got
> was bash converting it to "''":

The backquote is in [6], and the backslash disappears, you just get the 
pair of quotes in [2] because that's how printf %q outputs an empty string.

>>  read -r -a a< <(printf "%q " {Z..a})
>>  my -p a
> declare -a a=([0]="Z" [1]="\\[" [2]="''" [3]="\\]" [4]="\\^" [5]="_" 
> [6]="\\\`" [7]="a")


-- 
Ilkka Virta / itvirta@iki.fi

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


Thread

Re: Not missing, but very hard to see (was Re: Backslash missing in brace expansion) Ilkka Virta <itvirta@iki.fi> - 2019-12-12 23:01 +0200

csiph-web