Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
apps/nshlib/cmd_cd: Modify the logic of cd
Modify the implementation logic of changing directory. There's an error handling the path incluing "../" or "./" bug examples: nsh> cd proc/self/group nsh> cd ../.. nsh: cd: chdir failed: 2 nsh> pwd /proc/self nsh> ls /proc/self: status cmdline stack group/ nsh> cd ./group nsh: cd: chdir failed: 2 Signed-off-by: zhengyu9 <[email protected]>
- Loading branch information