tuxlover/etckeeper-ng — Issue #6: The whole program does not parse spaces in filenames
Author: tuxlover
Created: 2012-02-06 14:00:57+00:00
State: open

Assuming we have a file named "/etc/back door"
When we issue for example etckeeper-ng reset this file gets not removed but gets an error of the file /etc/back and the file door both where not found when trying to use rm with this.

this is especially an issue with the $(find /etc -printf "%p\n") part in the for loop and a matter of correct quoting. but how can be solved by setting the IFS variable:

old_IFS=$IFS
IFS=$'\n'