<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Aug 12, 2024, at 09:44, Bill Cole <<a href="mailto:macportsusers-20171215@billmail.scconsult.com" class="">macportsusers-20171215@billmail.scconsult.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta charset="UTF-8" class=""><div class="plaintext" style="white-space: normal; caret-color: rgb(0, 0, 0); font-family: sans-serif; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><p dir="auto" class="">On 2024-08-12 at 08:14:54 UTC-0400 (Mon, 12 Aug 2024 14:14:54 +0200)<span class="Apple-converted-space"> </span><br class="">Bas Jansen via macports-users <<a href="mailto:bas_work@icloud.com" class="">bas_work@icloud.com</a>><span class="Apple-converted-space"> </span><br class="">is rumored to have said:</p><blockquote style="margin: 0px 0px 5px; padding-left: 5px; border-left-width: 2px; border-left-style: solid; border-left-color: rgb(119, 119, 119); color: rgb(119, 119, 119);" class=""><p dir="auto" class="">Hi,</p><p dir="auto" class="">When doing a self update via Terminal, I get the following warning:</p><p dir="auto" class="">~$ sudo port upgrade outdated<span class="Apple-converted-space"> </span><br class="">Nothing to upgrade.<span class="Apple-converted-space"> </span><br class="">---> Scanning binaries for linking errors<span class="Apple-converted-space"> </span><br class="">Warning: Error parsing file /opt/local/bin/g[: Error opening or reading file<span class="Apple-converted-space"> </span><br class="">---> No broken files found.<span class="Apple-converted-space"> </span><br class="">---> No broken ports found.</p><p dir="auto" class="">Emphasis mine, of course. There is no file “g[“ in /opt/local/bin/. I ran this using macports 2.10.0, macOS Sonoma 14.6.1 on an Intel MacBook Pro, late 2019. Anyone know what this means?</p></blockquote><p dir="auto" class="">If you've installed the coreutils package, /opt/local/bin/g[ *should* exist. It is the GNU version of '[' which is better known as 'test'. You may be able to resolve this by reinstalling coreutils.</p><p dir="auto" class="">I do not know the history of why '[' exists apart from 'test' but it does, in most systems as a hardlink. The MacPorts coreutils package includes both as distinct files.</p></div></div></blockquote></div><br class=""><div class=""><br class=""></div><div class="">Instead of saying</div><div class=""><br class=""></div><div class="">test -r $file</div><div class=""><br class=""></div><div class="">you can say</div><div class=""><br class=""></div><div class="">[ -r $file ]</div><div class=""><br class=""></div><div class="">I've seen it before that builtins are also separate commands on various systems; there must be some requirement. Some implement that by using a script of one of the shells that has the builtin, or with a special executable that implements a bunch of such commands via hard links.</div><div class=""><br class=""></div></body></html>