• Inrin's avatar
    birdc: Do not execute cmd on noninteractive help request · 0b52f7c0
    Inrin authored and Ondřej Zajíček's avatar Ondřej Zajíček committed
    The help command triggered by '?' keeps the message in readline buffer,
    so it could be edited. For noninteractive shell it leads to an unexpected
    side effect that `echo <cmd> ? | birdc` executes the command <cmd> after
    showing its help. Avoid this by clearing the readline buffer in such case.
    0b52f7c0