RTEMS | shell: Refactor variable expansion and PATH search (!918)
Bhuvan B (@BhuvanB404)
gitlab at rtems.org
Fri Jan 16 20:37:34 UTC 2026
Bhuvan B created a merge request: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/918
Project:Branches: BhuvanB404/rtems:path-implementation to rtems/rtos/rtems:main
Author: Bhuvan B
## Summary
shell: Refactor variable expansion and PATH search
Improved the RTEMS shell by implementing POSIX-compliant variable expansion and efficient PATH searching.
Follows POSIX standards and uses Dash shell and Bash as reference.
\`\`\`shell
SHLL \[/\] # echo $PATH
SHLL \[/\] # setenv PATH /tmp
SHLL \[/\] # setenv PATH /bin
SHLL \[/\] # setenv PATH $PATH:/tmp
SHLL \[/\] # setenv PATH $PATH:/usr/bin
SHLL \[/\] # ls
app bin dev etc mnt sbin scripts usr
SHLL \[/\] # setenv PATH $PATH:/sbin\
\
SHLL \[/\] # echo $PATH
/bin:/tmp:/usr/bin:/sbin
SHLL \[/\] # ls /bin
myscript
SHLL \[/\] # joel myscript
Hello from script!
PATH test successful
<!--Default settings, if it is a dropdown it will set after submission-->
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/918
You're receiving this email because of your account on gitlab.rtems.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20260116/624a387c/attachment-0001.htm>
More information about the bugs
mailing list