Passing a vertical bar in filename codes?

I would like to separate filenames with a vertical bar in {allfile}, but {allfile|sep=|} does not work. Can the vertical bar be escaped or expressed with a different code?

I don't think so, but a script could generate the same thing.

What are you trying to do, though? The pipe character would not work as a separator for most command line tools since it would cause output redirection when run from a command prompt. It would be an unusual choice if a tool requires it between filepaths.

I am trying to pass filenames to grepWin, which actually accepts vertical bars on the command line (needed for the regex). It is indeed a bit unusual. The command line works as a frontend for the GUI, it fills out the fields and then optionally presses the OK button.

I could use PERL instead of grepWin, but sometimes it's nice to have a GUI.

We've made it so {allfile|sep=|} will work from version 12.9.2.

1 Like