On Tue, May 02, 2023 at 07:11:14PM -0700, Dan Davison wrote:

> If I do
> 
> yes | less
> # exit with q
> echo $?
> 
> The exit code is 0.
> 
> However,  if I do
> 
> GIT_PAGER=less git log
> # exit with q
> echo $?
> 
> The exit code is 255.
> 
> Is this intentional, or would it be better for the pager when invoked by 
> git to behave like the pager does when invoked directly?

Before I provide some more explanations, can you please tell what OS,
platform, shell and Git version you're using?

I'm curious why 255, to be honest. Is this Windows?

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/git-users/20230503085435.kuoyyucudrxw3zdo%40carbon.

Reply via email to