ShellDialectFeatures Enum
Describes the optional syntax constructs a ShellDialect supports.
[Flags]
public enum ShellDialectFeaturesFields
| Name | Value | Description |
|---|---|---|
None | 0 | |
ExtendedTest | 1 | The [[ ... ]] extended test construct. |
ArithmeticCommand | 2 | The (( ... )) arithmetic command. POSIX defines no such command, so sh lacks it. |
HereString | 4 | The <<< here-string redirection operator. |
DollarQuoting | 8 | ANSI-C quoting ($'...') and locale-translated strings ($"..."). |
Arrays | 16 | Indexed and associative array assignments such as a=(1 2 3). |
FunctionKeyword | 32 | The function keyword form of a function definition. |
ProcessSubstitution | 64 | Process substitution: <(...) and >(...). |
Coproc | 128 | The coproc keyword. |
SelectLoop | 256 | The select loop. |
ZshExtensions | 512 | The zsh foreach ... end loop and anonymous functions. |
PipelineChainOperators | 1024 | The && and || pipeline chain operators (PowerShell 7 and later). |
TernaryOperator | 2048 | The ternary ? : operator (PowerShell 7 and later). |
NullCoalescing | 4096 | The ?? and ??= null-coalescing operators (PowerShell 7 and later). |
CleanBlock | 8192 | The clean block in an advanced function (PowerShell 7.3 and later). |
DelayedExpansion | 16384 | Delayed variable expansion using !VAR!. |
ArithmeticExpansion | 32768 | The $(( ... )) arithmetic expansion. POSIX defines it, so every dialect in the family has it. |
ArithmeticExponentiation | 65536 | The ** exponentiation operator in arithmetic. POSIX defines no such operator, so sh lacks it. |