rofs-filtered icon indicating copy to clipboard operation
rofs-filtered copied to clipboard

Empty lines in sample config

Open yunesj opened this issue 7 years ago • 5 comments

rofs-filtered.rc has empty lines. It was necessary for me to comment these empty lines out in my own config on rofs-filtered: stable 1.7 (bottled) installed via brew.

yunesj avatar Aug 08 '17 18:08 yunesj

There's no need to comment out empty lines. They are explicitly ignored as long as they are truly empty (or contain only whitespace). Can you post an example of a config file that I can use to reproduce the problem?

gburca avatar Aug 09 '17 02:08 gburca

Sure. But it will take a little while for me to get around to this (for this issue and the other), because I'm actively using a rofs-filtered mount.

yunesj avatar Aug 09 '17 19:08 yunesj

# cat rofs-filtered.rc

Guest

gives me:

RegEx error: "empty (sub)expression" while parsing pattern: ""

However,

# cat rofs-filtered.rc
Guest

works perfectly.

It seems like this is just a warning, and the file system works fine and filters correctly.

Thanks!

yunesj avatar May 15 '18 07:05 yunesj

I can't seem to reproduce this issue. I tried all kinds of line endings, and lines with tabs or spaces (see rofs-filtered.txt for example), and they all seem to work fine. Can you attach your config file?

gburca avatar May 16 '18 03:05 gburca

I get the same warning using your config file.

# rofs-filtered /Volumes/Filtered/ -o source=/ -o config=rofs-filtered.txt
rofs-filtered 1.7: Starting up. Using source: / and config: rofs-filtered.txt
RegEx error: "empty (sub)expression" while parsing pattern: ""

yunesj avatar May 17 '18 01:05 yunesj