小编Aar*_*sau的帖子

可以嵌套多少个目录?

我很好奇,可以嵌套多少个文件夹,为什么?有限制吗?

我所说的嵌套是指文件夹处于这种结构中时:

folder
 |_ folder
     |_ folder
         |_ folder
             |_ ...
Run Code Online (Sandbox Code Playgroud)

不是这样的:

folder
 |_ folder
 |_ folder
 |_ folder
 |_ ...
Run Code Online (Sandbox Code Playgroud)

如果有限制,是操作系统设置的,还是文件系统设置的?

linux filesystems directory mkdir

13
推荐指数
1
解决办法
1672
查看次数

`read` 命令在 Makefile 中不起作用

我有一个 make 脚本来执行 3 个任务:

  1. 导入 MySQL 数据库
  2. 移动配置文件
  3. 配置配置文件

对于这些任务,脚本需要 3 个输入:

  1. MySQL主机
  2. 用户名
  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)

shell make variable

5
推荐指数
2
解决办法
7121
查看次数

标签 统计

directory ×1

filesystems ×1

linux ×1

make ×1

mkdir ×1

shell ×1

variable ×1