On 19 March 2016 at 13:51, Sam Ruby <[email protected]> wrote: > On Sat, Mar 19, 2016 at 5:17 AM, Sebastian Bazley <[email protected]> wrote: >> Commit 1e101bab079f2cef778ddfe5099e494e21d4e0e9: >> Easier to read > > If you are going to go for pretty, consider: > > https://github.com/rubys/wunderbar/blob/master/demo/envdump.rb > > Changing to html from plain text would enable things like 'redacted' > to be in a different font (e.g. italicized).
Thanks, good to know But if there is a problem with the PATH etc then wunderbar may not be available. Also plain text is better for use with wget/cURL/diff > - Sam Ruby > >> >> Branch: refs/heads/master >> Author: Sebb <[email protected]> >> Committer: Sebb <[email protected]> >> Pusher: sebb <[email protected]> >> >> ------------------------------------------------------------ >> www/board/test.cgi | ++++++ - >> www/committers/test.cgi | ++++++ - >> www/members/test.cgi | ++++++ - >> www/test.cgi | ++++++ - >> ------------------------------------------------------------ >> 28 changes: 24 additions, 4 deletions. >> ------------------------------------------------------------ >> >> >> diff --git a/www/board/test.cgi b/www/board/test.cgi >> index 011c7f6..2116558 100755 >> --- a/www/board/test.cgi >> +++ b/www/board/test.cgi >> @@ -2,4 +2,9 @@ >> >> print "Content-type: text/plain\r\n\r\n" >> >> -print ENV.inspect >> +#print ENV.inspect >> + >> +ENV.sort.each do |k,v| >> + print "#{k} #{v}\n" >> +end >> + >> diff --git a/www/committers/test.cgi b/www/committers/test.cgi >> index 011c7f6..2116558 100755 >> --- a/www/committers/test.cgi >> +++ b/www/committers/test.cgi >> @@ -2,4 +2,9 @@ >> >> print "Content-type: text/plain\r\n\r\n" >> >> -print ENV.inspect >> +#print ENV.inspect >> + >> +ENV.sort.each do |k,v| >> + print "#{k} #{v}\n" >> +end >> + >> diff --git a/www/members/test.cgi b/www/members/test.cgi >> index 011c7f6..2116558 100755 >> --- a/www/members/test.cgi >> +++ b/www/members/test.cgi >> @@ -2,4 +2,9 @@ >> >> print "Content-type: text/plain\r\n\r\n" >> >> -print ENV.inspect >> +#print ENV.inspect >> + >> +ENV.sort.each do |k,v| >> + print "#{k} #{v}\n" >> +end >> + >> diff --git a/www/test.cgi b/www/test.cgi >> index 011c7f6..2116558 100755 >> --- a/www/test.cgi >> +++ b/www/test.cgi >> @@ -2,4 +2,9 @@ >> >> print "Content-type: text/plain\r\n\r\n" >> >> -print ENV.inspect >> +#print ENV.inspect >> + >> +ENV.sort.each do |k,v| >> + print "#{k} #{v}\n" >> +end >> +
