[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug in cron postinst

Goswin von Brederlow wrote:
Matthias Urlichs <smurf@smurf.noris.de> writes:
Hi, Roland Bauerschmidt wrote:

find /var/spool/crontab -maxdepth 1 -type f -print | while read ct; do

Don't forget to set IFS="\n" if you do this.
Otherwise you'll miss filenames which start/end with a space.

What about filenames containing \n?

I usually avoid this kind of mess by using 'find -print0 | xargs -0' i don't know if it applies here as i wasn't able to find the full fragment that was referred to.

Regards, Sami

Reply to: