Re: cvs commit: apache-1.3/cgi-bin printenv
Marc Slemko wrote: 5. surround values with quotes to allow one to better recognize newlines (as in SERVER_SIGNATURE) and whitespaces and also print newlines as \n and as \ for a more Shell- and C-style syntax. Is it really standard to not display 's normally, but to stick a \ in front of them? I don't see that much. Standard or not, if you are going to do it, you really ought to replace \ with \\, too. Cheers, Ben. -- http://www.apache-ssl.org/ben.html My grandfather once told me that there are two kinds of people: those who work and those who take the credit. He told me to try to be in the first group; there was less competition there. - Indira Gandhi
Re: cvs commit: apache-1.3/cgi-bin printenv
On 24 Nov 1999 [EMAIL PROTECTED] wrote: 4. make sure very large lines (usually from $PATH) do not destroy the total optical view on the table by cutting values and replacing the missing stuff with [...]. Erm... this makes it less useful. If there is a long variable, then it is saying something and you should see it. I don't buy that it is destroying the total optical view on the table. You can make it even prettier by not displaying more than the first 50 characters, but you lose even more information. 5. surround values with quotes to allow one to better recognize newlines (as in SERVER_SIGNATURE) and whitespaces and also print newlines as \n and as \ for a more Shell- and C-style syntax. Is it really standard to not display 's normally, but to stick a \ in front of them? I don't see that much.
cvs commit: apache-1.3/cgi-bin printenv
dgaudet 99/11/24 10:11:00 Modified:cgi-bin printenv Log: no comment on the rest of this... but this is for debugging, and i don't want a debugging tool losing information for me for the sake of looking good. Revision ChangesPath 1.5 +0 -1 apache-1.3/cgi-bin/printenv Index: printenv === RCS file: /home/cvs/apache-1.3/cgi-bin/printenv,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- printenv 1999/11/24 13:38:55 1.4 +++ printenv 1999/11/24 18:10:58 1.5 @@ -8,7 +8,6 @@ $val = $ENV{$var}; $val =~ s|\n|\\n|g; $val =~ s||\\|g; -$val = substr($val, 0, 100).'[...]' if (length($val) 100); print ${var}=\${val}\\n; }