zsh-users
 help / color / mirror / code / Atom feed
From: TJ Luoma <luomat@gmail.com>
To: Zsh MailingList <zsh-users@zsh.org>
Subject: "operation not permitted"
Date: Wed, 4 Sep 2019 06:42:45 -0400	[thread overview]
Message-ID: <CADjGqHsF_5Q93hrUZdjWGiLr74efwBefeMWjPkv2r3FADRxufw@mail.gmail.com> (raw)

I just did a clean install of macOS 13 (High Sierra) and have
encountered a few zsh shell scripts which say "operation not
permitted" when I try to run them

      zsh: operation not permitted: register-fluid.sh

but if I do this

     zsh =register-fluid.sh

then it works fine.

The shell script is in my $PATH and is executable. It's not doing
anything fancy. In fact I can include it here.

#!/usr/bin/env zsh -f
# Purpose:
#
# From:     Timothy J. Luoma
# Mail:     luomat at gmail dot com
# Date:     2019-09-04

NAME="$0:t:r"

if [[ -e "$HOME/.path" ]]
then
     source "$HOME/.path"
else
     PATH='/usr/local/scripts:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin'
fi

TARGET="${HOME}/Library/Application Support/Fluid/TimothyLuoma.fluid2license"

if [[ -e "$TARGET" ]]
then
     echo "$NAME: '$TARGET' already exists."
     exit 0
fi

[[ ! -d "$TARGET:h" ]] && mkdir -p "$TARGET:h"

cp -vn "$HOME/.config/licenses/fluid/TimothyLuoma.fluid2license" "$TARGET"

exit 0
#EOF

Any ideas why I'm getting "operation not permitted" for this?

Thanks!

Tj

             reply	other threads:[~2019-09-04 10:44 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20190904104432epcas3p2d0825a22892c5a329241cd63d2d78ee6@epcas3p2.samsung.com>
2019-09-04 10:42 ` TJ Luoma [this message]
2019-09-04 10:57   ` Peter Stephenson
2019-09-04 11:11     ` TJ Luoma
2019-09-04 11:14       ` TJ Luoma
2019-09-04 14:09   ` TJ Luoma
2019-09-04 20:15   ` Bart Schaefer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CADjGqHsF_5Q93hrUZdjWGiLr74efwBefeMWjPkv2r3FADRxufw@mail.gmail.com \
    --to=luomat@gmail.com \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).