[riot-commits] [RIOT-OS/RIOT] c50763: Use argc and argv in shell handlers

Christian Mehlis mehlis at inf.fu-berlin.de
Wed Feb 26 15:37:14 CET 2014


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: c507632e50548c7c34e19e96a6487dadc6ecc7fd
      https://github.com/RIOT-OS/RIOT/commit/c507632e50548c7c34e19e96a6487dadc6ecc7fd
  Author: René Kijewski <rene.kijewski at fu-berlin.de>
  Date:   2014-02-25 (Tue, 25 Feb 2014)

  Changed paths:
    M sys/include/ps.h
    M sys/include/shell.h
    M sys/shell/commands/sc_cc1100.c
    M sys/shell/commands/sc_disk.c
    M sys/shell/commands/sc_heap.c
    M sys/shell/commands/sc_id.c
    M sys/shell/commands/sc_ltc4150.c
    M sys/shell/commands/sc_mersenne.c
    M sys/shell/commands/sc_ps.c
    M sys/shell/commands/sc_rtc.c
    M sys/shell/commands/sc_sht11.c
    M sys/shell/commands/sc_sys.c
    M sys/shell/commands/sc_transceiver.c
    M sys/shell/commands/shell_commands.c
    M sys/shell/shell.c

  Log Message:
  -----------
  Use argc and argv in shell handlers

Compare #708.

Now the tokenization of an input line is done by the shell itself. You
may quote arguments with `"..."`. Empty arguments, supplied by `""` are
preserved. Spaces in between arguments are squasheds; spaces inside
quotes are preserved.

You cannot partially quote an argument. You must not use
- `cmd "abc`,
- `cmd abc"def"`, or
- `cmd "abc"def`.


  Commit: 829966ee32c3c7b7cbc2f6bcfbc02976bc6af414
      https://github.com/RIOT-OS/RIOT/commit/829966ee32c3c7b7cbc2f6bcfbc02976bc6af414
  Author: René Kijewski <rene.kijewski at fu-berlin.de>
  Date:   2014-02-25 (Tue, 25 Feb 2014)

  Changed paths:
    M sys/shell/shell.c
    M tests/test_shell/main.c

  Log Message:
  -----------
  Print error message on any quoting error


  Commit: 0eb7597ab19bd40e9648cdfc4c5e46b6f0880bc5
      https://github.com/RIOT-OS/RIOT/commit/0eb7597ab19bd40e9648cdfc4c5e46b6f0880bc5
  Author: René Kijewski <rene.kijewski at fu-berlin.de>
  Date:   2014-02-25 (Tue, 25 Feb 2014)

  Changed paths:
    M examples/ccn-lite-client/main.c
    M examples/rpl_udp/demo.h
    M examples/rpl_udp/helper.c
    M examples/rpl_udp/rpl.c
    M examples/rpl_udp/udp.c

  Log Message:
  -----------
  Convert examples


  Commit: 28c4ef45f703ea5a9fd3545abd22c9cdeed40a6c
      https://github.com/RIOT-OS/RIOT/commit/28c4ef45f703ea5a9fd3545abd22c9cdeed40a6c
  Author: René Kijewski <rene.kijewski at fu-berlin.de>
  Date:   2014-02-26 (Wed, 26 Feb 2014)

  Changed paths:
    M sys/shell/shell.c

  Log Message:
  -----------
  Do not skip over the null terminator


  Commit: 9d9f114f42f5c02a44d31bdf28ee014500582d3d
      https://github.com/RIOT-OS/RIOT/commit/9d9f114f42f5c02a44d31bdf28ee014500582d3d
  Author: Christian Mehlis <mehlis at inf.fu-berlin.de>
  Date:   2014-02-26 (Wed, 26 Feb 2014)

  Changed paths:
    M examples/ccn-lite-client/main.c

  Log Message:
  -----------
  shell: adapt register prefix command to new shell api


  Commit: a5c0518e0e9c49c6f1f60ec6fcf03d554fbd8529
      https://github.com/RIOT-OS/RIOT/commit/a5c0518e0e9c49c6f1f60ec6fcf03d554fbd8529
  Author: René Kijewski <rene.kijewski at fu-berlin.de>
  Date:   2014-02-26 (Wed, 26 Feb 2014)

  Changed paths:
    M sys/shell/commands/sc_rtc.c

  Log Message:
  -----------
  Fix _settime_handler


  Commit: 5cab0ea68a7dcde946787c8d752a8493b93982df
      https://github.com/RIOT-OS/RIOT/commit/5cab0ea68a7dcde946787c8d752a8493b93982df
  Author: René Kijewski <kijewski at mi.fu-berlin.de>
  Date:   2014-02-26 (Wed, 26 Feb 2014)

  Changed paths:
    M examples/ccn-lite-client/main.c

  Log Message:
  -----------
  Merge pull request #3 from mehlis/shell-args-prefix

shell: adapt register prefix command to new shell api


  Commit: 92eaa51f5c132404a5ccc8718b7051218b9c3fe0
      https://github.com/RIOT-OS/RIOT/commit/92eaa51f5c132404a5ccc8718b7051218b9c3fe0
  Author: Christian Mehlis <mehlis at inf.fu-berlin.de>
  Date:   2014-02-26 (Wed, 26 Feb 2014)

  Changed paths:
    M examples/ccn-lite-client/main.c
    M examples/rpl_udp/demo.h
    M examples/rpl_udp/helper.c
    M examples/rpl_udp/rpl.c
    M examples/rpl_udp/udp.c
    M sys/include/ps.h
    M sys/include/shell.h
    M sys/shell/commands/sc_cc1100.c
    M sys/shell/commands/sc_disk.c
    M sys/shell/commands/sc_heap.c
    M sys/shell/commands/sc_id.c
    M sys/shell/commands/sc_ltc4150.c
    M sys/shell/commands/sc_mersenne.c
    M sys/shell/commands/sc_ps.c
    M sys/shell/commands/sc_rtc.c
    M sys/shell/commands/sc_sht11.c
    M sys/shell/commands/sc_sys.c
    M sys/shell/commands/sc_transceiver.c
    M sys/shell/commands/shell_commands.c
    M sys/shell/shell.c
    M tests/test_shell/main.c

  Log Message:
  -----------
  Merge pull request #760 from Kijewski/shell-args

shell: Use argc and argv in shell handlers


Compare: https://github.com/RIOT-OS/RIOT/compare/e536d706e2b8...92eaa51f5c13


More information about the commits mailing list