|
From: | Eduardo A . Bustamante López |
Subject: | Re: [Help-bash] Transform strings with special characters so that the strings don't need to be quoted? |
Date: | Wed, 25 Mar 2015 20:22:19 -0600 |
User-agent: | Mutt/1.5.23 (2014-03-12) |
> Why $'\0' is contracted to an empty string? > > printf %q $'\0' Because you can't store NUL bytes in bash strings. That means that: $'\0' is equivalent to: '', $'\0\0', $'\0\0\0\0', ... Also, $'a\0b' = a -- Eduardo Bustamante | https://dualbus.me/
[Prev in Thread] | Current Thread | [Next in Thread] |