2

Bash allows things like ${#string} (string length) or ${array[10]} (indexing array). There's many more forms than the above, for example ones for trimming, replacing, changing case, etc.

I've been unable to find a proper name for these. I've seen sources refer to these as "string manipulations" or "array manipulations", but I can't find any official source using these names.

The manual seems to do it's best to avoid naming these constructs at all.

Does anyone know a name for these sorts of constructs? (ones of the form ${....} used to manipulate strings and arrays.) Or at least an unofficial name I could Google?

Cyrus
  • 84,225
  • 14
  • 89
  • 153
CoffeeTableEspresso
  • 2,614
  • 1
  • 12
  • 30

1 Answers1

2

These are "parameter expansion" constructs.

See:

Charles Duffy
  • 280,126
  • 43
  • 390
  • 441