代码拉取完成,页面将自动刷新
【标题描述】能够简要描述问题:说明什么场景下,做了什么操作,出现什么问题(尽量使用正向表达方式)
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
出现概率(是否必现,概率性错误)
必现
【预期结果】
【实际结果】
【附件信息】
可参考
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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
登录 后才可以发表评论