Bash变量:是否区分大小写? [英] Bash variables: case sensitive or not?
本文介绍了Bash变量:是否区分大小写?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
bash shell脚本是否区分大小写?
Is bash shell scripting case sensitive?
变量 date
是否与 DATE
相同?
推荐答案
是的,它与UNIX的其余部分一样区分大小写. $ date
和 $ DATE
是两个不同的变量. makefile
和 Makefile
是两个不同的文件. -h
和 -H
是两个不同的标志(通常).
Yes, it is case sensitive, just like the rest of UNIX. $date
and $DATE
are two different variables. makefile
and Makefile
are two different files. -h
and -H
are two distinct flags (usually).
这篇关于Bash变量:是否区分大小写?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文