What is indirect expansion? What does ${!var*} mean?

前端 未结 5 1565
野趣味
野趣味 2020-11-22 05:28

I\'m reading \"Bash Guide for Beginners\". It says:

If the first character of PARAMETER is an exclamation point, Bash uses the

5条回答
  •  野趣味
    野趣味 (楼主)
    2020-11-22 06:19

    You can refer to this GNU doc for bash for authoritative information

    https://www.gnu.org/software/bash/manual/html_node/Shell-Parameter-Expansion.html#Shell-Parameter-Expansion

    But basically, indirect expansion is not performed on ${!prefix*} as one of the exceptions, in your example, N is the prefix.

    The Document will explain what indirect expansion is in bash

提交回复
热议问题