<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="">I’m trying to migrate my ports, originally installed under Catalina (actually, migrated from my iMac running Catalina), to Big Sur 11.1 on an M1 MacBook Air. When I got to the step<div class=""><br class=""></div><div class="">sudo ./restore_ports.tcl myports.txt</div><div class=""><br class=""></div><div class="">I get the following error message:</div><div class=""><br class=""></div><div class=""><div class=""><font face="Courier" class=""><span class="Apple-tab-span" style="white-space:pre"> </span>list element in braces followed by "#!/bin/sh" instead of space</font></div><div class=""><font face="Courier" class=""><span class="Apple-tab-span" style="white-space:pre"> </span> while executing</font></div><div class=""><font face="Courier" class=""><span class="Apple-tab-span" style="white-space:pre"> </span>"foreach op $operationList {</font></div><div class=""><font face="Courier" class=""><span class="Apple-tab-span" style="white-space:pre"> </span> set name [string trim [lindex $op 0]]</font></div><div class=""><font face="Courier" class=""> <span class="Apple-tab-span" style="white-space:pre"> </span> set variations [lindex $op 1]</font></div><div class=""><font face="Courier" class=""><span class="Apple-tab-span" style="white-space:pre"> </span> set active [lindex $op 2]</font></div><div class=""><font face="Courier" class=""><br class=""></font></div><div class=""><font face="Courier" class=""><span class="Apple-tab-span" style="white-space:pre"> </span> ..."</font></div><div class=""><font face="Courier" class=""><span class="Apple-tab-span" style="white-space:pre"> </span> (procedure "install_ports" line 2)</font></div><div class=""><font face="Courier" class=""><span class="Apple-tab-span" style="white-space:pre"> </span> invoked from within</font></div><div class=""><font face="Courier" class=""><span class="Apple-tab-span" style="white-space:pre"> </span>"install_ports $operationList#!/bin/sh”</font></div></div><div class=""><font face="Courier" class=""><span class="Apple-tab-span" style="white-space:pre"> </span> (file "./restore_ports.tcl" line 287)</font></div><div class=""><br class=""></div><div class="">This is using the default (zsh) shell in Terminal.</div><div class=""><br class=""></div><div class="">The offending line in the script is:</div><div class=""><br class=""></div><div class=""><font face="Courier" class=""><span class="Apple-tab-span" style="white-space:pre"> </span>install_ports $operationList#!bin/sh</font></div><div class=""><br class=""></div><div class="">What’s wrong?<br class=""><div class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">---<br class="">Murray Eisenberg<span class="Apple-tab-span" style="white-space: pre;"> </span><a href="mailto:murrayeisenberg@gmail.com" class="">murrayeisenberg@gmail.com</a><br class="">503 King Farm Blvd #101<span class="Apple-tab-span" style="white-space: pre;"> </span><br class="">Rockville, MD 20850-6667<span class="Apple-tab-span" style="white-space: pre;"> </span>Mobile (413)-427-5334<br class=""><br class=""></div>
</div>
<br class=""></div></body></html>