126 Star 0 Fork 12

src-openEuler / ksh

 / 详情

ksh对不存在的path处理时,会提示“builtin: xyz: not found”

已完成
缺陷
创建于  
2022-01-22 11:37

【标题描述】能够简要描述问题:说明什么场景下,做了什么操作,出现什么问题(尽量使用正向表达方式)
ksh对不存在的path处理时,会提示“builtin: xyz: not found”
【环境信息】
虚拟机
输入图片说明
【问题复现步骤】
1、构造/ tmp / path_skip脚本

mkdir -p /tmp/usr/bin
print '#!/bin/sh' >/tmp/usr/bin/cd
print 'builtin cd "$@"' >>/tmp/usr/bin/cd
prefix=/tmp/ksh.$$

FPATH=$prefix/functions
mkdir -p "$FPATH"
print 'function cd { echo "Function cd called with |$*|"; command cd "$@"; }' >$prefix/functions/cd
typeset -fu cd

PATH="$PATH:/tmp/usr/bin:/tmp/bin" # fails
#PATH="$PATH:/tmp/usr/bin" # works

set -x
cd /usr
pwd

2、运行ksh /tmp/path_skip xyz
出现概率(是否必现,概率性错误)
必现
【预期结果】
输入图片说明
【实际结果】
输入图片说明
【附件信息】
可参考

评论 (1)

likechiguoguo 创建了缺陷

Hi likechiguoguo, welcome to the openEuler Community.
I'm the Bot here serving you. You can find the instructions on how to interact with me at Here.
If you have any questions, please contact the SIG: Base-service, and any of the maintainers: @chenjialong , @yanan-rock , @朱春意 , @syyhao , @谢志鹏 , @hanxinke , @Monday , @BigSkySea , @hexiaowen , @zhujianwei001

openeuler-ci-bot 添加了
 
sig/Base-service
标签
likechiguoguo 修改了描述
ltx 里程碑设置为openEuler-22.03-LTS-Next-AT
桐小哥 负责人设置为renxichen
renxichen 通过src-openeuler/ksh Pull Request !13任务状态待办的 修改为已完成

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(2)
5329419 openeuler ci bot 1632792936
1
https://gitee.com/src-openeuler/ksh.git
git@gitee.com:src-openeuler/ksh.git
src-openeuler
ksh
ksh

搜索帮助