From acb7da09ee8c2bfdb8568d4078595fba516b79ee Mon Sep 17 00:00:00 2001 From: Patrick Linnane Date: Thu, 1 Aug 2024 16:56:01 -0700 Subject: [PATCH 01/24] lame: Stop interpolating `bin` --- Formula/l/lame.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/l/lame.rb b/Formula/l/lame.rb index 3351a69c584f0..007d78e2aeed9 100644 --- a/Formula/l/lame.rb +++ b/Formula/l/lame.rb @@ -42,6 +42,6 @@ def install end test do - system "#{bin}/lame", "--genre-list", test_fixtures("test.mp3") + system bin/"lame", "--genre-list", test_fixtures("test.mp3") end end From 46a8f455d93fd8b70cd7ab9e34dfbea4f139d76b Mon Sep 17 00:00:00 2001 From: Patrick Linnane Date: Thu, 1 Aug 2024 16:56:01 -0700 Subject: [PATCH 02/24] latex2html: Stop interpolating `bin` --- Formula/l/latex2html.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/l/latex2html.rb b/Formula/l/latex2html.rb index 79cbb606f95c3..87440079bc820 100644 --- a/Formula/l/latex2html.rb +++ b/Formula/l/latex2html.rb @@ -40,7 +40,7 @@ def install \\maketitle \\end{document} EOS - system "#{bin}/latex2html", "test.tex" + system bin/"latex2html", "test.tex" assert_match "Experimental Setup", File.read("test/test.html") end end From 807812ba8b984cc8749220cb1ba7ab286d50487a Mon Sep 17 00:00:00 2001 From: Patrick Linnane Date: Thu, 1 Aug 2024 16:56:01 -0700 Subject: [PATCH 03/24] launch4j: Stop interpolating `bin` --- Formula/l/launch4j.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/l/launch4j.rb b/Formula/l/launch4j.rb index eb123666a87ad..f623025f8cd0b 100644 --- a/Formula/l/launch4j.rb +++ b/Formula/l/launch4j.rb @@ -36,6 +36,6 @@ def install end test do - system "#{bin}/launch4j", "--version" + system bin/"launch4j", "--version" end end From ed5eca627a4a9eac51f8aab69d0ed27faa68c766 Mon Sep 17 00:00:00 2001 From: Patrick Linnane Date: Thu, 1 Aug 2024 16:56:01 -0700 Subject: [PATCH 04/24] lbzip2: Stop interpolating `bin` --- Formula/l/lbzip2.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/l/lbzip2.rb b/Formula/l/lbzip2.rb index 9a8f8de769637..2c945980435c0 100644 --- a/Formula/l/lbzip2.rb +++ b/Formula/l/lbzip2.rb @@ -39,7 +39,7 @@ def install test do touch "fish" - system "#{bin}/lbzip2", "fish" + system bin/"lbzip2", "fish" system "#{bin}/lbunzip2", "fish.bz2" end end From 1c348c67b4d20f461da145c16cd0474fb643d51d Mon Sep 17 00:00:00 2001 From: Patrick Linnane Date: Thu, 1 Aug 2024 16:56:02 -0700 Subject: [PATCH 05/24] lci: Stop interpolating `bin` --- Formula/l/lci.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/l/lci.rb b/Formula/l/lci.rb index 08b37f874e314..b1bd82d0965a2 100644 --- a/Formula/l/lci.rb +++ b/Formula/l/lci.rb @@ -30,6 +30,6 @@ def install end test do - assert_match "[I, 2]", pipe_output("#{bin}/lci", "Append [1] [2]\n") + assert_match "[I, 2]", pipe_output(bin/"lci", "Append [1] [2]\n") end end From 020dca2208a76c433705fe38490b896ff4649ffd Mon Sep 17 00:00:00 2001 From: Patrick Linnane Date: Thu, 1 Aug 2024 16:56:02 -0700 Subject: [PATCH 06/24] lcov: Stop interpolating `bin` --- Formula/l/lcov.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/l/lcov.rb b/Formula/l/lcov.rb index 0a736fa1117eb..c98af3175be21 100644 --- a/Formula/l/lcov.rb +++ b/Formula/l/lcov.rb @@ -217,7 +217,7 @@ def install system gcc, "-g", "-O2", "--coverage", "-o", "hello", "hello.c" system "./hello" - system "#{bin}/lcov", "--gcov-tool", gcov, "--directory", ".", "--capture", "--output-file", "all_coverage.info" + system bin/"lcov", "--gcov-tool", gcov, "--directory", ".", "--capture", "--output-file", "all_coverage.info" assert_predicate testpath/"all_coverage.info", :exist? assert_includes (testpath/"all_coverage.info").read, testpath/"hello.c" From c5a8968a1418aa93c20929ba7d94699ea1801977 Mon Sep 17 00:00:00 2001 From: Patrick Linnane Date: Thu, 1 Aug 2024 16:56:02 -0700 Subject: [PATCH 07/24] ldns: Stop interpolating `bin` --- Formula/l/ldns.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/l/ldns.rb b/Formula/l/ldns.rb index d1bf266ac64aa..08997e16ccf44 100644 --- a/Formula/l/ldns.rb +++ b/Formula/l/ldns.rb @@ -86,7 +86,7 @@ def install powerdns.com. 10773 IN DNSKEY 257 3 8 #{l2.tr!("\n", " ")} EOS - system "#{bin}/ldns-key2ds", "powerdns.com.dnskey" + system bin/"ldns-key2ds", "powerdns.com.dnskey" match = "d4c3d5552b8679faeebc317e5f048b614b2e5f607dc57f1553182d49ab2179f7" assert_match match, File.read("Kpowerdns.com.+008+44030.ds") From c537b02b02130f2dbf1199c30ba0400fb84f99fb Mon Sep 17 00:00:00 2001 From: Patrick Linnane Date: Thu, 1 Aug 2024 16:56:02 -0700 Subject: [PATCH 08/24] leaps: Stop interpolating `bin` --- Formula/l/leaps.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/l/leaps.rb b/Formula/l/leaps.rb index 26782a3ff179b..e500dc6abea09 100644 --- a/Formula/l/leaps.rb +++ b/Formula/l/leaps.rb @@ -30,7 +30,7 @@ def install # Start the server in a fork leaps_pid = fork do - exec "#{bin}/leaps", "-address", port + exec bin/"leaps", "-address", port end # Give the server some time to start serving From 4b6cee40190f3bac42d2871ba80fcae710b2fe3b Mon Sep 17 00:00:00 2001 From: Patrick Linnane Date: Thu, 1 Aug 2024 16:56:02 -0700 Subject: [PATCH 09/24] lemon: Stop interpolating `bin` --- Formula/l/lemon.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/l/lemon.rb b/Formula/l/lemon.rb index dc4fec97190b7..8cca8bf5b3e29 100644 --- a/Formula/l/lemon.rb +++ b/Formula/l/lemon.rb @@ -37,7 +37,7 @@ def install end test do - system "#{bin}/lemon", "-d#{testpath}", "#{pkgshare}/lemon-test01.y" + system bin/"lemon", "-d#{testpath}", "#{pkgshare}/lemon-test01.y" system ENV.cc, "lemon-test01.c" assert_match "tests pass", shell_output("./a.out") end From ea2bd3ee72f90d6b54290e5947d3310d2757a07e Mon Sep 17 00:00:00 2001 From: Patrick Linnane Date: Thu, 1 Aug 2024 16:56:02 -0700 Subject: [PATCH 10/24] lepton: Stop interpolating `bin` --- Formula/l/lepton.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Formula/l/lepton.rb b/Formula/l/lepton.rb index fd47599dd7a30..c91c696db5d83 100644 --- a/Formula/l/lepton.rb +++ b/Formula/l/lepton.rb @@ -34,8 +34,8 @@ def install test do cp test_fixtures("test.jpg"), "test.jpg" - system "#{bin}/lepton", "test.jpg", "compressed.lep" - system "#{bin}/lepton", "compressed.lep", "test_restored.jpg" + system bin/"lepton", "test.jpg", "compressed.lep" + system bin/"lepton", "compressed.lep", "test_restored.jpg" cmp "test.jpg", "test_restored.jpg" end end From 0e14ce3200ba632993c33d807ef4356f0b97b132 Mon Sep 17 00:00:00 2001 From: Patrick Linnane Date: Thu, 1 Aug 2024 16:56:02 -0700 Subject: [PATCH 11/24] lftp: Stop interpolating `bin` --- Formula/l/lftp.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/l/lftp.rb b/Formula/l/lftp.rb index dbaa6a6968cea..0749bfcb3b4f2 100644 --- a/Formula/l/lftp.rb +++ b/Formula/l/lftp.rb @@ -51,6 +51,6 @@ def install end test do - system "#{bin}/lftp", "-c", "open https://ftp.gnu.org/; ls" + system bin/"lftp", "-c", "open https://ftp.gnu.org/; ls" end end From 7a372ba7e1c341eb208a847a3046c344dae2a402 Mon Sep 17 00:00:00 2001 From: Patrick Linnane Date: Thu, 1 Aug 2024 16:56:02 -0700 Subject: [PATCH 12/24] lha: Stop interpolating `bin` --- Formula/l/lha.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/l/lha.rb b/Formula/l/lha.rb index b821886afe26d..98d3cecddb1e8 100644 --- a/Formula/l/lha.rb +++ b/Formula/l/lha.rb @@ -45,7 +45,7 @@ def install test do (testpath/"foo").write "test" - system "#{bin}/lha", "c", "foo.lzh", "foo" + system bin/"lha", "c", "foo.lzh", "foo" assert_equal "::::::::\nfoo\n::::::::\ntest", shell_output("#{bin}/lha p foo.lzh") end From aeb389dffba3f7fe838680e26aed9415773b0d10 Mon Sep 17 00:00:00 2001 From: Patrick Linnane Date: Thu, 1 Aug 2024 16:56:02 -0700 Subject: [PATCH 13/24] lightgbm: Stop interpolating `bin` --- Formula/l/lightgbm.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/l/lightgbm.rb b/Formula/l/lightgbm.rb index a0520f127092d..3807100a8616a 100644 --- a/Formula/l/lightgbm.rb +++ b/Formula/l/lightgbm.rb @@ -32,7 +32,7 @@ def install test do cp_r (pkgshare/"examples/regression"), testpath cd "regression" do - system "#{bin}/lightgbm", "config=train.conf" + system bin/"lightgbm", "config=train.conf" end end end From 0f4846c95818ff2d6461c242dce1c01dbe3623cd Mon Sep 17 00:00:00 2001 From: Patrick Linnane Date: Thu, 1 Aug 2024 16:56:02 -0700 Subject: [PATCH 14/24] lighttpd: Stop interpolating `bin` --- Formula/l/lighttpd.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/l/lighttpd.rb b/Formula/l/lighttpd.rb index d58aae4987b80..b571b65c60d17 100644 --- a/Formula/l/lighttpd.rb +++ b/Formula/l/lighttpd.rb @@ -98,6 +98,6 @@ def caveats end test do - system "#{bin}/lighttpd", "-t", "-f", etc/"lighttpd/lighttpd.conf" + system bin/"lighttpd", "-t", "-f", etc/"lighttpd/lighttpd.conf" end end From 4072119201ab1137c28207764a42ed21f9fcec84 Mon Sep 17 00:00:00 2001 From: Patrick Linnane Date: Thu, 1 Aug 2024 16:56:02 -0700 Subject: [PATCH 15/24] linklint: Stop interpolating `bin` --- Formula/l/linklint.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/l/linklint.rb b/Formula/l/linklint.rb index 6a7f9b1b2dcf6..79b09b3a81fec 100644 --- a/Formula/l/linklint.rb +++ b/Formula/l/linklint.rb @@ -22,6 +22,6 @@ def install test do (testpath/"index.html").write('Home') - system "#{bin}/linklint", "/" + system bin/"linklint", "/" end end From e5c28c8d261566927dc16d802867ff445725dff1 Mon Sep 17 00:00:00 2001 From: Patrick Linnane Date: Thu, 1 Aug 2024 16:56:02 -0700 Subject: [PATCH 16/24] liquibase: Stop interpolating `bin` --- Formula/l/liquibase.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/l/liquibase.rb b/Formula/l/liquibase.rb index dcd553a8dfa07..5552672cdd68f 100644 --- a/Formula/l/liquibase.rb +++ b/Formula/l/liquibase.rb @@ -39,6 +39,6 @@ def caveats end test do - system "#{bin}/liquibase", "--version" + system bin/"liquibase", "--version" end end From ad34a92a01065e5b94f90381ce19438994e396cc Mon Sep 17 00:00:00 2001 From: Patrick Linnane Date: Thu, 1 Aug 2024 16:56:02 -0700 Subject: [PATCH 17/24] lockrun: Stop interpolating `bin` --- Formula/l/lockrun.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/l/lockrun.rb b/Formula/l/lockrun.rb index 87e0bca74df4c..f637977e8a23c 100644 --- a/Formula/l/lockrun.rb +++ b/Formula/l/lockrun.rb @@ -36,6 +36,6 @@ def install end test do - system "#{bin}/lockrun", "--version" + system bin/"lockrun", "--version" end end From 44177768d2f3f1aa0dc064dd89dbe8902eaaf7f5 Mon Sep 17 00:00:00 2001 From: Patrick Linnane Date: Thu, 1 Aug 2024 16:56:02 -0700 Subject: [PATCH 18/24] log4c: Stop interpolating `bin` --- Formula/l/log4c.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/l/log4c.rb b/Formula/l/log4c.rb index f798fb5594a33..5d55faeef24ed 100644 --- a/Formula/l/log4c.rb +++ b/Formula/l/log4c.rb @@ -40,6 +40,6 @@ def install end test do - system "#{bin}/log4c-config", "--version" + system bin/"log4c-config", "--version" end end From 4a01ff9aaec81fd247ed62fd1d00f25a95cc567f Mon Sep 17 00:00:00 2001 From: Patrick Linnane Date: Thu, 1 Aug 2024 16:56:02 -0700 Subject: [PATCH 19/24] lsof: Stop interpolating `bin` --- Formula/l/lsof.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/l/lsof.rb b/Formula/l/lsof.rb index 68a4b6e59ca28..871d5c67b2246 100644 --- a/Formula/l/lsof.rb +++ b/Formula/l/lsof.rb @@ -44,7 +44,7 @@ def install test do (testpath/"test").open("w") do - system "#{bin}/lsof", testpath/"test" + system bin/"lsof", testpath/"test" end end end From 22a987fb214e957f8ecf5d8896d3049ee2019ce7 Mon Sep 17 00:00:00 2001 From: Patrick Linnane Date: Thu, 1 Aug 2024 16:56:02 -0700 Subject: [PATCH 20/24] lsusb: Stop interpolating `bin` --- Formula/l/lsusb.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/l/lsusb.rb b/Formula/l/lsusb.rb index bca371923f149..1423008e8130a 100644 --- a/Formula/l/lsusb.rb +++ b/Formula/l/lsusb.rb @@ -20,7 +20,7 @@ def install end test do - output = shell_output("#{bin}/lsusb") + output = shell_output(bin/"lsusb") assert_match(/^Bus [0-9]+ Device [0-9]+:/, output) end end From f394d9fca945c6dbecee6f48b30c0672a08cfa56 Mon Sep 17 00:00:00 2001 From: Patrick Linnane Date: Thu, 1 Aug 2024 16:56:02 -0700 Subject: [PATCH 21/24] luarocks: Stop interpolating `bin` --- Formula/l/luarocks.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/l/luarocks.rb b/Formula/l/luarocks.rb index 1221781cd3f85..f1f32ba0f176f 100644 --- a/Formula/l/luarocks.rb +++ b/Formula/l/luarocks.rb @@ -66,7 +66,7 @@ def install ENV["LUA_PATH"] = "#{testpath}/share/lua/#{luaversion}/?.lua" ENV["LUA_CPATH"] = "#{testpath}/lib/lua/#{luaversion}/?.so" - system "#{bin}/luarocks", "install", + system bin/"luarocks", "install", "luafilesystem", "--tree=#{testpath}", "--lua-dir=#{lua.opt_prefix}" From 43562d75913f2263f2c3d5b45b43adde63ebe89c Mon Sep 17 00:00:00 2001 From: Patrick Linnane Date: Thu, 1 Aug 2024 16:56:02 -0700 Subject: [PATCH 22/24] lynx: Stop interpolating `bin` --- Formula/l/lynx.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/l/lynx.rb b/Formula/l/lynx.rb index 2bde6374e3bf7..b7ea7e0966ef9 100644 --- a/Formula/l/lynx.rb +++ b/Formula/l/lynx.rb @@ -54,6 +54,6 @@ def install end test do - system "#{bin}/lynx", "-dump", "https://example.org/" + system bin/"lynx", "-dump", "https://example.org/" end end From 60faaba9e3d04a08e7ed48157bc05a9da6ecbd84 Mon Sep 17 00:00:00 2001 From: Patrick Linnane Date: Thu, 1 Aug 2024 16:56:02 -0700 Subject: [PATCH 23/24] lzip: Stop interpolating `bin` --- Formula/l/lzip.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Formula/l/lzip.rb b/Formula/l/lzip.rb index 5c9a83945769f..4a3d05bb3cd1a 100644 --- a/Formula/l/lzip.rb +++ b/Formula/l/lzip.rb @@ -35,11 +35,11 @@ def install path.write original_contents # compress: data.txt -> data.txt.lz - system "#{bin}/lzip", path + system bin/"lzip", path refute_predicate path, :exist? # decompress: data.txt.lz -> data.txt - system "#{bin}/lzip", "-d", "#{path}.lz" + system bin/"lzip", "-d", "#{path}.lz" assert_equal original_contents, path.read end end From e17c6756ce5cf3d45ca2a6f3d039afb3d6b6756a Mon Sep 17 00:00:00 2001 From: Patrick Linnane Date: Thu, 1 Aug 2024 16:56:03 -0700 Subject: [PATCH 24/24] lzop: Stop interpolating `bin` --- Formula/l/lzop.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Formula/l/lzop.rb b/Formula/l/lzop.rb index 32383af9a1065..fd5128eb8eb1c 100644 --- a/Formula/l/lzop.rb +++ b/Formula/l/lzop.rb @@ -40,11 +40,11 @@ def install text = "This is Homebrew" path.write text - system "#{bin}/lzop", "test" + system bin/"lzop", "test" assert_predicate testpath/"test.lzo", :exist? rm path - system "#{bin}/lzop", "-d", "test.lzo" + system bin/"lzop", "-d", "test.lzo" assert_equal text, path.read end end