Quoted $$ command substitution has changed behaviour since 3.2.0
Tested on:
MacOS 10.14.6
As part of #6631 (closed) provision was made for $$$$ to quote $$.
Consider the following script:
tell application "/tmp/iTerm/iTerm-3.2.0.app"
activate
create window with default profile command "sh -c '/bin/echo $$$$'"
end tell
Executing this script with iTerm 3.2.0 yields a window that shows the shell pid, and reports the window id:
$ osascript /tmp/bug.osa
window id 384442
Executing this script with iTerm 3.3.12 yields window that shows the shell pid, but then an error report:
$ osascript /tmp/bug.osa
missing value
Executing this script with iTerm 3.4.0 or iTerm 3.4.1 yields window that hangs, and no output:
$ osascript /tmp/bug.osa
## Hangs ##