Errors in shell_adv()

未关闭
#808 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
28/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
java, shell
领域
cli

调研方向

从 config.txt:311 和 shell_adv() 入口点开始,然后重现报告中的可执行文件、find 和输出重定向命令。将它们的行为与在 Minecraft 外部运行相同命令时的行为进行比较,并确定失败是由路径查找还是 shell 解析造成的。当报告中的命令能够通过 shell_adv() 正确执行时,即视为完成。

由索引模型根据 Issue 内容生成。

描述

feature request

CMDHELPER-2803 - Reported by RobotoRaccoon

Many issues with locating files within directories. These all worked fine in commandline outside of Minecraft.
Was told to submit this in IRC, so apologies for lack of important details, if any.

IOException: Cannot run program "./printSchematics.sh": error=2, No such file or directory
<

>:/data/minecraft/1.5-lobby/plugins/CommandHelper/config.txt:311

shell_adv('./printSchematics.sh')

ShellException: find: >': No such file or directory find: /home/steam/minecraft/SharedServerFiles/Schematics/deliciousfiles.txt': No such file or directory

shell_adv('find . > /home/steam/minecraft/SharedServerFiles/Schematics/deliciousfiles.txt')

And so on in that fashion for attempts like:

shell_adv('ls -1 * >dump.txt')

主要语言
Java
星标
129
派生
70
平均合并
1 分钟
30 天内合并 PR
1

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

EngineHub/CommandHelper 的其他 Issue

查看 EngineHub/CommandHelper 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。