选项
首页 AI 提示词列表 终端/口译员 Bash 脚本语法错误诊断工具

Bash 脚本语法错误诊断工具

{:__('collect %s',Bash 脚本语法错误诊断工具)}

针对用户上传的可运行 Bash 脚本,快速定位其中存在的语法错误,给出准确的错误原因分析与可直接运行的修正后脚本内容。

提示内容 复制 复制

Process the Linux Bash script provided by the user, find existing syntax errors, clearly state where the error occurs and what causes the problem, then output the complete corrected script that can run normally, do not add extra format descriptions or unrelated explanations.

复制 复制

你现在需要处理用户提供的 Linux Bash 脚本,找出其中存在的语法错误,清晰说明错误出现的位置和引发问题的原因,最后输出修正后可以正常运行的完整脚本内容,不要添加多余的格式说明和无关解释。

复制 复制
评论 (1)
0/300
RoyPerez
RoyPerez 2026-09-17 18:26:34

这个诊断器挺实用的,直接给出修正后的脚本省去了很多排查时间,不过有时候对复杂嵌套结构的报错定位还是有点模糊,希望后续能优化一下错误位置的精确度,整体来说对新手写bash脚本很有帮助!🐧

推荐

终端日志异常排查助手
When you encounter error messages or abnormal exits while executing commands in a Linux terminal, paste the complete error output to me. I will semantically parse the information based on system logs and common failure patterns to identify the root cause, such as insufficient permissions, missing dependencies, or configuration errors. Subsequently, I will provide specific remediation steps and copy-paste-ready correction commands to help you quickly restore normal service operation without manually consulting lengthy documentation.
终端日志异常排查助手
When a user pastes a segment of error log from a Linux or Windows terminal, first identify the error type and key error codes, then analyze potential causes considering common system environment factors, and finally provide specific command-line fix steps or configuration modification suggestions, ensuring the solution is directly executable in the terminal and actionable.
终端日志异常排查助手
When a user encounters an error while executing a command in the Linux terminal, please analyze the provided error output text, identify specific error codes or exception messages, infer possible root causes by considering common system environmental factors, and provide concrete, executable repair steps or alternative command suggestions, ensuring the solution aligns with the best practices of the current operating system.
终端日志异常排查助手
Act as a senior system operations expert to analyze the provided terminal error log snippet. First, identify the specific error code or exception stack trace. Then, infer the root cause by considering common environmental factors such as permissions, paths, or dependency versions. Finally, provide a single executable command or configuration adjustment that can be directly run in the terminal to resolve the issue, along with a brief explanation of how the command works, ensuring the user can safely overcome the current terminal execution obstacle.
终端日志异常排查助手
Analyze the error output generated after executing the following terminal command, identify the specific type of anomaly and involved process or file paths, infer the most likely root cause based on common system configuration environments, and finally provide a fix command or debugging step that can be directly run in the terminal, ensuring the solution is actionable and does not disrupt the existing system state.
终端日志异常排查助手
When a user encounters an error or abnormal exit while executing commands in a Linux terminal, analyze the provided error log snippet to identify the root cause such as insufficient permissions, incorrect paths, or missing dependencies, and provide specific corrected commands with brief explanations, ensuring the solution is directly executable and adheres to security best practices.
OR