From 19dcb382bf807cc14b1f728856d3966568dff03d Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:59:01 +0100 Subject: [PATCH 01/91] s3fs: Stop interpolating `bin` --- Formula/s/s3fs.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/s/s3fs.rb b/Formula/s/s3fs.rb index 0f9bbea171709..fcfd3f109a816 100644 --- a/Formula/s/s3fs.rb +++ b/Formula/s/s3fs.rb @@ -28,6 +28,6 @@ def install end test do - system "#{bin}/s3fs", "--version" + system bin/"s3fs", "--version" end end From 91fe7724d32083276062e109626bcf886997b011 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:59:02 +0100 Subject: [PATCH 02/91] sambamba: Stop interpolating `bin` --- Formula/s/sambamba.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Formula/s/sambamba.rb b/Formula/s/sambamba.rb index a652b93e25fad..179e6671711c0 100644 --- a/Formula/s/sambamba.rb +++ b/Formula/s/sambamba.rb @@ -38,8 +38,8 @@ def install end resource("homebrew-testdata").stage testpath - system "#{bin}/sambamba", "view", "-S", "ex1_header.sam", "-f", "bam", "-o", "ex1_header.bam" - system "#{bin}/sambamba", "sort", "-t2", "-n", "ex1_header.bam", "-o", "ex1_header.sorted.bam", "-m", "200K" + system bin/"sambamba", "view", "-S", "ex1_header.sam", "-f", "bam", "-o", "ex1_header.bam" + system bin/"sambamba", "sort", "-t2", "-n", "ex1_header.bam", "-o", "ex1_header.sorted.bam", "-m", "200K" assert_predicate testpath/"ex1_header.sorted.bam", :exist? end end From c1f1e484a8007d392bf710aef9be040ea7ac2cbe Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:59:02 +0100 Subject: [PATCH 03/91] sampler: Stop interpolating `bin` --- Formula/s/sampler.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/s/sampler.rb b/Formula/s/sampler.rb index 4fec3edad5017..f6e2aea503f04 100644 --- a/Formula/s/sampler.rb +++ b/Formula/s/sampler.rb @@ -31,6 +31,6 @@ def install end test do - assert_includes "specify config file", shell_output("#{bin}/sampler") + assert_includes "specify config file", shell_output(bin/"sampler") end end From 3ada6771906be0201aaddf7033b6f549697578d1 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:59:02 +0100 Subject: [PATCH 04/91] scarb: Stop interpolating `bin` --- Formula/s/scarb.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/s/scarb.rb b/Formula/s/scarb.rb index b366500060955..a46e24fa60504 100644 --- a/Formula/s/scarb.rb +++ b/Formula/s/scarb.rb @@ -38,7 +38,7 @@ def install test do assert_match "#{testpath}/Scarb.toml", shell_output("#{bin}/scarb manifest-path") - system "#{bin}/scarb", "init", "--name", "brewtest", "--no-vcs" + system bin/"scarb", "init", "--name", "brewtest", "--no-vcs" assert_predicate testpath/"src/lib.cairo", :exist? assert_match "brewtest", (testpath/"Scarb.toml").read From f12c54517d23a3734e61c5baca4e15b2650093b8 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:59:02 +0100 Subject: [PATCH 05/91] sccache: Stop interpolating `bin` --- Formula/s/sccache.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/s/sccache.rb b/Formula/s/sccache.rb index b4ed2ddfebf9f..af8c8e84ae6df 100644 --- a/Formula/s/sccache.rb +++ b/Formula/s/sccache.rb @@ -43,7 +43,7 @@ def install return 0; } EOS - system "#{bin}/sccache", "cc", "hello.c", "-o", "hello-c" + system bin/"sccache", "cc", "hello.c", "-o", "hello-c" assert_equal "Hello, world!", shell_output("./hello-c").chomp end end From 447255b62491fdd92b843d5027883bcc85841b21 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:59:02 +0100 Subject: [PATCH 06/91] scour: Stop interpolating `bin` --- Formula/s/scour.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/s/scour.rb b/Formula/s/scour.rb index 490c9fcc09f49..2b6a7b2a6f34f 100644 --- a/Formula/s/scour.rb +++ b/Formula/s/scour.rb @@ -33,7 +33,7 @@ def install end test do - system "#{bin}/scour", "-i", test_fixtures("test.svg"), "-o", "scrubbed.svg" + system bin/"scour", "-i", test_fixtures("test.svg"), "-o", "scrubbed.svg" assert_predicate testpath/"scrubbed.svg", :exist? end end From 78dce21bd42296e8bc024a47670f75c2538ff5a7 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:59:03 +0100 Subject: [PATCH 07/91] scrapy: Stop interpolating `bin` --- Formula/s/scrapy.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Formula/s/scrapy.rb b/Formula/s/scrapy.rb index e61c906984887..1b698516ca48e 100644 --- a/Formula/s/scrapy.rb +++ b/Formula/s/scrapy.rb @@ -198,9 +198,9 @@ def install test do assert_match version.to_s, shell_output("#{bin}/scrapy version") - system "#{bin}/scrapy", "startproject", "brewproject" + system bin/"scrapy", "startproject", "brewproject" cd testpath/"brewproject" do - system "#{bin}/scrapy", "genspider", "-t", "basic", "brewspider", "brew.sh" + system bin/"scrapy", "genspider", "-t", "basic", "brewspider", "brew.sh" assert_match "INFO: Spider closed (finished)", shell_output("#{bin}/scrapy crawl brewspider 2>&1") end end From 671f2cc65d5fba842c104d967c93008c75c07a0c Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:59:03 +0100 Subject: [PATCH 08/91] screenfetch: Stop interpolating `bin` --- Formula/s/screenfetch.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/s/screenfetch.rb b/Formula/s/screenfetch.rb index e02d0817fc519..9308b36129848 100644 --- a/Formula/s/screenfetch.rb +++ b/Formula/s/screenfetch.rb @@ -30,6 +30,6 @@ def install end test do - system "#{bin}/screenfetch" + system bin/"screenfetch" end end From ac9e496b15979be1adfc28dab6cd362a37b4cb2a Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:59:03 +0100 Subject: [PATCH 09/91] screenresolution: Stop interpolating `bin` --- Formula/s/screenresolution.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/s/screenresolution.rb b/Formula/s/screenresolution.rb index 34c1910cd041a..8a581ddae6fa2 100644 --- a/Formula/s/screenresolution.rb +++ b/Formula/s/screenresolution.rb @@ -30,6 +30,6 @@ def install end test do - system "#{bin}/screenresolution", "get" + system bin/"screenresolution", "get" end end From 05deca4077e3b2506c1e5d8f91d1e614c8012eb9 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:59:03 +0100 Subject: [PATCH 10/91] sdcc: Stop interpolating `bin` --- Formula/s/sdcc.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/s/sdcc.rb b/Formula/s/sdcc.rb index 792e0af66ca6d..41b8c2567755b 100644 --- a/Formula/s/sdcc.rb +++ b/Formula/s/sdcc.rb @@ -47,7 +47,7 @@ def install return 0; } EOS - system "#{bin}/sdcc", "-mz80", "#{testpath}/test.c" + system bin/"sdcc", "-mz80", "#{testpath}/test.c" assert_predicate testpath/"test.ihx", :exist? end end From bd7315b29af84f494b0e2ad236e279578698b1bf Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:59:04 +0100 Subject: [PATCH 11/91] sec: Stop interpolating `bin` --- Formula/s/sec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/s/sec.rb b/Formula/s/sec.rb index 20e9b38ea42f0..90539927151d9 100644 --- a/Formula/s/sec.rb +++ b/Formula/s/sec.rb @@ -23,6 +23,6 @@ def install end test do - system "#{bin}/sec", "--version" + system bin/"sec", "--version" end end From a4a599bb2c3e224ccf9067231e42e0bc8c765866 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:59:04 +0100 Subject: [PATCH 12/91] securefs: Stop interpolating `bin` --- Formula/s/securefs.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/s/securefs.rb b/Formula/s/securefs.rb index e41069b71b460..beaef043da13e 100644 --- a/Formula/s/securefs.rb +++ b/Formula/s/securefs.rb @@ -43,6 +43,6 @@ def install end test do - system "#{bin}/securefs", "version" # The sandbox prevents a more thorough test + system bin/"securefs", "version" # The sandbox prevents a more thorough test end end From 9f1133962d11d19d075b5e673dd444bdd401944c Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:59:04 +0100 Subject: [PATCH 13/91] selecta: Stop interpolating `bin` --- Formula/s/selecta.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/s/selecta.rb b/Formula/s/selecta.rb index 2425a9f65f16a..76684ec17daab 100644 --- a/Formula/s/selecta.rb +++ b/Formula/s/selecta.rb @@ -14,6 +14,6 @@ def install end test do - system "#{bin}/selecta", "--version" + system bin/"selecta", "--version" end end From d5a5f65b32ce1dcb7c8f29d2af83f4f467bc6728 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:59:04 +0100 Subject: [PATCH 14/91] senpai: Stop interpolating `bin` --- Formula/s/senpai.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/s/senpai.rb b/Formula/s/senpai.rb index 1e8606db2ab2f..29b02f725c239 100644 --- a/Formula/s/senpai.rb +++ b/Formula/s/senpai.rb @@ -26,7 +26,7 @@ def install test do require "pty" - stdout, _stdin, _pid = PTY.spawn "#{bin}/senpai" + stdout, _stdin, _pid = PTY.spawn bin/"senpai" _ = stdout.readline assert_equal "Configuration assistant: senpai will create a configuration file for you.\r\n", stdout.readline end From 1edbb7ee47ccee05676442938d287d62e5ff7cd8 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:59:04 +0100 Subject: [PATCH 15/91] serf: Stop interpolating `bin` --- Formula/s/serf.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Formula/s/serf.rb b/Formula/s/serf.rb index baf2a88f79b57..9a917845db800 100644 --- a/Formula/s/serf.rb +++ b/Formula/s/serf.rb @@ -36,12 +36,12 @@ def install test do pid = fork do - exec "#{bin}/serf", "agent" + exec bin/"serf", "agent" end sleep 1 assert_match(/:7946.*alive$/, shell_output("#{bin}/serf members")) ensure - system "#{bin}/serf", "leave" + system bin/"serf", "leave" Process.kill "SIGINT", pid Process.wait pid end From c22e9ad8247151d69423f939731013d8e2ba21b6 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:59:05 +0100 Subject: [PATCH 16/91] serverless: Stop interpolating `bin` --- Formula/s/serverless.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/s/serverless.rb b/Formula/s/serverless.rb index 6dc2ca1761437..80d0e6a8cfd0f 100644 --- a/Formula/s/serverless.rb +++ b/Formula/s/serverless.rb @@ -51,7 +51,7 @@ def install region: eu-west-1 EOS - system("#{bin}/serverless", "config", "credentials", "--provider", "aws", "--key", "aa", "--secret", "xx") + system(bin/"serverless", "config", "credentials", "--provider", "aws", "--key", "aa", "--secret", "xx") output = shell_output("#{bin}/serverless package 2>&1") assert_match "Packaging homebrew-test for stage dev", output end From d8ecb2496fd6f8992d3cc667e7dfd9e0877aa81e Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:59:05 +0100 Subject: [PATCH 17/91] sfk: Stop interpolating `bin` --- Formula/s/sfk.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/s/sfk.rb b/Formula/s/sfk.rb index f74db660a9596..e2218c5d30340 100644 --- a/Formula/s/sfk.rb +++ b/Formula/s/sfk.rb @@ -30,6 +30,6 @@ def install end test do - system "#{bin}/sfk", "ip" + system bin/"sfk", "ip" end end From 458efa6a71dc5c57d2855928dbb8a0624216f816 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:59:05 +0100 Subject: [PATCH 18/91] shairport: Stop interpolating `bin` --- Formula/s/shairport.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/s/shairport.rb b/Formula/s/shairport.rb index bd7915c1bce0f..f96469a4581a0 100644 --- a/Formula/s/shairport.rb +++ b/Formula/s/shairport.rb @@ -33,6 +33,6 @@ def install end test do - system "#{bin}/shairport", "-h" + system bin/"shairport", "-h" end end From 2f30eb3f48aaffdcc5c219abf0557db583ab5f77 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:59:05 +0100 Subject: [PATCH 19/91] sheldon: Stop interpolating `bin` --- Formula/s/sheldon.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/s/sheldon.rb b/Formula/s/sheldon.rb index 5829e2e12b23f..c8a3e424408af 100644 --- a/Formula/s/sheldon.rb +++ b/Formula/s/sheldon.rb @@ -49,7 +49,7 @@ def check_binary_linkage(binary, library) test do touch testpath/"plugins.toml" - system "#{bin}/sheldon", "--config-dir", testpath, "--data-dir", testpath, "lock" + system bin/"sheldon", "--config-dir", testpath, "--data-dir", testpath, "lock" assert_predicate testpath/"plugins.lock", :exist? [ From edda2825817c819ac7a02ed4f84952227a6cf5c2 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:59:05 +0100 Subject: [PATCH 20/91] shell2http: Stop interpolating `bin` --- Formula/s/shell2http.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/s/shell2http.rb b/Formula/s/shell2http.rb index 27968702a76ad..b854ab4223b50 100644 --- a/Formula/s/shell2http.rb +++ b/Formula/s/shell2http.rb @@ -28,7 +28,7 @@ def install test do port = free_port pid = fork do - exec "#{bin}/shell2http", "-port", port.to_s, "/echo", "echo brewtest" + exec bin/"shell2http", "-port", port.to_s, "/echo", "echo brewtest" end sleep 1 output = shell_output("curl -s http://localhost:#{port}") From 2259c8db5f33f8bbe35483a04dd0f54fdbadca92 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:59:06 +0100 Subject: [PATCH 21/91] shellshare: Stop interpolating `bin` --- Formula/s/shellshare.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/s/shellshare.rb b/Formula/s/shellshare.rb index 7705ba5f3ce60..61a694ffa5a5f 100644 --- a/Formula/s/shellshare.rb +++ b/Formula/s/shellshare.rb @@ -14,6 +14,6 @@ def install end test do - system "#{bin}/shellshare", "-v" + system bin/"shellshare", "-v" end end From 79d01df4f79b1d085131ea2a160f3107572c5645 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:59:06 +0100 Subject: [PATCH 22/91] shmux: Stop interpolating `bin` --- Formula/s/shmux.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/s/shmux.rb b/Formula/s/shmux.rb index 89bfb61dbb7e0..ce9379e21eedf 100644 --- a/Formula/s/shmux.rb +++ b/Formula/s/shmux.rb @@ -29,6 +29,6 @@ def install end test do - system "#{bin}/shmux", "-h" + system bin/"shmux", "-h" end end From e2a201172f0621ee1a5ec4e808f6cbe975121ace Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:59:06 +0100 Subject: [PATCH 23/91] siege: Stop interpolating `bin` --- Formula/s/siege.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/s/siege.rb b/Formula/s/siege.rb index 1ad150c0f7261..295a9a0738818 100644 --- a/Formula/s/siege.rb +++ b/Formula/s/siege.rb @@ -62,6 +62,6 @@ def caveats end test do - system "#{bin}/siege", "--concurrent=1", "--reps=1", "https://www.google.com/" + system bin/"siege", "--concurrent=1", "--reps=1", "https://www.google.com/" end end From b6c5539844de062ffcf55a809e41d055dbbbcf1f Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:59:06 +0100 Subject: [PATCH 24/91] sigi: Stop interpolating `bin` --- Formula/s/sigi.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/s/sigi.rb b/Formula/s/sigi.rb index b07ae41e3583d..ac4bbbff523d9 100644 --- a/Formula/s/sigi.rb +++ b/Formula/s/sigi.rb @@ -24,7 +24,7 @@ def install end test do - system "#{bin}/sigi", "-st", "_brew_test", "push", "Hello World" + system bin/"sigi", "-st", "_brew_test", "push", "Hello World" assert_equal "Hello World", shell_output("#{bin}/sigi -qt _brew_test pop").strip end end From d75d7facbbee47304241e9d63b7ce81cad43efd7 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:59:06 +0100 Subject: [PATCH 25/91] sigrok-cli: Stop interpolating `bin` --- Formula/s/sigrok-cli.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/s/sigrok-cli.rb b/Formula/s/sigrok-cli.rb index e787bac65bfab..c79dfae8c697e 100644 --- a/Formula/s/sigrok-cli.rb +++ b/Formula/s/sigrok-cli.rb @@ -50,6 +50,6 @@ def install test do # Make sure that we can capture samples from the demo device - system "#{bin}/sigrok-cli", "-d", "demo", "--samples", "1" + system bin/"sigrok-cli", "-d", "demo", "--samples", "1" end end From ecfa73bcaeb60021e93fb44b353cf2820a12f989 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:59:07 +0100 Subject: [PATCH 26/91] simple-scan: Stop interpolating `bin` --- Formula/s/simple-scan.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/s/simple-scan.rb b/Formula/s/simple-scan.rb index e978e4b08684f..251a77ec238ae 100644 --- a/Formula/s/simple-scan.rb +++ b/Formula/s/simple-scan.rb @@ -57,6 +57,6 @@ def post_install # Errors with `Cannot open display` return if OS.linux? && ENV["HOMEBREW_GITHUB_ACTIONS"].present? - system "#{bin}/simple-scan", "-v" + system bin/"simple-scan", "-v" end end From 61b77d20fced122b26755bf783d2bd3697f280e9 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:59:07 +0100 Subject: [PATCH 27/91] simutrans: Stop interpolating `bin` --- Formula/s/simutrans.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/s/simutrans.rb b/Formula/s/simutrans.rb index f4da3e790ba90..80c0e3207f9bd 100644 --- a/Formula/s/simutrans.rb +++ b/Formula/s/simutrans.rb @@ -69,6 +69,6 @@ def install end test do - system "#{bin}/simutrans", "--help" + system bin/"simutrans", "--help" end end From 1453306111f70e0fb84f1106475a691d9917f9b8 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:59:07 +0100 Subject: [PATCH 28/91] since: Stop interpolating `bin` --- Formula/s/since.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/s/since.rb b/Formula/s/since.rb index aaa5e39fa6bf9..911a7d8959ffa 100644 --- a/Formula/s/since.rb +++ b/Formula/s/since.rb @@ -38,7 +38,7 @@ def install foo bar EOS - system "#{bin}/since", "-z", "test" + system bin/"since", "-z", "test" assert_predicate testpath/".since", :exist? end end From 7fb3966d5ab3d96aa6666e89405c7a716b25cfb1 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:59:07 +0100 Subject: [PATCH 29/91] sing-box: Stop interpolating `bin` --- Formula/s/sing-box.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Formula/s/sing-box.rb b/Formula/s/sing-box.rb index 9e239af9457bf..154109f3249a5 100644 --- a/Formula/s/sing-box.rb +++ b/Formula/s/sing-box.rb @@ -46,7 +46,7 @@ def install ] } EOS - server = fork { exec "#{bin}/sing-box", "run", "-D", testpath, "-c", testpath/"shadowsocks.json" } + server = fork { exec bin/"sing-box", "run", "-D", testpath, "-c", testpath/"shadowsocks.json" } sing_box_port = free_port (testpath/"config.json").write <<~EOS @@ -69,8 +69,8 @@ def install ] } EOS - system "#{bin}/sing-box", "check", "-D", testpath, "-c", "config.json" - client = fork { exec "#{bin}/sing-box", "run", "-D", testpath, "-c", "config.json" } + system bin/"sing-box", "check", "-D", testpath, "-c", "config.json" + client = fork { exec bin/"sing-box", "run", "-D", testpath, "-c", "config.json" } sleep 3 begin From 6aae035a6ece5db10373d77b2897805f11ae19b1 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:59:07 +0100 Subject: [PATCH 30/91] sip: Stop interpolating `bin` --- Formula/s/sip.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/s/sip.rb b/Formula/s/sip.rb index f70497fdea1e1..02448701c8862 100644 --- a/Formula/s/sip.rb +++ b/Formula/s/sip.rb @@ -78,6 +78,6 @@ def install %End EOS - system "#{bin}/sip-install", "--target-dir", "." + system bin/"sip-install", "--target-dir", "." end end From fc1ef90446433e92cd7cdc610cccdeec668e9901 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:59:08 +0100 Subject: [PATCH 31/91] sipcalc: Stop interpolating `bin` --- Formula/s/sipcalc.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/s/sipcalc.rb b/Formula/s/sipcalc.rb index 91b20f5d2e497..d23bdfae408f9 100644 --- a/Formula/s/sipcalc.rb +++ b/Formula/s/sipcalc.rb @@ -34,6 +34,6 @@ def install end test do - system "#{bin}/sipcalc", "-h" + system bin/"sipcalc", "-h" end end From 1ef02e892a66eb41693e11764f1671cf5063a129 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:59:08 +0100 Subject: [PATCH 32/91] sipsak: Stop interpolating `bin` --- Formula/s/sipsak.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/s/sipsak.rb b/Formula/s/sipsak.rb index 6de52fe191b89..f545c4bb20492 100644 --- a/Formula/s/sipsak.rb +++ b/Formula/s/sipsak.rb @@ -31,6 +31,6 @@ def install end test do - system "#{bin}/sipsak", "-V" + system bin/"sipsak", "-V" end end From 5b17f92ac5f360e465dbb759358e30e3548293c8 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:59:08 +0100 Subject: [PATCH 33/91] ski: Stop interpolating `bin` --- Formula/s/ski.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/s/ski.rb b/Formula/s/ski.rb index 45b2b8f6253b1..e21068b338ace 100644 --- a/Formula/s/ski.rb +++ b/Formula/s/ski.rb @@ -32,6 +32,6 @@ def install end test do - assert_match "Bye!", pipe_output("#{bin}/ski", "") + assert_match "Bye!", pipe_output(bin/"ski", "") end end From 2684850b634e808798d70a477afcfa7b40985b69 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:59:08 +0100 Subject: [PATCH 34/91] sl: Stop interpolating `bin` --- Formula/s/sl.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/s/sl.rb b/Formula/s/sl.rb index 1f66687e0abd7..5d3afdf3e506c 100644 --- a/Formula/s/sl.rb +++ b/Formula/s/sl.rb @@ -34,6 +34,6 @@ def install end test do - system "#{bin}/sl", "-c" + system bin/"sl", "-c" end end From f5eefa29ca3b6ac5a39bd54bb760b7658528de69 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:59:08 +0100 Subject: [PATCH 35/91] slacknimate: Stop interpolating `bin` --- Formula/s/slacknimate.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Formula/s/slacknimate.rb b/Formula/s/slacknimate.rb index e4ceb6b21c478..0f44417f0d178 100644 --- a/Formula/s/slacknimate.rb +++ b/Formula/s/slacknimate.rb @@ -29,7 +29,7 @@ def install end test do - system "#{bin}/slacknimate", "--version" - system "#{bin}/slacknimate", "--help" + system bin/"slacknimate", "--version" + system bin/"slacknimate", "--help" end end From 5a5dd6b0cfe27fef655af1eae93c6f9b885fedfb Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:59:09 +0100 Subject: [PATCH 36/91] sloccount: Stop interpolating `bin` --- Formula/s/sloccount.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/s/sloccount.rb b/Formula/s/sloccount.rb index a9d687753c1b6..d4fd921d936f6 100644 --- a/Formula/s/sloccount.rb +++ b/Formula/s/sloccount.rb @@ -43,7 +43,7 @@ def install end test do - system "#{bin}/sloccount", "--version" + system bin/"sloccount", "--version" end end From bc669dc65e49a26290f3ac92b4a10456e7e68155 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:59:09 +0100 Subject: [PATCH 37/91] slowhttptest: Stop interpolating `bin` --- Formula/s/slowhttptest.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/s/slowhttptest.rb b/Formula/s/slowhttptest.rb index 2d209fac48c32..4efc1f55fc485 100644 --- a/Formula/s/slowhttptest.rb +++ b/Formula/s/slowhttptest.rb @@ -28,7 +28,7 @@ def install end test do - system "#{bin}/slowhttptest", "-u", "https://google.com", + system bin/"slowhttptest", "-u", "https://google.com", "-p", "1", "-r", "1", "-l", "1", "-i", "1" assert_match version.to_s, shell_output("#{bin}/slowhttptest -h", 1) From 7f8b54c8b3e663e9cf0d8368b95e8736a1b4ca6b Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:59:09 +0100 Subject: [PATCH 38/91] slugify: Stop interpolating `bin` --- Formula/s/slugify.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/s/slugify.rb b/Formula/s/slugify.rb index b866eb21ca4c4..2280648f16b85 100644 --- a/Formula/s/slugify.rb +++ b/Formula/s/slugify.rb @@ -16,6 +16,6 @@ def install end test do - system "#{bin}/slugify", "-n", "dry_run.txt" + system bin/"slugify", "-n", "dry_run.txt" end end From ca891089de82542e9ec1233bfef6ec6c826544b9 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:59:09 +0100 Subject: [PATCH 39/91] smake: Stop interpolating `bin` --- Formula/s/smake.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/s/smake.rb b/Formula/s/smake.rb index 5e12e7a91e03f..e09c0b127cf5f 100644 --- a/Formula/s/smake.rb +++ b/Formula/s/smake.rb @@ -38,6 +38,6 @@ def install end test do - system "#{bin}/smake", "-version" + system bin/"smake", "-version" end end From b9f200fa3f34292f4ef9ce57261be5c0f31b832d Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:59:09 +0100 Subject: [PATCH 40/91] smartypants: Stop interpolating `bin` --- Formula/s/smartypants.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/s/smartypants.rb b/Formula/s/smartypants.rb index 84685f9093d51..8efb05227a277 100644 --- a/Formula/s/smartypants.rb +++ b/Formula/s/smartypants.rb @@ -19,7 +19,7 @@ def install test do assert_equal "“Give me a beer”, said Mike O’Connor", - pipe_output("#{bin}/smartypants", + pipe_output(bin/"smartypants", %q("Give me a beer", said Mike O'Connor), 0) end end From 9c4b4c55c26708a76ba344102e8f6b02349eb445 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:59:10 +0100 Subject: [PATCH 41/91] smimesign: Stop interpolating `bin` --- Formula/s/smimesign.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/s/smimesign.rb b/Formula/s/smimesign.rb index 6550a00dfe557..836e546ea53b4 100644 --- a/Formula/s/smimesign.rb +++ b/Formula/s/smimesign.rb @@ -28,7 +28,7 @@ def install test do assert_match version.to_s, shell_output("#{bin}/smimesign --version") - system "#{bin}/smimesign", "--list-keys" + system bin/"smimesign", "--list-keys" assert_match "could not find identity matching specified user-id: bad@identity", shell_output("#{bin}/smimesign -su bad@identity 2>&1", 1) end From 0ace940c76746f035e217e416354cac2228b41c3 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:59:10 +0100 Subject: [PATCH 42/91] smlfmt: Stop interpolating `bin` --- Formula/s/smlfmt.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/s/smlfmt.rb b/Formula/s/smlfmt.rb index 0755fdf5d4cfe..a3b48d3244270 100644 --- a/Formula/s/smlfmt.rb +++ b/Formula/s/smlfmt.rb @@ -34,7 +34,7 @@ def install val x = 5 val y = 6 EOS - system "#{bin}/smlfmt", "--force", "source.sml" + system bin/"smlfmt", "--force", "source.sml" assert_equal expected_output, (testpath/"source.sml").read end end From 59fe2acfbf99b21d7eeb9c85e576eac113fa0841 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:59:10 +0100 Subject: [PATCH 43/91] smug: Stop interpolating `bin` --- Formula/s/smug.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/s/smug.rb b/Formula/s/smug.rb index 85fce979ed878..6041af0d722ce 100644 --- a/Formula/s/smug.rb +++ b/Formula/s/smug.rb @@ -32,7 +32,7 @@ def install - name: test EOF - assert_equal(version, shell_output("#{bin}/smug").lines.first.split("Version").last.chomp) + assert_equal(version, shell_output(bin/"smug").lines.first.split("Version").last.chomp) with_env(TERM: "screen-256color") do system bin/"smug", "start", "--file", testpath/"test.yml", "--detach" From 9ee33e4e46ca1cf340224a51cd4a19f9a0430b80 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:59:10 +0100 Subject: [PATCH 44/91] snakeviz: Stop interpolating `bin` --- Formula/s/snakeviz.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Formula/s/snakeviz.rb b/Formula/s/snakeviz.rb index d6dd5691c1af3..57ccaa3a459d9 100644 --- a/Formula/s/snakeviz.rb +++ b/Formula/s/snakeviz.rb @@ -31,7 +31,7 @@ def install test do require "cgi" - system "#{bin}/snakeviz", "--version" + system bin/"snakeviz", "--version" system "python3.12", "-m", "cProfile", "-o", "output.prof", "-m", "cProfile" port = free_port @@ -39,7 +39,7 @@ def install output_file = testpath/"output.prof" pid = fork do - exec "#{bin}/snakeviz", "--port", port.to_s, "--server", output_file + exec bin/"snakeviz", "--port", port.to_s, "--server", output_file end sleep 3 output = shell_output("curl -s http://localhost:#{port}/snakeviz/#{CGI.escape output_file}") From 0dbba808e0c4f34e818deba9f9591d2ebb179664 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:59:10 +0100 Subject: [PATCH 45/91] snow: Stop interpolating `bin` --- Formula/s/snow.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Formula/s/snow.rb b/Formula/s/snow.rb index 7d6a48dab5f13..2e7ee45506010 100644 --- a/Formula/s/snow.rb +++ b/Formula/s/snow.rb @@ -37,9 +37,9 @@ def install test do touch "in.txt" touch "out.txt" - system "#{bin}/snow", "-C", "-m", "'Secrets Abound Here'", "-p", + system bin/"snow", "-C", "-m", "'Secrets Abound Here'", "-p", "'hello world'", "in.txt", "out.txt" # The below should get the response 'Secrets Abound Here' when testing. - system "#{bin}/snow", "-C", "-p", "'hello world'", "out.txt" + system bin/"snow", "-C", "-p", "'hello world'", "out.txt" end end From 43b2e83d9457dd99b0a60950ea9d2cd123bf03dc Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:59:11 +0100 Subject: [PATCH 46/91] sntop: Stop interpolating `bin` --- Formula/s/sntop.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/s/sntop.rb b/Formula/s/sntop.rb index e38c0dd691f79..fe9a48c7b32d2 100644 --- a/Formula/s/sntop.rb +++ b/Formula/s/sntop.rb @@ -52,6 +52,6 @@ def caveats end test do - system "#{bin}/sntop", "--version" + system bin/"sntop", "--version" end end From abaadc52a13116cfe9eee579610fbc58eea3222b Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:59:11 +0100 Subject: [PATCH 47/91] snzip: Stop interpolating `bin` --- Formula/s/snzip.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Formula/s/snzip.rb b/Formula/s/snzip.rb index de2f48e65f3bc..73453d7279f00 100644 --- a/Formula/s/snzip.rb +++ b/Formula/s/snzip.rb @@ -27,7 +27,7 @@ def install test do (testpath/"test.out").write "test" - system "#{bin}/snzip", "test.out" - system "#{bin}/snzip", "-d", "test.out.sz" + system bin/"snzip", "test.out" + system bin/"snzip", "-d", "test.out.sz" end end From 2c5fe625ead9dbdee582ec2a12e792eb04ba272a Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:59:11 +0100 Subject: [PATCH 48/91] solargraph: Stop interpolating `bin` --- Formula/s/solargraph.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/s/solargraph.rb b/Formula/s/solargraph.rb index 7d74f15cc842d..c418d52733e69 100644 --- a/Formula/s/solargraph.rb +++ b/Formula/s/solargraph.rb @@ -45,7 +45,7 @@ def install } JSON - Open3.popen3("#{bin}/solargraph", "stdio") do |stdin, stdout, _, _| + Open3.popen3(bin/"solargraph", "stdio") do |stdin, stdout, _, _| stdin.write "Content-Length: #{json.size}\r\n\r\n#{json}" sleep 3 assert_match(/^Content-Length: \d+/i, stdout.readline) From 2a74fc59c028f201cfed786dbcbafcca89b623d8 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:59:11 +0100 Subject: [PATCH 49/91] solarus: Stop interpolating `bin` --- Formula/s/solarus.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/s/solarus.rb b/Formula/s/solarus.rb index 74feba91b42c0..b58a89d20889b 100644 --- a/Formula/s/solarus.rb +++ b/Formula/s/solarus.rb @@ -54,6 +54,6 @@ def install end test do - system "#{bin}/solarus-run", "-help" + system bin/"solarus-run", "-help" end end From 3710017be8c7a1c61fdf9362747bab4e7590e2c5 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:59:11 +0100 Subject: [PATCH 50/91] souffle: Stop interpolating `bin` --- Formula/s/souffle.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/s/souffle.rb b/Formula/s/souffle.rb index d634fbd70543f..8e929a50e01e2 100644 --- a/Formula/s/souffle.rb +++ b/Formula/s/souffle.rb @@ -59,7 +59,7 @@ def install (testpath/"edge.facts").write <<~EOS 1,2 EOS - system "#{bin}/souffle", "-F", "#{testpath}/.", "-D", "#{testpath}/.", "#{testpath}/example.dl" + system bin/"souffle", "-F", "#{testpath}/.", "-D", "#{testpath}/.", "#{testpath}/example.dl" assert_predicate testpath/"path.csv", :exist? assert_equal "1,2\n", shell_output("cat #{testpath}/path.csv") end From 035fb30403644f772049ec29c9890964b5f5254c Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:59:12 +0100 Subject: [PATCH 51/91] sourcedocs: Stop interpolating `bin` --- Formula/s/sourcedocs.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/s/sourcedocs.rb b/Formula/s/sourcedocs.rb index 928c77c17b149..d4a3739103d0c 100644 --- a/Formula/s/sourcedocs.rb +++ b/Formula/s/sourcedocs.rb @@ -36,7 +36,7 @@ def install mkdir "foo" do system "swift", "package", "init" system "swift", "build", "--disable-sandbox" - system "#{bin}/sourcedocs", "generate", + system bin/"sourcedocs", "generate", "--spm-module", "foo", "--output-folder", testpath/"Documentation/Reference" assert_predicate testpath/"Documentation/Reference/README.md", :exist? From 74e277704f739382b0d96a799574ddd0821f2410 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:59:12 +0100 Subject: [PATCH 52/91] sourcekitten: Stop interpolating `bin` --- Formula/s/sourcekitten.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Formula/s/sourcekitten.rb b/Formula/s/sourcekitten.rb index bddaefc849d34..630da2f96e4e7 100644 --- a/Formula/s/sourcekitten.rb +++ b/Formula/s/sourcekitten.rb @@ -25,10 +25,10 @@ def install end test do - system "#{bin}/sourcekitten", "version" + system bin/"sourcekitten", "version" return if OS.mac? && MacOS::Xcode.version < 14 ENV["IN_PROCESS_SOURCEKIT"] = "YES" - system "#{bin}/sourcekitten", "syntax", "--text", "import Foundation // Hello World" + system bin/"sourcekitten", "syntax", "--text", "import Foundation // Hello World" end end From 8e7de246f3de25c879eb80dd4814ca90bcbf39e0 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:59:12 +0100 Subject: [PATCH 53/91] spark: Stop interpolating `bin` --- Formula/s/spark.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/s/spark.rb b/Formula/s/spark.rb index ac917bda2ba8c..ac0c30744b0f4 100644 --- a/Formula/s/spark.rb +++ b/Formula/s/spark.rb @@ -14,6 +14,6 @@ def install end test do - system "#{bin}/spark" + system bin/"spark" end end From 9c9ccee78160a2df2a0732151d6adfd6546680e4 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:59:12 +0100 Subject: [PATCH 54/91] sparkey: Stop interpolating `bin` --- Formula/s/sparkey.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Formula/s/sparkey.rb b/Formula/s/sparkey.rb index 182868ca9c507..17a8d52ec07c2 100644 --- a/Formula/s/sparkey.rb +++ b/Formula/s/sparkey.rb @@ -37,9 +37,9 @@ def install end test do - system "#{bin}/sparkey", "createlog", "-c", "snappy", "test.spl" + system bin/"sparkey", "createlog", "-c", "snappy", "test.spl" system "echo foo.bar | #{bin}/sparkey appendlog -d . test.spl" - system "#{bin}/sparkey", "writehash", "test.spl" + system bin/"sparkey", "writehash", "test.spl" system "#{bin}/sparkey get test.spi foo | grep ^bar$" end end From ed193027d0343bc9b9090681edd7973389a3b329 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:59:12 +0100 Subject: [PATCH 55/91] sparse: Stop interpolating `bin` --- Formula/s/sparse.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/s/sparse.rb b/Formula/s/sparse.rb index 0bb8bb1099247..d2019fc43a5bd 100644 --- a/Formula/s/sparse.rb +++ b/Formula/s/sparse.rb @@ -46,6 +46,6 @@ def install test do (testpath/"test.C").write("int main(int a) {return a;}\n") - system "#{bin}/sparse", testpath/"test.C" + system bin/"sparse", testpath/"test.C" end end From b0f5395e59089d01cca60ef24259841233792fe3 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:59:13 +0100 Subject: [PATCH 56/91] spawn-fcgi: Stop interpolating `bin` --- Formula/s/spawn-fcgi.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/s/spawn-fcgi.rb b/Formula/s/spawn-fcgi.rb index b1d008322e5c1..5245147db09ee 100644 --- a/Formula/s/spawn-fcgi.rb +++ b/Formula/s/spawn-fcgi.rb @@ -28,6 +28,6 @@ def install end test do - system "#{bin}/spawn-fcgi", "--version" + system bin/"spawn-fcgi", "--version" end end From b9b71991971eb54d3d701a50edcce3177158e497 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:59:13 +0100 Subject: [PATCH 57/91] speedread: Stop interpolating `bin` --- Formula/s/speedread.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/s/speedread.rb b/Formula/s/speedread.rb index b2d5c2f2cf1ff..6c85f9c182f69 100644 --- a/Formula/s/speedread.rb +++ b/Formula/s/speedread.rb @@ -25,6 +25,6 @@ def install end test do - system "#{bin}/speedread", "-w 1000", "<(echo This is a test)" + system bin/"speedread", "-w 1000", "<(echo This is a test)" end end From 134fef0d54a60f2921fe73b3b4fa5182c59fd6c8 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:59:13 +0100 Subject: [PATCH 58/91] spim: Stop interpolating `bin` --- Formula/s/spim.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/s/spim.rb b/Formula/s/spim.rb index c8ab425159f6d..54f41b265b745 100644 --- a/Formula/s/spim.rb +++ b/Formula/s/spim.rb @@ -32,6 +32,6 @@ def install end test do - assert_match "__start", pipe_output("#{bin}/spim", "print_symbols") + assert_match "__start", pipe_output(bin/"spim", "print_symbols") end end From ea34e746982c733193cb50e8c3b774cb4109bbaf Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:59:13 +0100 Subject: [PATCH 59/91] spoof-mac: Stop interpolating `bin` --- Formula/s/spoof-mac.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/s/spoof-mac.rb b/Formula/s/spoof-mac.rb index 9d945bd4cb42d..b0ae77c16df5e 100644 --- a/Formula/s/spoof-mac.rb +++ b/Formula/s/spoof-mac.rb @@ -57,6 +57,6 @@ def caveats end test do - system "#{bin}/spoof-mac", "list", "--wifi" + system bin/"spoof-mac", "list", "--wifi" end end From d9d3a0c991b17554501d8e889e8170be8fe5885b Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:59:14 +0100 Subject: [PATCH 60/91] spr: Stop interpolating `bin` --- Formula/s/spr.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/s/spr.rb b/Formula/s/spr.rb index 3189a44445588..3399768900ceb 100644 --- a/Formula/s/spr.rb +++ b/Formula/s/spr.rb @@ -28,7 +28,7 @@ def install end test do - spr = "#{bin}/spr" + spr = bin/"spr" assert_match "spr #{version}", shell_output("#{spr} --version") system "git", "config", "--global", "user.email", "nobody@example.com" From ac6e6fdb906d14e28c597924299a47229c63bfff Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:59:14 +0100 Subject: [PATCH 61/91] sql-language-server: Stop interpolating `bin` --- Formula/s/sql-language-server.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/s/sql-language-server.rb b/Formula/s/sql-language-server.rb index e835b588708e0..82640cf280324 100644 --- a/Formula/s/sql-language-server.rb +++ b/Formula/s/sql-language-server.rb @@ -64,7 +64,7 @@ def install } JSON - Open3.popen3("#{bin}/sql-language-server", "up", "--method", "stdio") do |stdin, stdout| + Open3.popen3(bin/"sql-language-server", "up", "--method", "stdio") do |stdin, stdout| stdin.write "Content-Length: #{json.size}\r\n\r\n#{json}" assert_match(/^Content-Length: \d+/i, stdout.readline) end From 663a268ab32a0b0c93d316beca31b3ce276829cc Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:59:14 +0100 Subject: [PATCH 62/91] squiid: Stop interpolating `bin` --- Formula/s/squiid.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/s/squiid.rb b/Formula/s/squiid.rb index 986a947016c2d..c15dbaa92934b 100644 --- a/Formula/s/squiid.rb +++ b/Formula/s/squiid.rb @@ -59,7 +59,7 @@ def check_binary_linkage(binary, library) test do require "pty" - PTY.spawn("#{bin}/squiid") do |r, w, pid| + PTY.spawn(bin/"squiid") do |r, w, pid| sleep 1 # wait for squiid to start w.write "(10 - 2) * (3 + 5) / 4\r" From f55ee6aa57817d7129dcc17fb5a7ea932b49f1da Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:59:14 +0100 Subject: [PATCH 63/91] ssdb: Stop interpolating `bin` --- Formula/s/ssdb.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/s/ssdb.rb b/Formula/s/ssdb.rb index dd9c5648c651c..b9a5ed8f54187 100644 --- a/Formula/s/ssdb.rb +++ b/Formula/s/ssdb.rb @@ -72,7 +72,7 @@ def install test do pid = fork do Signal.trap("TERM") do - system("#{bin}/ssdb-server", "-d", "#{HOMEBREW_PREFIX}/etc/ssdb.conf") + system(bin/"ssdb-server", "-d", "#{HOMEBREW_PREFIX}/etc/ssdb.conf") exit end end From 5a4c2d14f28e54dc7fb94c7052ebbde3c1409739 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:59:15 +0100 Subject: [PATCH 64/91] sshfs: Stop interpolating `bin` --- Formula/s/sshfs.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/s/sshfs.rb b/Formula/s/sshfs.rb index 18d9dac72f54a..b8cad0ea1ad83 100644 --- a/Formula/s/sshfs.rb +++ b/Formula/s/sshfs.rb @@ -23,6 +23,6 @@ def install end test do - system "#{bin}/sshfs", "--version" + system bin/"sshfs", "--version" end end From 83ae1e12e72f76cf9c2b2088df4f4afb53b47a2f Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:59:15 +0100 Subject: [PATCH 65/91] sshtrix: Stop interpolating `bin` --- Formula/s/sshtrix.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Formula/s/sshtrix.rb b/Formula/s/sshtrix.rb index 053d4bb38f18b..9b9b3acf7a317 100644 --- a/Formula/s/sshtrix.rb +++ b/Formula/s/sshtrix.rb @@ -35,7 +35,7 @@ def install end test do - system "#{bin}/sshtrix", "-V" - system "#{bin}/sshtrix", "-O" + system bin/"sshtrix", "-V" + system bin/"sshtrix", "-O" end end From 9bcc741ea09ecbd132407e19f55dd89b4dff9a71 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:59:15 +0100 Subject: [PATCH 66/91] ssldump: Stop interpolating `bin` --- Formula/s/ssldump.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/s/ssldump.rb b/Formula/s/ssldump.rb index 2f42e8f96c8c7..a6460cba78add 100644 --- a/Formula/s/ssldump.rb +++ b/Formula/s/ssldump.rb @@ -35,7 +35,7 @@ def install end test do - system "#{bin}/ssldump", "-v" + system bin/"ssldump", "-v" end end From b30baaeb25f0fb8f8c28fb666ccaa3421a0b6a03 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:59:15 +0100 Subject: [PATCH 67/91] ssllabs-scan: Stop interpolating `bin` --- Formula/s/ssllabs-scan.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/s/ssllabs-scan.rb b/Formula/s/ssllabs-scan.rb index f69b481e20f11..7996fbac12091 100644 --- a/Formula/s/ssllabs-scan.rb +++ b/Formula/s/ssllabs-scan.rb @@ -37,6 +37,6 @@ def caveats end test do - system "#{bin}/ssllabs-scan", "-grade", "-quiet", "-usecache", "ssllabs.com" + system bin/"ssllabs-scan", "-grade", "-quiet", "-usecache", "ssllabs.com" end end From 766252c05a21ecdc0cc61e48bbde3b62b5914fb3 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:59:15 +0100 Subject: [PATCH 68/91] sslscan: Stop interpolating `bin` --- Formula/s/sslscan.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/s/sslscan.rb b/Formula/s/sslscan.rb index c8857702fd878..3261fb39ce87a 100644 --- a/Formula/s/sslscan.rb +++ b/Formula/s/sslscan.rb @@ -25,6 +25,6 @@ def install test do assert_match version.to_s, shell_output("#{bin}/sslscan --version") - system "#{bin}/sslscan", "google.com" + system bin/"sslscan", "google.com" end end From 278bdb507cab19cbd3e019026b6d44ec90807c25 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:59:16 +0100 Subject: [PATCH 69/91] star: Stop interpolating `bin` --- Formula/s/star.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/s/star.rb b/Formula/s/star.rb index a1d73b1e66566..b50c76188729a 100644 --- a/Formula/s/star.rb +++ b/Formula/s/star.rb @@ -30,7 +30,7 @@ def install end test do - system "#{bin}/star", "--version" + system bin/"star", "--version" (testpath/"test").write("Hello Homebrew!") system bin/"star", "-c", "-z", "-v", "file=test.tar.gz", "test" From 143a85937572ee5c2de913932bdb7f49ef26b4d6 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:59:16 +0100 Subject: [PATCH 70/91] step: Stop interpolating `bin` --- Formula/s/step.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Formula/s/step.rb b/Formula/s/step.rb index 9ac2b67042fdd..40a148cfe7917 100644 --- a/Formula/s/step.rb +++ b/Formula/s/step.rb @@ -40,12 +40,12 @@ def install test do # Generate a public / private key pair. Creates foo.pub and foo.priv. - system "#{bin}/step", "crypto", "keypair", "foo.pub", "foo.priv", "--no-password", "--insecure" + system bin/"step", "crypto", "keypair", "foo.pub", "foo.priv", "--no-password", "--insecure" assert_predicate testpath/"foo.pub", :exist? assert_predicate testpath/"foo.priv", :exist? # Generate a root certificate and private key with subject baz written to baz.crt and baz.key. - system "#{bin}/step", "certificate", "create", "--profile", "root-ca", + system bin/"step", "certificate", "create", "--profile", "root-ca", "--no-password", "--insecure", "baz", "baz.crt", "baz.key" assert_predicate testpath/"baz.crt", :exist? assert_predicate testpath/"baz.key", :exist? @@ -61,7 +61,7 @@ def install assert_equal "CN=baz", baz_crt_json["issuer_dn"] # Generate a leaf certificate signed by the previously created root. - system "#{bin}/step", "certificate", "create", "--profile", "intermediate-ca", + system bin/"step", "certificate", "create", "--profile", "intermediate-ca", "--no-password", "--insecure", "--ca", "baz.crt", "--ca-key", "baz.key", "zap", "zap.crt", "zap.key" assert_predicate testpath/"zap.crt", :exist? @@ -83,14 +83,14 @@ def install steppath = "#{testpath}/.step" mkdir_p(steppath) ENV["STEPPATH"] = steppath - system "#{bin}/step", "ca", "init", "--address", "127.0.0.1:8081", + system bin/"step", "ca", "init", "--address", "127.0.0.1:8081", "--dns", "127.0.0.1", "--password-file", "#{testpath}/password.txt", "--provisioner-password-file", "#{testpath}/password.txt", "--name", "homebrew-smallstep-test", "--provisioner", "brew" begin pid = fork do - exec "#{bin}/step-ca", "--password-file", "#{testpath}/password.txt", + exec bin/"step-ca", "--password-file", "#{testpath}/password.txt", "#{steppath}/config/ca.json" end @@ -101,7 +101,7 @@ def install shell_output("#{bin}/step ca token --password-file #{testpath}/password.txt " \ "homebrew-smallstep-leaf > token.txt") token = File.read(testpath/"token.txt") - system "#{bin}/step", "ca", "certificate", "--token", token, + system bin/"step", "ca", "certificate", "--token", token, "homebrew-smallstep-leaf", "brew.crt", "brew.key" assert_predicate testpath/"brew.crt", :exist? From 4f4863a9dc546cabf03a87d9fc68a93e639d2845 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:59:16 +0100 Subject: [PATCH 71/91] stockfish: Stop interpolating `bin` --- Formula/s/stockfish.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/s/stockfish.rb b/Formula/s/stockfish.rb index d6969c975b75c..c3e8a887cf85d 100644 --- a/Formula/s/stockfish.rb +++ b/Formula/s/stockfish.rb @@ -31,6 +31,6 @@ def install end test do - system "#{bin}/stockfish", "go", "depth", "20" + system bin/"stockfish", "go", "depth", "20" end end From d975a1441596bcded4342645a35e3b34a463fe66 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:59:16 +0100 Subject: [PATCH 72/91] stoken: Stop interpolating `bin` --- Formula/s/stoken.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/s/stoken.rb b/Formula/s/stoken.rb index 91dccc95aee3b..18d9b4ed66a09 100644 --- a/Formula/s/stoken.rb +++ b/Formula/s/stoken.rb @@ -34,6 +34,6 @@ def install end test do - system "#{bin}/stoken", "show", "--random" + system bin/"stoken", "show", "--random" end end From f932324c58f759b440c047b6433b4f74dd0def2e Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:59:16 +0100 Subject: [PATCH 73/91] streamlink: Stop interpolating `bin` --- Formula/s/streamlink.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/s/streamlink.rb b/Formula/s/streamlink.rb index 912ef4830ef81..a9d489903cc82 100644 --- a/Formula/s/streamlink.rb +++ b/Formula/s/streamlink.rb @@ -134,7 +134,7 @@ def install end test do - system "#{bin}/streamlink", "https://vimeo.com/144358359", "360p", "-o", "video.mp4" + system bin/"streamlink", "https://vimeo.com/144358359", "360p", "-o", "video.mp4" assert_match "video.mp4: ISO Media, MP4 v2", shell_output("file video.mp4") url = OS.mac? ? "https://ok.ru/video/3388934659879" : "https://www.youtube.com/watch?v=pOtd1cbOP7k" From fa689f270ab9ca2e3458d5a226b168dea4f82b9f Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:59:17 +0100 Subject: [PATCH 74/91] streamripper: Stop interpolating `bin` --- Formula/s/streamripper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/s/streamripper.rb b/Formula/s/streamripper.rb index 33039cac35518..38b769ff26e30 100644 --- a/Formula/s/streamripper.rb +++ b/Formula/s/streamripper.rb @@ -40,6 +40,6 @@ def install end test do - system "#{bin}/streamripper", "--version" + system bin/"streamripper", "--version" end end From c07ab539aefd725cd568d827e3a31dc81a5848e5 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:59:17 +0100 Subject: [PATCH 75/91] stubby: Stop interpolating `bin` --- Formula/s/stubby.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/s/stubby.rb b/Formula/s/stubby.rb index 4439ac6622d34..f4bab3a21ed69 100644 --- a/Formula/s/stubby.rb +++ b/Formula/s/stubby.rb @@ -60,7 +60,7 @@ def install assert_match "bindata for 8.8.8.8", output fork do - exec "#{bin}/stubby", "-C", testpath/"stubby_test.yml" + exec bin/"stubby", "-C", testpath/"stubby_test.yml" end sleep 2 From b913a1933da202b10c33dddb6bf23dc10b499d9c Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:59:17 +0100 Subject: [PATCH 76/91] sub2srt: Stop interpolating `bin` --- Formula/s/sub2srt.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/s/sub2srt.rb b/Formula/s/sub2srt.rb index e0b7104c06b0e..9b9744fc51ee9 100644 --- a/Formula/s/sub2srt.rb +++ b/Formula/s/sub2srt.rb @@ -39,7 +39,7 @@ def install homebrew two EOS - system "#{bin}/sub2srt", "#{testpath}/test.sub" + system bin/"sub2srt", "#{testpath}/test.sub" assert_equal expected, (testpath/"test.srt").read.chomp end end From 6797ba2bbf3007a8dc4a20e64d6af02e7191d384 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:59:17 +0100 Subject: [PATCH 77/91] supermodel: Stop interpolating `bin` --- Formula/s/supermodel.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/s/supermodel.rb b/Formula/s/supermodel.rb index dd4c0757a980f..4cc5fe824f2ce 100644 --- a/Formula/s/supermodel.rb +++ b/Formula/s/supermodel.rb @@ -73,6 +73,6 @@ def caveats end test do - system "#{bin}/supermodel", "-print-games" + system bin/"supermodel", "-print-games" end end From 0d6690918d2d7aefc0f110e6cf29a21b90317eb1 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:59:17 +0100 Subject: [PATCH 78/91] svg2pdf: Stop interpolating `bin` --- Formula/s/svg2pdf.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/s/svg2pdf.rb b/Formula/s/svg2pdf.rb index 4262a8eb7dfc9..1558cad87f028 100644 --- a/Formula/s/svg2pdf.rb +++ b/Formula/s/svg2pdf.rb @@ -46,7 +46,7 @@ def install test do resource("svg.svg").stage do - system "#{bin}/svg2pdf", "svg.svg", "test.pdf" + system bin/"svg2pdf", "svg.svg", "test.pdf" assert_predicate Pathname.pwd/"test.pdf", :exist? end end From aca635386d3324b2d533aa63ae5d506d231b17e7 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:59:18 +0100 Subject: [PATCH 79/91] svg2png: Stop interpolating `bin` --- Formula/s/svg2png.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/s/svg2png.rb b/Formula/s/svg2png.rb index b3d58658c8a00..5bd65dcd2f726 100644 --- a/Formula/s/svg2png.rb +++ b/Formula/s/svg2png.rb @@ -51,7 +51,7 @@ def install end test do - system "#{bin}/svg2png", test_fixtures("test.svg"), "test.png" + system bin/"svg2png", test_fixtures("test.svg"), "test.png" assert_predicate testpath/"test.png", :exist? end end From 83c58384da09bd4d4534f83104abfc554fa7806e Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:59:18 +0100 Subject: [PATCH 80/91] swagger-codegen: Stop interpolating `bin` --- Formula/s/swagger-codegen.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/s/swagger-codegen.rb b/Formula/s/swagger-codegen.rb index d305da571bc8f..65f9d8abef056 100644 --- a/Formula/s/swagger-codegen.rb +++ b/Formula/s/swagger-codegen.rb @@ -42,7 +42,7 @@ def install 200: description: OK EOS - system "#{bin}/swagger-codegen", "generate", "-i", "minimal.yaml", "-l", "html" + system bin/"swagger-codegen", "generate", "-i", "minimal.yaml", "-l", "html" assert_includes File.read(testpath/"index.html"), "

