小编han*_*xue的帖子

鱼壳的条件

我正在浏览鱼壳教程,发现这个简单的 if-else 块不起作用

if grep fish /etc/shells
            echo Found fish
else if grep bash /etc/shells
            echo Found bash
else
            echo Got nothing
end
Run Code Online (Sandbox Code Playgroud)

错误信息:

/usr/bin/fish
Found fish
fish: global root block
fish: Could not locate end of block. The 'end' command is missing, misspelled or
a ';' is missing.

       end - end a block of commands.
Run Code Online (Sandbox Code Playgroud)

shell shell-script fish

3
推荐指数
1
解决办法
757
查看次数

如何将粘滞位添加到 exFAT 中的目录?

Homebrew尝试在 MacOS 10.10.5 上的 exFAT 文件系统上构建应用程序时出现此错误

Error: parent directory is world writable but not sticky
Run Code Online (Sandbox Code Playgroud)

我用这个命令启用了sticky-bit,但是好像没有任何效果

$ chmod +t /Volumes/exFAT/tmp
Run Code Online (Sandbox Code Playgroud)

filesystems chmod sticky-bit exfat

0
推荐指数
1
解决办法
269
查看次数

标签 统计

chmod ×1

exfat ×1

filesystems ×1

fish ×1

shell ×1

shell-script ×1

sticky-bit ×1