Bash Script Properties File Using '.' in Variable Name

前端 未结 3 1948
说谎
说谎 2021-01-18 23:13

I\'m new to bash scripting and have a question about using properties from a .properties file within a bash script.

I have seen a bash properties file that uses\'.\'

3条回答
  •  离开以前
    2021-01-18 23:47

    No can do. The bash manual says this about variable names:

    name

    A word consisting solely of letters, numbers, and underscores, and beginning with a letter or underscore. Names are used as shell variable and function names. Also referred to as an identifier.

    Dots not allowed.

提交回复
热议问题