Replies: 4 comments 1 reply
-
The option to pass a string as a command line argument, which I think is what you would need here for process substitution (correct me if wrong) is insecure/deprecated/onwards removal. Programmatically speaking, using standard input (or a real file) should be often easier if you're using a language with a sort of subprocess/task API, whereas using a I don't think this is going to change. Related: #2168 |
Beta Was this translation helpful? Give feedback.
-
Alright I read up more on process substation. Indeed, you are right, it should work but doesn't. generate_appcast uses this API https://developer.apple.com/documentation/swift/string/init(contentsof:) and the error is coming from Swift/Foundation, however it's. getting a POSIX error 13 (Permission Denied). This would require more investigation to figure out why that doesn't work. |
Beta Was this translation helpful? Give feedback.
-
It is worth noting that with zsh you can use |
Beta Was this translation helpful? Give feedback.
-
Converted back to issue #2605. Need to use FIleHandle to read the file contents to support this use case. |
Beta Was this translation helpful? Give feedback.
-
Summary
You can work around this by using stdin. (Example doesn't have a real key, but with a real key everything works perfectly.)
This is very surprising as it should just be reading from the passed in path. For some reason it doesn't work properly. Not only is this surprising and leads to requiring a different approach but in many cases the stdin approach results in scripts that are harder to read and maintian.
Version
2.6.4
Beta Was this translation helpful? Give feedback.
All reactions