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

The subshell does not recognize the path path. #1486

Open
haitang002 opened this issue Nov 16, 2020 · 0 comments
Open

The subshell does not recognize the path path. #1486

haitang002 opened this issue Nov 16, 2020 · 0 comments

Comments

@haitang002
Copy link

Here is the use case

cd /root

vi k.sh
#!/bin/ksh
export PATH=.:$PATH:/root/mybin
cur = $(cd /root/mybin; pwd)

ls

cp /bin/ls /root/mybin

This shell script will not be able to execute the last ls; not found ls;
When you comment out the cur line, you can find ls

But there is no problem with this branch: https://github.com/ksh-community/ksh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant