You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
make-disk-image.nix: Really fix write permissions in the store
I think the current one applies the -exec only to those that match
'-type d'. Let's switch it to something that humans can understand...
(cherry picked from commit 758b4c1)
(Yes it should use 'find -print0 | xargs -0' but I'm really afraid of
screwing up again in the same way. Nix doesn't allow spaces and/or
newlines in store paths anyway and it has -maxdepth 1 -mindepth 1 so it
won't fail in practice. If someone can provide a *tested* that doesn't
suffer from the same problems, feel free to improve.)
Yeah. I suppose it's a "feature" so that one can do uber complex things like find -type f -exec command-if-file '{}' \; -o -type d -exec command-if-directory '{}' \; all in a single find command...
6 commit comments
copumpkin commentedon Dec 20, 2017
I don't understand how this differs!
dezgeg commentedon Dec 20, 2017
I don't understand either.
dezgeg commentedon Dec 20, 2017
copumpkin commentedon Dec 20, 2017
So the
exec
is somehow treated as part of the predicate?? Ugh 😄dezgeg commentedon Dec 20, 2017
Yeah. I suppose it's a "feature" so that one can do uber complex things like
find -type f -exec command-if-file '{}' \; -o -type d -exec command-if-directory '{}' \;
all in a singlefind
command...copumpkin commentedon Dec 20, 2017
Makes sense I guess 😄