21 ms·
Are the case modification and @operator in ksh also? @Q is the one I use on occasion.
by joveian 5y ago
Are the case modification and @operator in ksh also? @Q is the one I use on occasion.
- adrian_b 5y agoThere are a lot of uses for "@", most of which come from Bourne sh or from ksh. I assume that you refer to the "${PARAMETER@OPERATOR}" type of parameter expansion, which is mostly used to either replace invocations of tr for character conversions or to provide quoted strings. You are right that this kind of parameter expansion is specific to bash and I was wrong when I have said that there are no bash specific parameter expansions. "${PARAMETER@OPERATOR}" is the only exception that was introduced by bash and which has not been taken from the Bourne or Korn shells. I have forgotten about it, because I do not use it, precisely because it is the parameter expansion variant that is provided only by bash.