[PATCH] commands: cd: implement support for cd - and $OLDPWD
Sascha Hauer
s.hauer at pengutronix.de
Fri Jan 23 00:18:27 PST 2026
On Tue, 20 Jan 2026 13:27:35 +0100, Ahmad Fatoum wrote:
> We have no $PWD an we would have to populate it globally, because all of
> barebox shares a single working directory. What we can easily do however
> is populate $OLDPWD to give shell scripts a way to resolve some
> artifacts relatively and then revert back to the original working
> directory, so implement that as well as cd -.
>
>
> [...]
Applied, thanks!
[1/1] commands: cd: implement support for cd - and $OLDPWD
https://git.pengutronix.de/cgit/barebox/commit/?id=11558f18b0fc (link may not be stable)
Best regards,
--
Sascha Hauer <s.hauer at pengutronix.de>
More information about the barebox
mailing list