nuttx-apps/nshlib
zhengyu9 697e3bed0a 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 <zhengyu9@xiaomi.com>
2024-10-17 18:06:48 +08:00
..
CMakeLists.txt nsh:support wait command to wait task exit. 2024-10-02 21:13:54 +08:00
Kconfig nsh: support watch command 2024-10-17 18:06:32 +08:00
Make.defs
Makefile nsh:support wait command to wait task exit. 2024-10-02 21:13:54 +08:00
nsh.h nsh: support watch command 2024-10-17 18:06:32 +08:00
nsh_alias.c toolchain/ghs: Fix green hills toolchain build Vela warnings 2024-09-28 10:47:32 +08:00
nsh_altconsole.c
nsh_builtin.c nsh:support $! get last pid use nsh run 2024-09-28 11:28:15 +08:00
nsh_codeccmd.c
nsh_command.c nsh: support watch command 2024-10-17 18:06:32 +08:00
nsh_console.c
nsh_console.h nshlib: Fix stack-buffer-overflow of nsh_redirect() 2024-10-13 15:48:57 +08:00
nsh_consolemain.c
nsh_dbgcmds.c
nsh_ddcmd.c nshlib: support dd with conv=notrunc,nocreat 2024-09-30 14:16:40 +08:00
nsh_envcmds.c
nsh_fileapps.c nsh:support $! get last pid use nsh run 2024-09-28 11:28:15 +08:00
nsh_fscmds.c nshlib/cmd_cat: Avoid casting -1 to size_t as count of nsh_write() 2024-10-17 08:55:51 +08:00
nsh_fsutils.c apps/nshlib/cmd_cd: Modify the logic of cd 2024-10-17 18:06:48 +08:00
nsh_init.c
nsh_login.c
nsh_mmcmds.c
nsh_mntcmds.c
nsh_modcmds.c
nsh_netcmds.c
nsh_parse.c nshlib/nsh_parse: support use \\ to pass '\' to argument 2024-10-16 10:21:30 +08:00
nsh_passwdcmds.c
nsh_printf.c
nsh_proccmds.c nshlib: fix top command sorting result error 2024-10-17 00:00:51 +08:00
nsh_prompt.c
nsh_routecmds.c netlib/setroute: fix dhcpd stack-overflow when calls netlib_set_dripv4addr with debug info-level 2024-08-26 01:54:46 +08:00
nsh_script.c nshlib: enable O_CLOEXEC explicit to avoid potential fd leak 2024-09-23 08:34:16 +08:00
nsh_session.c
nsh_syscmds.c nsh_syscmds/rpmsg: include <nuttx/rpmsg/rpmsg.h> to fix compile error 2024-10-11 14:59:22 +08:00
nsh_system.c
nsh_telnetd.c
nsh_telnetlogin.c
nsh_test.c
nsh_timcmds.c nsh: support watch command 2024-10-17 18:06:32 +08:00
nsh_usbconsole.c
nsh_usbtrace.c
nsh_vars.c
nsh_wait.c nsh:support wait command to wait task exit. 2024-10-02 21:13:54 +08:00
rc.sysinit.template
rcS.template