# Bug Regular Expression Filter operator '|' (or) does not work inside parenthesis ()

**URL:** https://forum.duplicati.com/t/bug-regular-expression-filter-operator-or-does-not-work-inside-parenthesis/7950
**Category:** Support
**Created:** [September 3, 2019, 9:31pm UTC](https://forum.duplicati.com/t/bug-regular-expression-filter-operator-or-does-not-work-inside-parenthesis/7950 "2019-09-03T21:31:50Z")
**Posts on this page:** 1
**Showing post:** 8

<div class="post-metadata">

### Author: ![ts678](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/t/8491ac/32.png) [@ts678](https://forum.duplicati.com/u/ts678)
#### Post date: [September 6, 2019, 12:51pm UTC](https://forum.duplicati.com/t/bug-regular-expression-filter-operator-or-does-not-work-inside-parenthesis/7950/8 "2019-09-06T12:51:21Z")

</div>

Backslash is early and generic. [–parameters-file](https://duplicati.readthedocs.io/en/latest/06-advanced-options/#parameters-file) looked for the backslashed version. [–log-file](https://duplicati.readthedocs.io/en/latest/06-advanced-options/#log-file) wrote to one. Had the backslash both when passing vertical bar in an option, or in the non-option portion of a command. Finally I did test below which appears to suggest that backslash is added when starting the child Duplicati:

```
$ duplicati-cli help '1|2'         
Topic not found: 1\|2

See duplicati.commandline.exe help <topic> for more information.
  General: example, changelog
  Commands: backup, find, restore, delete, compact, test, compare, purge, vacuum
  Repair: repair, affected, list-broken-files, purge-broken-files
  Debug: debug, logging, create-report, test-filters, system-info, send-mail
  Targets: tahoe, amzcd, aftp, hubic, googledrive, gcs, rclone, jottacloud, mega, ftp, s3, openstack, b2, cloudfiles, webdav, dropbox, azure, od4b, mssp, box, file, ssh, msgroup, onedrive, onedrivev2, sharepoint, sia
  Modules: aes, gpg, zip, 7z, console-password-input, mssql-options, hyperv-options, http-options, sendhttp, sendmail, runscript, sendxmpp, check-mono-ssl
  Formats: date, time, size, encryption, compression
  Advanced: mail, advanced, returncodes, filter, filter-groups, <option>

http://www.duplicati.com/ Version: - 2.0.4.5_beta_2018-11-28

$ AUTOUPDATER_Duplicati_SKIP_UPDATE=true duplicati-cli help '1|2'
Topic not found: 1|2

See duplicati.commandline.exe help <topic> for more information.
  General: example, changelog
  Commands: backup, find, restore, delete, compact, test, compare, purge, vacuum
  Repair: repair, affected, list-broken-files, purge-broken-files
  Debug: debug, logging, create-report, test-filters, system-info, send-mail
  Targets: tahoe, amzcd, aftp, hubic, googledrive, gcs, rclone, jottacloud, mega, ftp, s3, openstack, b2, cloudfiles, webdav, dropbox, azure, od4b, mssp, box, file, ssh, msgroup, onedrive, onedrivev2, sharepoint, sia
  Modules: aes, gpg, zip, 7z, console-password-input, mssql-options, hyperv-options, http-options, sendhttp, sendmail, runscript, sendxmpp, check-mono-ssl
  Formats: date, time, size, encryption, compression
  Advanced: mail, advanced, returncodes, filter, filter-groups, <option>

http://www.duplicati.com/ Version: - 2.0.4.5_beta_2018-11-28

$ 

```

EDIT: Maybe sequence like the below is happening. I don’t have a Linux debugger, so can’t test this well::

> <https://github.com/duplicati/duplicati/blob/3608a36555a510b586684f12b52d3b11cf0ab105/Duplicati/Library/AutoUpdater/UpdaterManager.cs#L1104-L1104>

> <https://github.com/duplicati/duplicati/blob/3608a36555a510b586684f12b52d3b11cf0ab105/Duplicati/Library/Utility/Utility.cs#L1454-L1457>

> <https://github.com/duplicati/duplicati/blob/3608a36555a510b586684f12b52d3b11cf0ab105/Duplicati/Library/Utility/Utility.cs#L1388-L1399>

EDIT 2:

The correct handling isn’t obvious. The escaping was added as a bug fix. Right parties can look at these:

[Fixed the updater to use the argument escaping code from utilities.](https://github.com/duplicati/duplicati/commit/b42ab42e57ac8683422fcfd8f0c96a548caa0a19)

[Autoupdater process spawning error arguments #2891](https://github.com/duplicati/duplicati/issues/2891)

---

_[View the full topic](https://forum.duplicati.com/t/bug-regular-expression-filter-operator-or-does-not-work-inside-parenthesis/7950)._
