restore_ports.tcl failure

Joshua Root jmr at macports.org
Fri Dec 18 21:03:19 UTC 2020


Murray Eisenberg wrote:
> 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
> 
> sudo ./restore_ports.tcl myports.txt
> 
> I get the following error message:
> 
> 	list element in braces followed by "#!/bin/sh" instead of space
> 	    while executing
> 	"foreach op $operationList {
> 	        set name [string trim [lindex $op 0]]
>  	       set variations [lindex $op 1]
> 	        set active [lindex $op 2]
> 
> 	   ..."
> 	    (procedure "install_ports" line 2)
> 	    invoked from within
> 	"install_ports $operationList#!/bin/sh”
> 	  (file "./restore_ports.tcl" line 287)
> 
> This is using the default (zsh) shell in Terminal.
> 
> The offending line in the script is:
> 
> 	install_ports $operationList#!bin/sh
> 
> What’s wrong?

There is no trailing #!/bin/sh on that line in the script in git. Try
grabbing a fresh copy.

- Josh


More information about the macports-users mailing list