Files
mc/cmd
Klaus Post eef80d47cd find: Fix --exec parsing (#3907)
Find would replace placeholders before splitting input, meaning files with spaces would be executed as separate args.

Split before replacing args, and use shell-style parsing.

Technically, this requires quotes in input to be escaped, so to specify `--exec='echo {""}'` you must escape them like this: `--exec='echo {\"\"}'`. Quoted inputs aren't documented, but it is a change.

Errors would not be displayed, like `./mc find play/test123/ --exec='unknown {}'` would just exit. Instead it now prints `exec: "unknown": executable file not found in $PATH`.

Fixes #3906
2022-01-03 23:56:55 -08:00
..
2021-05-11 17:45:08 -07:00
2021-05-11 17:45:08 -07:00
2021-05-11 17:46:41 -07:00
2021-05-11 17:45:08 -07:00
2021-05-11 17:45:08 -07:00
2021-05-11 17:45:08 -07:00
2021-05-11 17:45:08 -07:00
2021-05-11 17:45:08 -07:00
2021-05-11 17:45:08 -07:00
2021-05-11 17:45:08 -07:00
2021-05-11 17:45:08 -07:00
2021-05-11 17:45:08 -07:00
2021-05-11 17:45:08 -07:00
2021-05-11 17:45:08 -07:00
2021-05-29 09:30:33 -07:00
2021-05-29 09:30:33 -07:00
2021-05-29 09:30:33 -07:00
2021-05-11 17:45:08 -07:00
2021-05-11 17:45:08 -07:00
2021-05-11 17:45:08 -07:00
2021-05-11 17:45:08 -07:00
2021-05-29 09:30:33 -07:00
2021-05-11 17:45:08 -07:00
2021-05-11 17:45:08 -07:00
2021-05-11 17:45:08 -07:00
2021-05-11 17:45:08 -07:00
2021-09-28 09:19:52 -07:00
2021-05-11 17:45:08 -07:00
2021-09-28 09:19:52 -07:00
2021-05-11 17:45:08 -07:00
2021-05-11 17:45:08 -07:00
2021-05-29 09:30:33 -07:00
2021-05-11 17:45:08 -07:00
2021-05-11 17:45:08 -07:00
2021-05-29 09:30:33 -07:00
2021-05-11 17:45:08 -07:00
2021-05-11 17:45:08 -07:00
2021-05-11 17:45:08 -07:00
2021-05-11 17:45:08 -07:00
2021-05-11 17:45:08 -07:00
2021-05-11 17:45:08 -07:00
2021-05-11 17:45:08 -07:00
2021-05-29 09:30:33 -07:00
2021-05-11 17:45:08 -07:00
2021-05-11 17:45:08 -07:00
2021-05-29 09:30:33 -07:00
2021-05-29 09:30:33 -07:00
2021-05-29 09:30:33 -07:00
2021-05-29 09:30:33 -07:00
2021-05-11 17:45:08 -07:00
2021-09-28 09:19:52 -07:00
2021-05-29 09:30:33 -07:00
2022-01-03 23:56:55 -08:00
2021-05-11 17:45:08 -07:00
2021-05-11 17:45:08 -07:00
2021-05-11 17:45:08 -07:00
2021-05-11 17:45:08 -07:00
2021-12-07 15:06:06 -08:00
2021-05-11 17:45:08 -07:00
2021-05-29 09:30:33 -07:00
2021-09-24 09:32:39 -07:00
2021-05-29 09:30:33 -07:00
2021-05-11 17:45:08 -07:00
2021-05-29 09:30:33 -07:00
2021-05-29 09:30:33 -07:00
2021-05-11 17:45:08 -07:00
2021-05-11 17:45:08 -07:00
2021-05-11 17:45:08 -07:00
2021-05-11 17:45:08 -07:00
2021-06-11 14:40:16 -07:00
2021-05-11 17:45:08 -07:00
2021-05-29 09:30:33 -07:00
2021-05-11 17:45:08 -07:00
2021-05-29 09:30:33 -07:00
2021-05-29 09:30:33 -07:00
2021-05-11 17:45:08 -07:00
2021-05-29 09:30:33 -07:00
2021-05-11 17:45:08 -07:00
2021-05-29 09:30:33 -07:00
2021-05-11 17:45:08 -07:00
2021-05-29 09:30:33 -07:00
2021-05-11 17:45:08 -07:00
2021-05-11 17:45:08 -07:00
2021-05-29 09:30:33 -07:00
2021-05-11 17:45:08 -07:00
2021-05-29 09:30:33 -07:00
2021-05-29 09:30:33 -07:00
2021-05-11 17:45:08 -07:00
2021-05-29 09:30:33 -07:00
2021-05-11 17:45:08 -07:00
2021-05-29 09:30:33 -07:00
2021-05-29 09:30:33 -07:00
2021-05-29 09:30:33 -07:00
2021-05-11 17:45:08 -07:00
2021-09-28 09:19:52 -07:00
2021-09-28 09:19:52 -07:00
2021-05-11 17:45:08 -07:00
2021-05-11 17:45:08 -07:00
2021-05-11 17:45:08 -07:00
2021-05-11 17:45:08 -07:00
2021-05-29 09:30:33 -07:00
2021-05-11 17:45:08 -07:00