Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: debug print left in 'run-help'?
- X-seq: zsh-workers 26880
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: gak@xxxxxxxxxxxxxx, Zsh list <zsh-workers@xxxxxxxxxx>
- Subject: Re: debug print left in 'run-help'?
- Date: Sat, 25 Apr 2009 13:10:49 -0700
- In-reply-to: <18925.60567.301071.766082@xxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <18925.60567.301071.766082@xxxxxxxxxxxxxxxxxx>
On Apr 21, 11:56am, Greg Klanderman wrote:
} Subject: debug print left in 'run-help'?
}
} There seems to be a spurious debug print statement left in
} the 'run-help' function, at around line 57:
}
} | builtin print -r $what
}
} Should/can this be removed?
I see that PWS committed this, but I think that was wrong. That print
has always been there since the first revision of run-help, and is not
a spurious debugging statement.
It's intended to make sure that useful output is produced in the event
that the case-statement that follows it branches off into an unexpected
place or outputs nothing. For example, with that "builtin print"
statement present:
schaefer[524] ls<ESC-h>
schaefer[524] run-help ls
ls is an alias for ls -CF
Press any key for more help or q to quit
At this point if you press anything other than "q", you get the manual
page for "ls".
With that "builtin print" removed:
schaefer[526] ls<ESC-h>
schaefer[526] run-help ls
Press any key for more help or q to quit
Umm, no.
Please back out this change.
--
Messages sorted by:
Reverse Date,
Date,
Thread,
Author