[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: is it normal that set -x unset commands dont display special chars i
Alex fxmbsw7 Ratchev
Re: is it normal that set -x unset commands dont display special chars in the content
Mon, 1 Mar 2021 11:05:12 +0100
it just displays the wrong data completly, the special chars cutted off, ..
On Mon, Mar 1, 2021 at 10:28 AM Alex fxmbsw7 Ratchev <email@example.com>
> i still dont understand, ( you speak more special english than code ), why
> unset wont display the special chars, but then i suppose its not much of a
> bug .. ?
> On Mon, Mar 1, 2021 at 1:19 AM Chet Ramey <firstname.lastname@example.org> wrote:
>> On 2/28/21 6:19 PM, email@example.com wrote:
>> >> The check for shell special characters, which results in single
>> >> comes before whether there are any characters that would require ANSI-C
>> >> quoting. This is not specific to unset.
>> > In fairness, I don't think it's strictly incorrect to say that the
>> > is different "for" one of two commands used in a trivial example. I was
>> > only attempting to clarify the circumstances that begat the original
>> I understand. The point is that it's faulty reasoning to say that it's a
>> difference between two commands when there are more differences than the
>> (builtin) command name itself. It's one of the first rules of
>> troubleshooting: reduce the number of variables between cases.
>> In this case, running `:' and `unset' with the same arguments would have
>> shown that that difference was in how the arguments are treated, not the
>> builtin itself.
>> ``The lyf so short, the craft so long to lerne.'' - Chaucer
>> ``Ars longa, vita brevis'' - Hippocrates
>> Chet Ramey, UTech, CWRU firstname.lastname@example.org http://tiswww.cwru.edu/~chet/