Helix Core Server wildcards
For commands that operate on sets of files, Helix Core Server supports two wildcards.
Wildcard | Description |
---|---|
|
Matches anything except slashes. Matches only within a single directory. Case sensitivity depends on your platform. |
|
Matches anything including slashes. Matches recursively (everything in and below the specified directory). |
Helix Core Server wildcards can be used with local or Helix Core Server syntax, as in the following examples:
Expression | Matches |
---|---|
|
Files in the current directory starting with |
|
All files called |
|
All files under the current directory and its subdirectories. |
|
All files under the current directory and its subdirectories,
that end in |
|
All files under |
|
All files in the workspace or depot that is named
|
|
All files in the depot named |
|
All files in all depots. |
The *
wildcard is expanded locally by the operating system
before the command is sent to the Helix Core Server. To prevent the local operating system from expanding the
*
wildcard, enclose it in quotes or precede it with a
backslash.
The ...
wildcard cannot be used with the p4
add
command. The ...
wildcard is expanded
by the Helix Core Server, and, because the service cannot determine which files are being
added, it can’t expand the wildcard. The *
wildcard can be
used with p4 add
, because it is expanded by the
operating system shell and not by
Helix Core Server.