bug-bash
[Top][All Lists]
Advanced

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

Re: Not missing, but very hard to see (was Re: Backslash missing in brac


From: Ilkka Virta
Subject: Re: Not missing, but very hard to see (was Re: Backslash missing in brace expansion)
Date: Thu, 12 Dec 2019 23:01:58 +0200
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:60.0) Gecko/20100101 Thunderbird/60.9.1

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 / address@hidden



reply via email to

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