ShellDialectFeatures Enum

Describes the optional syntax constructs a ShellDialect supports.

[Flags]
public enum ShellDialectFeatures

Fields

NameValueDescription
None0
ExtendedTest1The [[ ... ]] extended test construct.
ArithmeticCommand2The (( ... )) arithmetic command. POSIX defines no such command, so sh lacks it.
HereString4The <<< here-string redirection operator.
DollarQuoting8ANSI-C quoting ($'...') and locale-translated strings ($"...").
Arrays16Indexed and associative array assignments such as a=(1 2 3).
FunctionKeyword32The function keyword form of a function definition.
ProcessSubstitution64Process substitution: <(...) and >(...).
Coproc128The coproc keyword.
SelectLoop256The select loop.
ZshExtensions512The zsh foreach ... end loop and anonymous functions.
PipelineChainOperators1024The && and || pipeline chain operators (PowerShell 7 and later).
TernaryOperator2048The ternary ? : operator (PowerShell 7 and later).
NullCoalescing4096The ?? and ??= null-coalescing operators (PowerShell 7 and later).
CleanBlock8192The clean block in an advanced function (PowerShell 7.3 and later).
DelayedExpansion16384Delayed variable expansion using !VAR!.
ArithmeticExpansion32768The $(( ... )) arithmetic expansion. POSIX defines it, so every dialect in the family has it.
ArithmeticExponentiation65536The ** exponentiation operator in arithmetic. POSIX defines no such operator, so sh lacks it.