Page 1 of 1

dirnames with spaces in changes-exit.conf

Posted: 31 Oct 2017, 18:44
by abelM
Hi all!

I've added a line to /etc/changes-exit.conf to avoid saving cache from palemoon at shutdown -- using changes=EXIT: in the command line.

Code: Select all

!/home/guest/.cache/moonchild productions
The issue is the folder isn't deleted. I've tried with different directory names and it seems Porteus doesn't delete them when there are spaces in their names.

Something alike happens if you add a line like this to /etc/changes-exit.conf -- though it's an unusual case I think.

Code: Select all

/root/My files
In this case the folder isn't saved between sessions.

Any idea?

Regards,

removing and saving dirnames with spaces at EXIT

Posted: 31 Oct 2017, 20:32
by Ed_P
Try using a "?" in place of the " ".

Other options that should work are:
using an "*" in place of the " ".
putting quotes around the name with spaces.

This posting may help: Re: How to delete files? Files with spaces in their names. (Post by Ed_P #28192)

dirnames with spaces in changes-exit.conf

Posted: 01 Nov 2017, 13:31
by abelM
Hi Ed,

These do the job:

Code: Select all

# /etc/changes-exit.conf
!/home/guest/.cache/moonchild?productions
!/home/guest/.cache/moonchild*productions
But these don't:

Code: Select all

# /etc/changes-exit.conf
!/"home/guest/.cache/moonchild productions"
!/home/guest/.cache/moonchild\ productions
It seems a matter of word splitting. Using wildcards to replace blank spaces in dirnames are a simple an effective way to work it out.

I've followed the link you've suggested. Interesting. It goes into another issue -- that is how to permanently delete files in the aufs filesystem. But that's another post I think.

Thank you!