Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: aix机器上执行有全局变量的作业报错,not found #3276

Open
liuliaozhong opened this issue Nov 1, 2024 · 2 comments
Open
Assignees
Labels
backlog 需求初始状态,等待产品进行评估 kind/bug 程序故障Bug,漏洞

Comments

@liuliaozhong
Copy link
Collaborator

Version / Branch / tag
3.8.x, all

出了什么问题?(What Happened?)
aix机器上默认没有bash解释器,执行作业的时候,如果作业中有全局变量,即使用户脚本申明的解释器为:#!/bin/ksh,封装脚本中依旧是:#!/bin/bash,执行失败。
用户脚本:
image
wrapper脚本:
image
报错信息:
image

如何复现?(How to reproduce?)

预期结果(What you expect?)
能正常执行

@liuliaozhong liuliaozhong added kind/bug 程序故障Bug,漏洞 backlog 需求初始状态,等待产品进行评估 labels Nov 1, 2024
@liuliaozhong liuliaozhong self-assigned this Nov 1, 2024
@liuliaozhong
Copy link
Collaborator Author

image
可以先判断下用户脚本有没有申明解释器,优先用户脚本申明的解释器,没有就默认使用/bin/bash

@wangyu096
Copy link
Collaborator

需求合理,可以改造下

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog 需求初始状态,等待产品进行评估 kind/bug 程序故障Bug,漏洞
Projects
None yet
Development

No branches or pull requests

2 participants