我想在bash -c构造中运行别名。除非expand_aliases shell选项是使用shopt设置的,否则在shell不具有交互性时不会展开别名。在本例中,为什么在显式设置hi时找不到别名expand_aliases?hello'bash: hi: command not found
我在运行GNU bash, version 5.0.0(1)-release (x86_64-
wsl -h显示以下内容: --exec, -e <CommandLine> Execute the specified command without using the default Linuxshell.
-- Pass the remaining command line as is.“不使用默认的Linuxshell”是什么意思(即,如果不使用默认的shell,它还将使用什么?)。此外,作为示例,我现在有三种可能