How do you show the difference between an empty value and one to be unset then?

-------- Original message --------
From: Aaron Schrab <aa...@schrab.com> 
Date: 18/08/2013  14:18  (GMT+00:00) 
To: Nicholas Marriott <nicholas.marri...@gmail.com> 
Cc: tmux-users@lists.sourceforge.net 
Subject: Re:  Support showenv output as shell code 
 
At 07:51 +0100 18 Aug 2013, Nicholas Marriott <nicholas.marri...@gmail.com> 
wrote:
>All you are adding here is escaping quotes?

For variables that are set, it adds single quotes around the value and 
replaces every single quote within the value with '\'' .  So in that 
case you could say that it's only adding escaping quotes.  But, for 
values that are unset this would eliminate the leading "-", replacing it 
with a trailing "=" instead.

>Why not make that the default?

I didn't want to change the default behavior for anybody who has code 
that attempts to parse the current output, like the preexec hook shown 
elsewhere in the thread.  Even though I argue that the current output 
can't be parsed reliably, I do admit that such parsing can be successful 
most of the time.
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to