Skip to content

Symlinks aren't recognized as executable #2

Description

@rkennedy

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions