RTEMS | shell: Refactor variable expansion and add PATH support (!920)
Bhuvan B (@BhuvanB404)
gitlab at rtems.org
Sat Jan 17 05:53:54 UTC 2026
Bhuvan B created a merge request: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/920
Project:Branches: BhuvanB404/rtems:shell-path 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
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/920
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/20260117/b33a069b/attachment-0001.htm>
More information about the bugs
mailing list