Correct Bash and shell script variable capitalization

前端 未结 7 1840
太阳男子
太阳男子 2020-11-21 22:54

I run across many shell scripts with variables in all caps, and I\'ve always thought that there is a severe misunderstanding with that. My understanding is that, by convent

7条回答
  •  渐次进展
    2020-11-21 23:43

    Actually, the term "environment variables" seems to be of fairly recent coinage. Kernighan and Pike in their classic book "The UNIX Programming Environment", published in 1984, speak only of "shell variables" - there is not even an entry for "environment" in the index!

提交回复
热议问题