From 513b9bbcbbbedade8f9f3d389585c5e071eafb1d Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:24:25 +0100 Subject: [PATCH 01/20] xa: Stop interpolating `bin` --- Formula/x/xa.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/x/xa.rb b/Formula/x/xa.rb index 255bd9784330b..e89631a02a0fa 100644 --- a/Formula/x/xa.rb +++ b/Formula/x/xa.rb @@ -30,7 +30,7 @@ def install test do (testpath/"foo.a").write "jsr $ffd2\n" - system "#{bin}/xa", "foo.a" + system bin/"xa", "foo.a" code = File.open("a.o65", "rb") { |f| f.read.unpack("C*") } assert_equal [0x20, 0xd2, 0xff], code end From aec3b0762fa2b38809d2afacb6c922a723682f2c Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:24:27 +0100 Subject: [PATCH 02/20] xaric: Stop interpolating `bin` --- Formula/x/xaric.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/x/xaric.rb b/Formula/x/xaric.rb index c81cc9bd6e253..5b355d129b143 100644 --- a/Formula/x/xaric.rb +++ b/Formula/x/xaric.rb @@ -49,7 +49,7 @@ def install test do require "pty" output = "" - PTY.spawn("#{bin}/xaric", "-v") do |r, _w, _pid| + PTY.spawn(bin/"xaric", "-v") do |r, _w, _pid| r.each_line { |line| output += line } rescue Errno::EIO # GNU/Linux raises EIO when read is done on closed pty From ad52a0178224a02661f0cb15961f75fbe56c0802 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:24:27 +0100 Subject: [PATCH 03/20] xclip: Stop interpolating `bin` --- Formula/x/xclip.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/x/xclip.rb b/Formula/x/xclip.rb index d191f1fbe25fb..7393bc1d7d153 100644 --- a/Formula/x/xclip.rb +++ b/Formula/x/xclip.rb @@ -33,6 +33,6 @@ def install end test do - system "#{bin}/xclip", "-version" + system bin/"xclip", "-version" end end From 2c72db7519078beee5a2f4dd63f94f8726a0a064 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:24:27 +0100 Subject: [PATCH 04/20] xcode-build-server: Stop interpolating `bin` --- Formula/x/xcode-build-server.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/x/xcode-build-server.rb b/Formula/x/xcode-build-server.rb index 2af525a4a440e..6087c5e77701f 100644 --- a/Formula/x/xcode-build-server.rb +++ b/Formula/x/xcode-build-server.rb @@ -24,6 +24,6 @@ def install end test do - system "#{bin}/xcode-build-server", "--help" + system bin/"xcode-build-server", "--help" end end From b039e309a157c66f07b7d7341821398209620bf6 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:24:27 +0100 Subject: [PATCH 05/20] xcproj: Stop interpolating `bin` --- Formula/x/xcproj.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/x/xcproj.rb b/Formula/x/xcproj.rb index f2afeae382742..f02e63e346e07 100644 --- a/Formula/x/xcproj.rb +++ b/Formula/x/xcproj.rb @@ -52,6 +52,6 @@ def caveats end test do - system "#{bin}/xcproj", "--version" + system bin/"xcproj", "--version" end end From 93518b5b6c4604b75d0d4ab914d06c9a5a5382ed Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:24:28 +0100 Subject: [PATCH 06/20] xcv: Stop interpolating `bin` --- Formula/x/xcv.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/x/xcv.rb b/Formula/x/xcv.rb index f7d68fc7d0490..0fe293a6a191d 100644 --- a/Formula/x/xcv.rb +++ b/Formula/x/xcv.rb @@ -14,6 +14,6 @@ def install end test do - system "#{bin}/xcv" + system bin/"xcv" end end From 9a7bd09a682a90ab02770d241175ea8865f8a401 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:24:28 +0100 Subject: [PATCH 07/20] xdotool: Stop interpolating `bin` --- Formula/x/xdotool.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/x/xdotool.rb b/Formula/x/xdotool.rb index 1549871670a70..d624259877ec8 100644 --- a/Formula/x/xdotool.rb +++ b/Formula/x/xdotool.rb @@ -51,6 +51,6 @@ def caveats end test do - system "#{bin}/xdotool", "--version" + system bin/"xdotool", "--version" end end From 6ee24ecb1a7c5d9a98fde016a9d4fde2d7a54e67 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:24:28 +0100 Subject: [PATCH 08/20] xhyve: Stop interpolating `bin` --- Formula/x/xhyve.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/x/xhyve.rb b/Formula/x/xhyve.rb index 504b1dbec6447..3a947a187fd47 100644 --- a/Formula/x/xhyve.rb +++ b/Formula/x/xhyve.rb @@ -32,6 +32,6 @@ def install end test do - system "#{bin}/xhyve", "-v" + system bin/"xhyve", "-v" end end From c1d0b2a0fed59c82c8f5b24dc5873a3e72f15c69 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:24:28 +0100 Subject: [PATCH 09/20] xml2: Stop interpolating `bin` --- Formula/x/xml2.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/x/xml2.rb b/Formula/x/xml2.rb index 337b4e0755931..6dc55caa6c54f 100644 --- a/Formula/x/xml2.rb +++ b/Formula/x/xml2.rb @@ -35,6 +35,6 @@ def install end test do - assert_equal "/test", pipe_output("#{bin}/xml2", "", 0).chomp + assert_equal "/test", pipe_output(bin/"xml2", "", 0).chomp end end From 77dcb020214acedc0d6467d3fa5d9818d4473ced Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:24:28 +0100 Subject: [PATCH 10/20] xmlcatmgr: Stop interpolating `bin` --- Formula/x/xmlcatmgr.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/x/xmlcatmgr.rb b/Formula/x/xmlcatmgr.rb index 46da4e5487fd3..771be72ebb4ad 100644 --- a/Formula/x/xmlcatmgr.rb +++ b/Formula/x/xmlcatmgr.rb @@ -29,6 +29,6 @@ def install end test do - system "#{bin}/xmlcatmgr", "-v" + system bin/"xmlcatmgr", "-v" end end From 210738051ef75c253ac5c098de97f50e1ddf6cfb Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:24:28 +0100 Subject: [PATCH 11/20] xmlformat: Stop interpolating `bin` --- Formula/x/xmlformat.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/x/xmlformat.rb b/Formula/x/xmlformat.rb index 77ae5b856ba9f..d2edc798335e8 100644 --- a/Formula/x/xmlformat.rb +++ b/Formula/x/xmlformat.rb @@ -17,6 +17,6 @@ def install end test do - system "#{bin}/xmlformat", "--version" + system bin/"xmlformat", "--version" end end From 7a8f6a9274bbe5e16fa94e62f64f0d7bbcb2654d Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:24:29 +0100 Subject: [PATCH 12/20] xmlrpc-c: Stop interpolating `bin` --- Formula/x/xmlrpc-c.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/x/xmlrpc-c.rb b/Formula/x/xmlrpc-c.rb index ca6927eea8bd2..6d92ce06d035d 100644 --- a/Formula/x/xmlrpc-c.rb +++ b/Formula/x/xmlrpc-c.rb @@ -36,6 +36,6 @@ def install end test do - system "#{bin}/xmlrpc-c-config", "--features" + system bin/"xmlrpc-c-config", "--features" end end From cf1c8a1315b2c6462947962068cbc14150a08388 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:24:29 +0100 Subject: [PATCH 13/20] xmlsectool: Stop interpolating `bin` --- Formula/x/xmlsectool.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/x/xmlsectool.rb b/Formula/x/xmlsectool.rb index ed6f1e02ab446..aad194e11be25 100644 --- a/Formula/x/xmlsectool.rb +++ b/Formula/x/xmlsectool.rb @@ -24,6 +24,6 @@ def install end test do - system "#{bin}/xmlsectool", "--listAlgorithms" + system bin/"xmlsectool", "--listAlgorithms" end end From 5a677deced6b40103fd7ffebef8b53fda85f1272 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:24:29 +0100 Subject: [PATCH 14/20] xmlstarlet: Stop interpolating `bin` --- Formula/x/xmlstarlet.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/x/xmlstarlet.rb b/Formula/x/xmlstarlet.rb index a5204e228a863..566bd994d8009 100644 --- a/Formula/x/xmlstarlet.rb +++ b/Formula/x/xmlstarlet.rb @@ -34,6 +34,6 @@ def install end test do - system "#{bin}/xmlstarlet", "--version" + system bin/"xmlstarlet", "--version" end end From 25d803daaf60b3852fc531790e804fa94b47a264 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:24:29 +0100 Subject: [PATCH 15/20] xplanet: Stop interpolating `bin` --- Formula/x/xplanet.rb | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Formula/x/xplanet.rb b/Formula/x/xplanet.rb index 9d4c6a89844e8..b24c4509e3a91 100644 --- a/Formula/x/xplanet.rb +++ b/Formula/x/xplanet.rb @@ -80,13 +80,13 @@ def install # Test all the supported image formats, jpg, png, gif and tiff, as well as the -num_times 2 patch test do - system "#{bin}/xplanet", "-target", "earth", "-output", "#{testpath}/test.jpg", - "-radius", "30", "-num_times", "2", "-random", "-wait", "1" - system "#{bin}/xplanet", "-target", "earth", "--transpng", "#{testpath}/test.png", - "-radius", "30", "-num_times", "2", "-random", "-wait", "1" - system "#{bin}/xplanet", "-target", "earth", "--output", "#{testpath}/test.gif", - "-radius", "30", "-num_times", "2", "-random", "-wait", "1" - system "#{bin}/xplanet", "-target", "earth", "--output", "#{testpath}/test.tiff", - "-radius", "30", "-num_times", "2", "-random", "-wait", "1" + system bin/"xplanet", "-target", "earth", "-output", "#{testpath}/test.jpg", + "-radius", "30", "-num_times", "2", "-random", "-wait", "1" + system bin/"xplanet", "-target", "earth", "--transpng", "#{testpath}/test.png", + "-radius", "30", "-num_times", "2", "-random", "-wait", "1" + system bin/"xplanet", "-target", "earth", "--output", "#{testpath}/test.gif", + "-radius", "30", "-num_times", "2", "-random", "-wait", "1" + system bin/"xplanet", "-target", "earth", "--output", "#{testpath}/test.tiff", + "-radius", "30", "-num_times", "2", "-random", "-wait", "1" end end From 4ba8991145736b6c5b941f63bba0e72820ae6d7a Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:24:29 +0100 Subject: [PATCH 16/20] xrootd: Stop interpolating `bin` --- Formula/x/xrootd.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/x/xrootd.rb b/Formula/x/xrootd.rb index 74288ac79eaf8..c349ecd78333c 100644 --- a/Formula/x/xrootd.rb +++ b/Formula/x/xrootd.rb @@ -66,7 +66,7 @@ def install end test do - system "#{bin}/xrootd", "-H" + system bin/"xrootd", "-H" system "python3.12", "-c", <<~EOS import XRootD from XRootD import client From a42b80642ab9a83d5ef70f90a875a23c87a53a00 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:24:30 +0100 Subject: [PATCH 17/20] xsane: Stop interpolating `bin` --- Formula/x/xsane.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/x/xsane.rb b/Formula/x/xsane.rb index cee6fccfa2184..93e9c102b28ca 100644 --- a/Formula/x/xsane.rb +++ b/Formula/x/xsane.rb @@ -47,6 +47,6 @@ def install # (xsane:27015): Gtk-WARNING **: 12:58:53.105: cannot open display return if OS.linux? && ENV["HOMEBREW_GITHUB_ACTIONS"] - system "#{bin}/xsane", "--version" + system bin/"xsane", "--version" end end From 63fcb601215ac084b297c0599d2d6f4088f4d900 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:24:30 +0100 Subject: [PATCH 18/20] xsd: Stop interpolating `bin` --- Formula/x/xsd.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/x/xsd.rb b/Formula/x/xsd.rb index b6f13d2f41c28..a034b93c21f4e 100644 --- a/Formula/x/xsd.rb +++ b/Formula/x/xsd.rb @@ -82,7 +82,7 @@ def install return 0; } EOS - system "#{bin}/xsd", "cxx-tree", schema + system bin/"xsd", "cxx-tree", schema assert_predicate testpath/"meaningoflife.hxx", :exist? assert_predicate testpath/"meaningoflife.cxx", :exist? system ENV.cxx, "-o", "xsdtest", "xsdtest.cxx", "meaningoflife.cxx", "-std=c++11", From 300b48708c70a6cc5cd565026e4c573bce787b4e Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:24:30 +0100 Subject: [PATCH 19/20] xurls: Stop interpolating `bin` --- Formula/x/xurls.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/x/xurls.rb b/Formula/x/xurls.rb index 81bb26a0aa2a1..0ce229c1556ff 100644 --- a/Formula/x/xurls.rb +++ b/Formula/x/xurls.rb @@ -25,7 +25,7 @@ def install end test do - output = pipe_output("#{bin}/xurls", "Brew test with https://brew.sh.") + output = pipe_output(bin/"xurls", "Brew test with https://brew.sh.") assert_equal "https://brew.sh", output.chomp output = pipe_output("#{bin}/xurls --fix", "Brew test with http://brew.sh.") From 3bff0d5f8248e0dcf6d6831240975a8dc94b214e Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:24:30 +0100 Subject: [PATCH 20/20] xxh: Stop interpolating `bin` --- Formula/x/xxh.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/x/xxh.rb b/Formula/x/xxh.rb index c6e501a94f98b..f35a3da465d71 100644 --- a/Formula/x/xxh.rb +++ b/Formula/x/xxh.rb @@ -58,7 +58,7 @@ def install end stdout, stderr, = Open3.capture3( - "#{bin}/xxh", "test.localhost", + bin/"xxh", "test.localhost", "-p", port.to_s, "+xc", "#{testpath}/config.xxhc", "+v"