Junbo-Zheng opened a new pull request, #1821:
URL: https://github.com/apache/nuttx-apps/pull/1821

   ## Summary
   Added `-h` options support for `ls` nsh command
   
   Signed-off-by: Junbo Zheng <[email protected]>
   
   ## Impact
   N/A
   
   ## Testing
   config: ./tools/configure.sh sim:nsh
   CONFIG_LIBC_FLOATINGPOINT=y
   ```
   nsh> ls -l /dev
   /dev:
    crw-rw-rw-       0 console
    crw-rw-rw-       0 gpio0
    crw-rw-rw-       0 gpio1
    crw-rw-rw-       0 gpio2
    crw-rw-rw-       0 gpio3
    crw-rw-rw-       0 loop
    crw-rw-rw-       0 null
    crw-rw-rw-       0 oneshot
    brw-rw-rw- 1048576 ram0
    brw-rw-rw-    1024 ram1
    brw-rw-rw-  524288 ram2
    crw-rw-rw-       0 zero
   nsh> ls /lh /dev
   nsh: ls: too many arguments
   nsh> ls -lh /dev
   /dev:
    crw-rw-rw-       0 console
    crw-rw-rw-       0 gpio0
    crw-rw-rw-       0 gpio1
    crw-rw-rw-       0 gpio2
    crw-rw-rw-       0 gpio3
    crw-rw-rw-       0 loop
    crw-rw-rw-       0 null
    crw-rw-rw-       0 oneshot
    brw-rw-rw-    1.0M ram0
    brw-rw-rw-    1.0K ram1
    brw-rw-rw-  512.0K ram2
    crw-rw-rw-       0 zero
   ```
   
   config: ./tools/configure.sh ../vendor/sim/boards/miwear/configs/miwear -j16
   ```
   nsh> ls -l /resource/misc/media
   /resource/misc/media:
    -rwxrwxr-x  384044 AlexaTimer.wav
    -rwxrwxr-x   57001 AlexaReminder.mp3
    -rwxrwxr-x  384132 AlexaAlarm.wav
    -rw-rw-r--   20733 Clank.mp3
    -rw-rw-r--   45183 NotificationXylophone.mp3
    -rw-rw-r--   27420 Robot.mp3
    -rw-rw-r--   21986 FadeIn.mp3
    -rw-rw-r--   42049 Flute.mp3
    -rw-rw-r--  362748 Latona-15s.mp3
    drwxrwxr-x    4096 .
    -rw-rw-r--   47198 alarm_volume_adjust.mp3
    -rw-rw-r--   95338 Expect.mp3
    drwxrwxr-x    4096 ..
    -rw-rw-r--  409435 Sunrise.mp3
    -rw-rw-r--   55841 Fresh.mp3
    -rw-rw-r--   36685 Bells-1s.mp3
    -rw-rw-r--    4432 camera_click.mp3
    -rw-rw-r--  469621 MiRemix.mp3
   nsh>
   nsh> ls -lh /resource/misc/media
   /resource/misc/media:
    -rwxrwxr-x  375.0K AlexaTimer.wav
    -rwxrwxr-x   55.7K AlexaReminder.mp3
    -rwxrwxr-x  375.1K AlexaAlarm.wav
    -rw-rw-r--   20.2K Clank.mp3
    -rw-rw-r--   44.1K NotificationXylophone.mp3
    -rw-rw-r--   26.8K Robot.mp3
    -rw-rw-r--   21.5K FadeIn.mp3
    -rw-rw-r--   41.1K Flute.mp3
    -rw-rw-r--  354.2K Latona-15s.mp3
    drwxrwxr-x    4.0K .
    -rw-rw-r--   46.1K alarm_volume_adjust.mp3
    -rw-rw-r--   93.1K Expect.mp3
    drwxrwxr-x    4.0K ..
    -rw-rw-r--  399.8K Sunrise.mp3
    -rw-rw-r--   54.5K Fresh.mp3
    -rw-rw-r--   35.8K Bells-1s.mp3
    -rw-rw-r--    4.3K camera_click.mp3
    -rw-rw-r--  458.6K MiRemix.mp3
   ```
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to