Simple API

" end end From b3d6c7653510c0209fe67c799feda70efe7702e0 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:59:18 +0100 Subject: [PATCH 81/91] swaks: Stop interpolating `bin` --- Formula/s/swaks.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/s/swaks.rb b/Formula/s/swaks.rb index b3937ae933bff..aca0d9b24625f 100644 --- a/Formula/s/swaks.rb +++ b/Formula/s/swaks.rb @@ -19,6 +19,6 @@ def install end test do - system "#{bin}/swaks", "--version" + system bin/"swaks", "--version" end end From abdc9f166ed387ad188e3db0e62436bf38979fa8 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:59:18 +0100 Subject: [PATCH 82/91] swift-sh: Stop interpolating `bin` --- Formula/s/swift-sh.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/s/swift-sh.rb b/Formula/s/swift-sh.rb index 964fed5125b8d..0e103242647a8 100644 --- a/Formula/s/swift-sh.rb +++ b/Formula/s/swift-sh.rb @@ -30,7 +30,7 @@ def install test do (testpath/"test.swift").write "#!/usr/bin/env swift sh" - system "#{bin}/swift-sh", "eject", "test.swift" + system bin/"swift-sh", "eject", "test.swift" assert_predicate testpath/"Test"/"Package.swift", :exist? end end From 67244014ebb1d076affcfd9bbb8dcc1dcf72edfd Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:59:19 +0100 Subject: [PATCH 83/91] swift: Stop interpolating `bin` --- Formula/s/swift.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Formula/s/swift.rb b/Formula/s/swift.rb index 6267b731264a3..27da88c8d6fe6 100644 --- a/Formula/s/swift.rb +++ b/Formula/s/swift.rb @@ -513,9 +513,9 @@ def caveats # Test Swift Package Manager ENV["SWIFTPM_MODULECACHE_OVERRIDE"] = module_cache mkdir "swiftpmtest" do - system "#{bin}/swift", "package", "init", "--type=executable" + system bin/"swift", "package", "init", "--type=executable" cp "../foundation-test.swift", "Sources/main.swift" - system "#{bin}/swift", "build", "--verbose", "--disable-sandbox" + system bin/"swift", "build", "--verbose", "--disable-sandbox" assert_match "www.swift.org\n", shell_output("#{bin}/swift run --disable-sandbox") end From 37fd4ad65967de13dae583fda8784fc609000290 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:59:19 +0100 Subject: [PATCH 84/91] swiftformat: Stop interpolating `bin` --- Formula/s/swiftformat.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/s/swiftformat.rb b/Formula/s/swiftformat.rb index e90528c9280fa..16d0f9057de3e 100644 --- a/Formula/s/swiftformat.rb +++ b/Formula/s/swiftformat.rb @@ -31,6 +31,6 @@ def install let baked: Bool } EOS - system "#{bin}/swiftformat", "#{testpath}/potato.swift" + system bin/"swiftformat", "#{testpath}/potato.swift" end end From 6b07d938627ad55e8fbe594e4a39b290be2bdb10 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:59:19 +0100 Subject: [PATCH 85/91] swiftplantuml: Stop interpolating `bin` --- Formula/s/swiftplantuml.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/s/swiftplantuml.rb b/Formula/s/swiftplantuml.rb index 4732a444c8e78..08c183007aa31 100644 --- a/Formula/s/swiftplantuml.rb +++ b/Formula/s/swiftplantuml.rb @@ -22,6 +22,6 @@ def install end test do - system "#{bin}/swiftplantuml", "--help" + system bin/"swiftplantuml", "--help" end end From fa1d2b45d3f2b6635c02cef2a596adf9dfa51597 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:59:19 +0100 Subject: [PATCH 86/91] swig: Stop interpolating `bin` --- Formula/s/swig.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/s/swig.rb b/Formula/s/swig.rb index 4241b7e592757..df96dfd7d0994 100644 --- a/Formula/s/swig.rb +++ b/Formula/s/swig.rb @@ -64,7 +64,7 @@ def install EOS ENV.remove_from_cflags(/-march=\S*/) - system "#{bin}/swig", "-python", "test.i" + system bin/"swig", "-python", "test.i" system "python3", "setup.py", "build_ext", "--inplace" assert_equal "2", shell_output("python3 ./run.py").strip end From 0e2827430775ca96cfe6d0902de35b2914049f43 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:59:19 +0100 Subject: [PATCH 87/91] swimat: Stop interpolating `bin` --- Formula/s/swimat.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Formula/s/swimat.rb b/Formula/s/swimat.rb index 262fdc5e82ea9..b6df2f84c4428 100644 --- a/Formula/s/swimat.rb +++ b/Formula/s/swimat.rb @@ -36,8 +36,8 @@ def install end test do - system "#{bin}/swimat", "-h" + system bin/"swimat", "-h" (testpath/"SwimatTest.swift").write("struct SwimatTest {}") - system "#{bin}/swimat", "#{testpath}/SwimatTest.swift" + system bin/"swimat", "#{testpath}/SwimatTest.swift" end end From a64bffe49fc6e3119f171d6a95dd0d5cc356338a Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:59:20 +0100 Subject: [PATCH 88/91] sylpheed: Stop interpolating `bin` --- Formula/s/sylpheed.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/s/sylpheed.rb b/Formula/s/sylpheed.rb index c6388a81913c5..f696f02f20cba 100644 --- a/Formula/s/sylpheed.rb +++ b/Formula/s/sylpheed.rb @@ -39,6 +39,6 @@ def install end test do - system "#{bin}/sylpheed", "--version" + system bin/"sylpheed", "--version" end end From a027a6409a5d74ce8abc91a92a4642e29d81577a Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:59:20 +0100 Subject: [PATCH 89/91] synscan: Stop interpolating `bin` --- Formula/s/synscan.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/s/synscan.rb b/Formula/s/synscan.rb index 0b07d78c981dc..1fe53ac61e76e 100644 --- a/Formula/s/synscan.rb +++ b/Formula/s/synscan.rb @@ -42,6 +42,6 @@ def install end test do - system "#{bin}/synscan", "-V" + system bin/"synscan", "-V" end end From 282b38e13489f274bedf1bdc0581c108b2d11430 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:59:20 +0100 Subject: [PATCH 90/91] sysbench: Stop interpolating `bin` --- Formula/s/sysbench.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/s/sysbench.rb b/Formula/s/sysbench.rb index fe99b63f0db5f..cbf76bc928ef6 100644 --- a/Formula/s/sysbench.rb +++ b/Formula/s/sysbench.rb @@ -35,6 +35,6 @@ def install end test do - system "#{bin}/sysbench", "--test=cpu", "--cpu-max-prime=1", "run" + system bin/"sysbench", "--test=cpu", "--cpu-max-prime=1", "run" end end From 0fbc513a18ed9bff1345f465f8b17b4926ab7030 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:59:20 +0100 Subject: [PATCH 91/91] systemd: Stop interpolating `bin` --- Formula/s/systemd.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/s/systemd.rb b/Formula/s/systemd.rb index a14cae88e844d..ab983e95ed46f 100644 --- a/Formula/s/systemd.rb +++ b/Formula/s/systemd.rb @@ -107,6 +107,6 @@ def install end test do - assert_match "temporary: /tmp", shell_output("#{bin}/systemd-path") + assert_match "temporary: /tmp", shell_output(bin/"systemd-path") end end