Samples/fileio: Is this expected behavior while doing chmod?

RTEMS shell’s chmod command doesn’t interprets the mode as octal unless we prefix it with 0.
Therefore chmod 777 and chmod 0777 are different mode

This post might seems silly but in unix and linux systems chmod interprets the mode as octal by default.

Below is the output when running RTEMS shell

And below is output of my linux machine

Does changing to octal in the RTEMS shell produce the expected result i.e. changes the permissions?

yeah it does, I’ve attached screenshots

I don’t think this is expected. Updating the shell is badly needed. See Re-import shell commands (#5431) · Issues · RTEMS / RTOS / RTEMS · GitLab

1 Like

thank you, I’ll check it out. also are we trying to achieve same behaviour as unix like cmds.