Why is my bash script breaking on an empty space?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I have a shell script that is breaking on a space on line 42 between Virtualhost and the *. As a result, the only thing that is echo'd to console is <VirtualHost What I want to happen is for my entire string to be echo'd to the console. <VirtualHost *:80 > DocumentRoot /Applications/MAMP/htdocs/web ServerName web.localhost <Directory / Applications / MAMP / htdocs / web > Options Indexes FollowSymLinks MultiViews +Includes AllowOverride All Order allow,deny allow from all </Directory> </VirtualHost> Here is my script for reference: