Project

General

Profile

Actions

Feature #452

closed

lighttpd -p output should be stdout

Added by Anonymous almost 16 years ago. Updated about 14 years ago.

Status:
Fixed
Priority:
Normal
Category:
core
Target version:
ASK QUESTIONS IN Forums:

Description

i think outout of -p (print the parsed config-file in internal form) should be printed to STDOUT and errors to STDERR so it could be parsed. (i just wanted to ''| less'' it, so it's just small annoyance)


# lighttpd -p -f /etc/lighttpd/lighttpd.conf 2>a; echo $?
255
# cat a
2006-01-10 20:20:51: (configfile.c.428) source: /etc/lighttpd/lighttpd.conf line: 340 pos: 11 use => for assignments in arrays
2006-01-10 20:20:51: (configfile.c.799) configfile parser failed: ^(.*)$
# lighttpd -p -f /etc/lighttpd/lighttpd.conf 2>b; echo $?
0
# head b
config {
    var.PID                        = 31354
    server.modules                 = (
        "mod_indexfile",
        "mod_rewrite",
        "mod_redirect",
        "mod_alias",
        "mod_access",

-- Elan Ruusamäe <glen

Actions #1

Updated by moo over 15 years ago

  • Status changed from New to Assigned

any idea, jan? add a FILE* as a 1st argument to all print functions? or s/stderr/stdout/g?

Actions #2

Updated by jan over 15 years ago

Just take stdout.

Actions #3

Updated by moo about 14 years ago

  • Status changed from Assigned to Fixed
  • Resolution set to fixed

it was fixed in r1318 thanks to jan

Actions

Also available in: Atom