bp/tests/11-ordered-choice.sh
2021-08-28 14:26:32 -07:00

6 lines
314 B
Bash

# The ordered choice operator (/) picks the first choice that matches
# Example: bp -p '"cabaret"/"cab"' matches either "cabaret" or "cab"
# Note: if a match occurs, the options to the right will *never* be attempted,
# so bp -p '"cab"/"cabaret"' will always match "cab" instead of "cabaret"
bp -p '"foo" / "bar"'