Post 9w9rcCmroaTZCXhUTA by BrokenBiscuit@playvicious.social
 (DIR) More posts by BrokenBiscuit@playvicious.social
 (DIR) Post #9w9pVrFSmbAQkovCym by tek@freeradical.zone
       2020-06-17T00:43:46Z
       
       0 likes, 0 repeats
       
       Looking at https://github.com/nodejs/docker-node/blob/master/docker-entrypoint.sh (because a project I use "borrowed" this, so it's the root of all the sins).That expression on line 4? What they want to do is:- If the first argument you pass in starts with a "-" (that is, if it's an option), put "node" at the beginning of the list.- If the first argument is the path to an executable, use that instead of node.OK, that's fair. But it's broken! They *should* have written:`[ -x ${1} ]`
       
 (DIR) Post #9w9pgkMuhbCSbObBo0 by tek@freeradical.zone
       2020-06-17T00:45:43Z
       
       0 likes, 0 repeats
       
       The test they came up with is basically a long way of writing:`[ -e ${1} ]`That is, it returns true if the file mentioned in $ARGV[1] exists, even if it's not executable. And if that's the case, then that `exec "$@"` line will fail with a "Permission denied" error, because the file doesn't have +x set.
       
 (DIR) Post #9w9phqm6MxkilCuGVU by tek@freeradical.zone
       2020-06-17T00:45:54Z
       
       0 likes, 0 repeats
       
       Go ahead, ask me how my afternoon went.
       
 (DIR) Post #9w9puT9XVT9RGLt1bk by kragen@nerdculture.de
       2020-06-17T00:48:23Z
       
       0 likes, 0 repeats
       
       @tek also [ -x "$1" ]? $1 might have spaces
       
 (DIR) Post #9w9pvxPgU6jLP49DXs by drwho@hackers.town
       2020-06-17T00:47:36Z
       
       0 likes, 0 repeats
       
       @tek About like mine?
       
 (DIR) Post #9w9q6dmFpa8JglnadM by kemonine@pleroma.kemonine.info
       2020-06-17T00:47:00.084500Z
       
       0 likes, 0 repeats
       
       @tek its nodekill it with fire is your only option
       
 (DIR) Post #9w9q6dz148LEKLlmWe by tek@freeradical.zone
       2020-06-17T00:50:23Z
       
       0 likes, 0 repeats
       
       @kemonine This has the common courtesy to seppuku.
       
 (DIR) Post #9w9q9jJrgLVVkJzd2W by tek@freeradical.zone
       2020-06-17T00:50:37Z
       
       0 likes, 0 repeats
       
       @drwho I'm so sorry.
       
 (DIR) Post #9w9qASf16YAIMxEeky by tek@freeradical.zone
       2020-06-17T00:51:00Z
       
       0 likes, 0 repeats
       
       @kragen For sure.
       
 (DIR) Post #9w9qTkpflZKaELQ3Pc by BrokenBiscuit@playvicious.social
       2020-06-17T00:54:26Z
       
       0 likes, 1 repeats
       
       @tek by any chance?
       
 (DIR) Post #9w9rDdcEvi2FAY0zxY by tek@freeradical.zone
       2020-06-17T01:02:57Z
       
       0 likes, 0 repeats
       
       @BrokenBiscuit Closer to...
       
 (DIR) Post #9w9rcCmroaTZCXhUTA by BrokenBiscuit@playvicious.social
       2020-06-17T01:06:07Z
       
       0 likes, 0 repeats
       
       @tek ahhh I see