我很好奇,可以嵌套多少个文件夹,为什么?有限制吗?
我所说的嵌套是指文件夹处于这种结构中时:
folder
|_ folder
|_ folder
|_ folder
|_ ...
Run Code Online (Sandbox Code Playgroud)
不是这样的:
folder
|_ folder
|_ folder
|_ folder
|_ ...
Run Code Online (Sandbox Code Playgroud)
如果有限制,是操作系统设置的,还是文件系统设置的?
我有一个 make 脚本来执行 3 个任务:
对于这些任务,脚本需要 3 个输入:
出于某种原因,每当我read输入时,它都会保存到正确的变量中,但内容是我保存它的变量名,没有第一个字母。我似乎无法找出它为什么会这样做。
这是Makefile:
SHELL := /bin/bash
default:
@echo "Welcome!";\
echo -n "Please enter the MySQL host (default: localhost):";\
read host;\
host=${host:-localhost};\
echo -n "Please enter the MySQL username:";\
read username;\
echo -n "Please enter the MySQL password:";\
read -s password;\
mv includes/config.php.example includes/config.php 2>/dev/null;true;\
sed 's/"USER", ""/"USER", "$(username)"/g' includes/config.php > includes/config.php;\
sed 's/"PASSWORD", ""/"PASSWORD", "$(password)"/g' includes/config.php > includes/conf$
echo $username;\
echo …Run Code Online (Sandbox Code Playgroud)