git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [RFC/PATCH] git-web--browse: don't add start as candidate on Ubuntu

From
Petr Baudis <pasky@suse.cz>
Date
Jan 4, 2009, 13:29 UTC
Message-ID
<20090104132947.GV12275@machine.or.cz>
In-Reply-To
<7vljtr33sb.fsf@gitster.siamese.dyndns.org>
On Sat, Jan 03, 2009 at 11:53:56PM -0800, Junio C Hamano wrote:
Show 7 quoted lines
> Christian Couder <chriscool@tuxfamily.org> writes:
> 
> > Le jeudi 1 janvier 2009, Ramsay Jones a écrit :
> > ...
> >> Does anybody else see this issue and can someone test the patch?
> >
> > Petr, as you added support for using /bin/start on MinGW, could you test?
Sorry, I don't have access to MinGW system anymore.
Show 16 quoted lines
> > diff --git a/git-web--browse.sh b/git-web--browse.sh
> > index 78d236b..7ed0fad 100755
> > --- a/git-web--browse.sh
> > +++ b/git-web--browse.sh
> > @@ -115,7 +115,7 @@ if test -z "$browser" ; then
> >  	browser_candidates="open $browser_candidates"
> >      fi
> >      # /bin/start indicates MinGW
> > -    if test -n /bin/start; then
> > +    if test -x /bin/start; then
> >  	browser_candidates="start $browser_candidates"
> >      fi
> 
> In any case, the original test is simply bogus.  'test -n "$foo"' is to
> see if $foo is an empty string, and giving a constant /bin/start always
> yields true.
Oops. :-) That should've obviously been -f.
-- 
				Petr "Pasky" Baudis
The average, healthy, well-adjusted adult gets up at seven-thirty
in the morning feeling just terrible. -- Jean Kerr
Previous: Junio C HamanoNext: Ramsay Jones
Message 4 of 5 in “git-web--browse: don't add start as candidate on Ubuntu”
  1. git-web--browse: don't add start as candidate on UbuntuRamsay Jones, Jan 1, 2009
  2. Christian CouderJan 4, 2009
  3. Junio C HamanoJan 4, 2009
  4. Petr BaudisJan 4, 2009
  5. git-web--browse: don't add start as candidate on UbuntuRamsay Jones, Jan 12, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.