Hi all,
I was trying to install STM32CubeProgrammer from ST’s script. It errors out because it can’t find ‘chdir’ command.
I can’t find it either.
I do have ‘man chdir’.
Should tumbleweed have it?
Yast doesn’t have it…
Kind regards
Pedro
Hi all,
I was trying to install STM32CubeProgrammer from ST’s script. It errors out because it can’t find ‘chdir’ command.
I can’t find it either.
I do have ‘man chdir’.
Should tumbleweed have it?
Yast doesn’t have it…
Kind regards
Pedro
depends on shell, could be builtin cd
and/or chdir
manual chdir(2) it’s about “System calls (functions provided by the kernel)”
Thanks for your reply.
I’ll try and get a list of dependencies for STM32CubeProgrammer Installer…
Kind regards
Pedro
It not only “could be”, it “should be”.
Your working directory is kept as a process environment variable (PWD
). Thus when a separate program cd
(or chdir
) would be used, that program would run as a child process (with the new PWD
), then it would exit and pfttttt. A parent process is never influenced by a child process and thus would still have the same PWD
.
Thus only setting PWD
to a new value inside the current process will give you what is intended. Thus the builtin.
No idea how that’s connected with “chdir” command not found.
I’m not TS, and thus can’t help you with that.
I only explained that cd
should/must be a builtin of the shell. And not “could be” as you posted.
That the chdir
command is not found is not a surprise. I know of no Unix/Linux shell that has it. It seems to be something peculiar to the software the OP is running.
I did not ask for any help BTW.
@pedroSMS Hi you need to install glibc-devel for it to find the include which provides unistd.h (and chdir).
I only explained that
cd
should/must be a builtin of the shell. And not “could be” as you posted.
“could” referred to “could be A, could be B”, not to “command could be builtin”, sorry for my poor linguistic skills
I did not ask for any help BTW
good
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.