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

Re: [PATCH 1/3] configure: Add test for Perl

From
DSDennis Stosberg <dennis@stosberg.net>
Date
Jul 6, 2006, 14:25 UTC
Message-ID
<20060706142532.G37e44125@leonov.stosberg.net>
In-Reply-To
<20060706141725.28115.qmail@775c2aaf180a85.315fe32.mid.smarden.org>
Gerrit Pape wrote:
Show 7 quoted lines
> This should work with shell/builtins only, no sed/cut:
>
>  path=${PATH}:
>  while test -n "$path"; do
>    p=${path%%:*}/$1
>    test ! -x "$p" || { echo "$p"; return 0; }
>    path=${path#*:}

$ exec /bin/sh $ uname -a SunOS hostname 5.9 Generic_118558-25 sun4u sparc SUNW,Ultra-5_10 Solaris $ echo ${PATH%%:*} bad substitution $ echo ${PATH#*:} bad substitution

Regards, Dennis

Previous: Gerrit PapeNext: Timo Hirvonen
Message 7 of 14 in “configure: Add test for Perl”
  1. 1/3 configure: Add test for PerlDennis Stosberg, Jul 6, 2006
  2. Randal L. SchwartzJul 6, 2006
  3. Timo HirvonenJul 6, 2006
  4. Dennis StosbergJul 6, 2006
  5. Matthias LederhoferJul 6, 2006
  6. Gerrit PapeJul 6, 2006
  7. Dennis StosbergJul 6, 2006
  8. Timo HirvonenJul 6, 2006
  9. Dennis StosbergJul 6, 2006
  10. Petr BaudisJul 7, 2006
  11. Junio C HamanoJul 7, 2006
  12. Timo HirvonenJul 7, 2006
  13. Alex RiesenJul 6, 2006
  14. Dennis StosbergJul 6, 2006

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.