Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/bash/15.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
Mac.bash_配置文件双引号(笔直和卷曲)_Bash_Macos_Terminal - Fatal编程技术网

Mac.bash_配置文件双引号(笔直和卷曲)

Mac.bash_配置文件双引号(笔直和卷曲),bash,macos,terminal,Bash,Macos,Terminal,运行aliasbb时,我遇到了错误 . .bash_profile -bash: alias: off: not found -bash: alias: =: not found -bash: alias: “open: not found -bash: alias: -e: not found -bash: alias: .bash_profile”: not found 在进一步投资时,我发现这是由于mac中双引号自动从直引号更改为卷曲引号的方式。 因此,我将Mac的键盘首选项更改为“直

运行aliasbb时,我遇到了错误

. .bash_profile 
-bash: alias: off: not found
-bash: alias: =: not found
-bash: alias: “open: not found
-bash: alias: -e: not found
-bash: alias: .bash_profile”: not found
在进一步投资时,我发现这是由于mac中双引号自动从直引号更改为卷曲引号的方式。 因此,我将Mac的键盘首选项更改为“直接引号”,现在aliasbp工作正常


我想知道为什么卷曲引号在bash中不起作用,我花了一段时间才弄明白这个问题。

来界定字符串,而不是排版。它们将被视为另一个字符。

您不妨问问为什么不能用一对
%
引用字符串;直接引用是
bash
所期望的。@Andrew Medico和其他人,这个问题结束时说“这是一个无法再复制的问题,或者是一个简单的印刷错误”。事实上,首先,这个问题可以被复制,即使是一个印刷错误,也不是一个“简单的”我和我的同事花了将近一个小时来思考到底发生了什么,我们不是新手。