Today-Scripts
Today-Scripts copied to clipboard
Symlinks aren't recognized as executable
I've installed bash via Homebrew, which means that my bash really lives in /usr/local/Cellar/bash/.../bin/bash, with a symlink at /usr/local/bin/bash. When I specify the program to run as /usr/local/bin/bash (which happens automatically because it's auto-populated from my SHELL
environment variable), Today Scripts highlights it in red and refuses to save the entry.
This is evidently because of the check at line 111 of EditViewController.m:
if (! [NSFileManager.defaultManager isExecutableFileAtPath:programString]) {
I'm afraid I have no solution to suggest, but it seems clear to me that a symlink to a valid executable should be accepted the same as an actual executable.
+1
I think this might be related to why I can't get this working for fish. I also have a red program
variable.