Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/bash/18.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
支持大小写替换的bash的最低版本(包括次要版本)是什么?_Bash - Fatal编程技术网

支持大小写替换的bash的最低版本(包括次要版本)是什么?

支持大小写替换的bash的最低版本(包括次要版本)是什么?,bash,Bash,我指的是内置的bash字符串操作符${lowercase^^}和${uppercase,,}。我只是想知道支持它的最低版本是什么。谷歌搜索显示版本为4.x。但是什么是version.x?版本4.3.1还是4.0 似乎没有更改日志,它是在4.0中添加的。请参阅Bash源代码中的文件: This is a terse description of the new features added to bash-4.0 since the release of bash-3.2. As always,

我指的是内置的bash字符串操作符
${lowercase^^}
${uppercase,,}
。我只是想知道支持它的最低版本是什么。谷歌搜索显示版本为4.x。但是什么是version.x?版本4.3.1还是4.0


似乎没有更改日志,它是在4.0中添加的。请参阅Bash源代码中的文件:

This is a terse description of the new features added to bash-4.0 since
the release of bash-3.2.  As always, the manual page (doc/bash.1) is
the place to look for complete descriptions

... ...

hh. There are new case-modifying word expansions: uppercase (^[^]) and
    lowercase (,[,]).  They can work on either the first character or
    array element, or globally.  They accept an optional shell pattern
    that determines which characters to modify.  There is an optionally-
    configured feature to include capitalization operators.

它是在4.0中添加的。请参阅Bash源代码中的文件:

This is a terse description of the new features added to bash-4.0 since
the release of bash-3.2.  As always, the manual page (doc/bash.1) is
the place to look for complete descriptions

... ...

hh. There are new case-modifying word expansions: uppercase (^[^]) and
    lowercase (,[,]).  They can work on either the first character or
    array element, or globally.  They accept an optional shell pattern
    that determines which characters to modify.  There is an optionally-
    configured feature to include capitalization operators.

它是在4.0中添加的。请参阅Bash源代码中的文件:

This is a terse description of the new features added to bash-4.0 since
the release of bash-3.2.  As always, the manual page (doc/bash.1) is
the place to look for complete descriptions

... ...

hh. There are new case-modifying word expansions: uppercase (^[^]) and
    lowercase (,[,]).  They can work on either the first character or
    array element, or globally.  They accept an optional shell pattern
    that determines which characters to modify.  There is an optionally-
    configured feature to include capitalization operators.

它是在4.0中添加的。请参阅Bash源代码中的文件:

This is a terse description of the new features added to bash-4.0 since
the release of bash-3.2.  As always, the manual page (doc/bash.1) is
the place to look for complete descriptions

... ...

hh. There are new case-modifying word expansions: uppercase (^[^]) and
    lowercase (,[,]).  They can work on either the first character or
    array element, or globally.  They accept an optional shell pattern
    that determines which characters to modify.  There is an optionally-
    configured feature to include capitalization operators.


对于将来的此类问题,如果新闻文件没有提供答案(通常会提供答案),则是一个很好的资源。(关于如何处理这个问题,我有点意见分歧——建立一个知识库,里面有很多问题可以通过查阅变更日志或类似的容易找到的异地资源来回答,这并不能很好地利用人们的时间,但另一方面,目前提议的转移到超级用户close reason的做法似乎不太合适——这与pro有关编程,就像关于任何其他编程语言随时间变化的类似问题一样)。事实上,我在发布之前用谷歌搜索了很长一段时间。我找不到我要找的东西。在这里发布后的一分钟内,我得到了一个答案和一个我要找的答案。我理解这样的问题对一些人来说是不愉快的,但尽管如此,它既有用又满足了我的查询-从中你会得到什么“bash features by version”的第一个Google结果回答了您的问题。选择好的搜索字符串很重要。做得很好,您是Google的高手。对于将来的此类问题,如果新闻文件没有提供答案(通常会提供答案),这是一个很好的资源。(关于如何处理这个问题,我有点意见分歧——建立一个知识库,里面有很多问题可以通过查阅变更日志或类似的容易找到的异地资源来回答,这并不能很好地利用人们的时间,但另一方面,目前提议的转移到超级用户close reason的做法似乎不太合适——这与pro有关编程,就像关于任何其他编程语言随时间变化的类似问题一样)。事实上,我在发布之前用谷歌搜索了很长一段时间。我找不到我要找的东西。在这里发布后的一分钟内,我得到了一个答案和一个我要找的答案。我理解这样的问题对一些人来说是不愉快的,但尽管如此,它既有用又满足了我的查询-从中你会得到什么“bash features by version”的第一个Google结果回答了您的问题。选择好的搜索字符串很重要。做得很好,您是Google的高手。对于将来的此类问题,如果新闻文件没有提供答案(通常会提供答案),这是一个很好的资源。(关于如何处理这个问题,我有点意见分歧——建立一个知识库,里面有很多问题可以通过查阅变更日志或类似的容易找到的异地资源来回答,这并不能很好地利用人们的时间,但另一方面,目前提议的转移到超级用户close reason的做法似乎不太合适——这与pro有关编程,就像关于任何其他编程语言随时间变化的类似问题一样)。事实上,我在发布之前用谷歌搜索了很长一段时间。我找不到我要找的东西。在这里发布后的一分钟内,我得到了一个答案和一个我要找的答案。我理解这样的问题对一些人来说是不愉快的,但尽管如此,它既有用又满足了我的查询-从中你会得到什么“bash features by version”的第一个Google结果回答了您的问题。选择好的搜索字符串很重要。做得很好,您是Google的高手。对于将来的此类问题,如果新闻文件没有提供答案(通常会提供答案),这是一个很好的资源。(关于如何处理这个问题,我有点意见分歧——建立一个知识库,里面有很多问题可以通过查阅变更日志或类似的容易找到的异地资源来回答,这并不能很好地利用人们的时间,但另一方面,目前提议的转移到超级用户close reason的做法似乎不太合适——这与pro有关编程,就像关于任何其他编程语言随时间变化的类似问题一样)。事实上,我在发布之前用谷歌搜索了很长一段时间。我找不到我要找的东西。在这里发布后的一分钟内,我得到了一个答案和一个我要找的答案。我理解这样的问题对一些人来说是不愉快的,但尽管如此,它既有用又满足了我的查询-从中你会得到什么“bash features by version”的第一个Google结果回答了您的问题。选择好的搜索字符串很重要。做得很好,您是Google的高手。
新闻
就是我要找的。请注意:我正在运行
GNU bash,版本4.1.2(1)-发行版(x86_64-redhat-linux-GNU)
并在
man1bash
中搜索该描述,返回
找不到模式(按RETURN)
。事实上,手册页是我第一次查看的地方,我经常使用手册页。当然,我找到了
^
的文档。但我的问题是介绍了什么样的准确版本,而不是手册页(不幸的是)具有讽刺意味的是,在
/usr/share/doc/bash-4.1.2
下有一个
复制
文件,但没有
更改日志
,这是一个遗憾。
新闻
就是我要找的。只需注意:我正在运行
GNU bash,版本4.1.2(1)-发行版(x86\u 64-redhat-linux-GNU)
并在
man 1bash
中搜索该描述,返回
未找到模式(按RETURN)
。手册页位于fac中