1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
Commit Graph

37 Commits

Author SHA1 Message Date
René Kijewski
97593e9f05 shell: add myself to authors 2014-03-10 18:17:05 +01:00
René Kijewski
a1df6a86bb shell: don't ignore IO errors 2014-03-10 13:48:00 +01:00
René Kijewski
3f289760bf shell: accept UTF8 input 2014-03-10 13:47:33 +01:00
René Kijewski
03e174ed96 Allow escaped characters in shell
Per #708.

This patch allows escaped characters in the shell, and makes the
apostrophe a quotation mark. The escape character is backslash.

The term "escape character" is used liberally in here: if a backslash is
encountered in the command line, the next character will be taken
verbatim. No escape sequences are understood, i.e. `"\n"` is just the
letter `n`, not a new line.
2014-02-26 18:09:46 +01:00
René Kijewski
28c4ef45f7 Do not skip over the null terminator 2014-02-26 13:21:25 +01:00
René Kijewski
829966ee32 Print error message on any quoting error 2014-02-25 17:54:17 +01:00
René Kijewski
c507632e50 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`.
2014-02-25 17:54:17 +01:00
Martin Lenders
df83221983 Hotfix for error introduced in #678 2014-02-18 22:44:00 +01:00
Christian Mehlis
33239487bf shell: remove useless copying of input string 2014-02-10 15:41:04 +01:00
René Kijewski
891245cf60 Allow Mac linebreaks in shell
QEMU uses Mac style newlines in its UART implementation.
This change allows Unix ("\n"), DOS ("\r\n") and Mac ("\r") style
linebreaks.
2014-01-27 19:25:03 +01:00
Martin Lenders
68f7b9090e Make shell buffer size a shell property 2013-12-20 11:10:50 +01:00
Oleg Hahm
903ec54a43 making include directives consistent 2013-12-19 15:31:37 +01:00
LudwigOrtmann
1442170d41 Merge pull request #300 from kaspar030/shell_refactor
shell: refactor default shell command handling
2013-12-03 04:44:59 -08:00
6634c56830 shell: fix compile warning and add some comments 2013-12-02 17:36:58 +01:00
Ludwig Ortmann
d6c213fb47 fix grammar in license header 2013-11-23 13:11:56 +01:00
Christian Mehlis
84e73ae324 clean up shell 2013-11-14 10:45:24 +01:00
Christian Mehlis
bb85cb33d9 shell: dont't use malloc on each line 2013-11-14 10:45:24 +01:00
3be2a3227a shell: refactor default shell command handling
before, we actually duplicated code for handling of shell commands
supplied to shell_init and those hardcoded by MODULE_SHELL_COMMANDS.

This patch refactors shell.c find_handler and print_help so there's
no duplicated code.
2013-11-04 17:06:50 +01:00
Oliver Hahm
c8bee9e554 fixed coding style (space after most keywords) 2013-06-24 22:37:35 +02:00
Oliver Hahm
5c52e1ce2e coding conventions for most of system libraries 2013-06-22 05:11:53 +02:00
Ludwig Ortmann
dfeae74661 lose > before output, prompt when ready for input 2013-03-18 15:37:32 +01:00
Oleg Hahm
2277b366b2 * removed outdated occurrences of (u|µ)kleos and FeuerWare 2013-03-07 20:51:26 +01:00
Oliver Hahm
551d684155 Merge branch 'master' of ssh://ukleos.org:2222/home/git/ukleos 2012-02-24 14:49:58 +01:00
Oliver Hahm
0d6d3e2c43 [board msba2-common] [sys chardev_thread] [sys shell] [driver cc110x_ng] [core msg]
* some cosmetics and cleanups
2012-02-16 21:33:41 +01:00
Oliver Hahm
961b4df179 [core cib] [projects default] [sys shell]
* fixed some minor issues found by splint
2012-02-14 14:49:45 +01:00
Oliver Hahm
1eec8e170e * introduced flashrom driver for msb430
* restructured some files concerning flashrom access
* added some ifdefs to shell commands
2010-12-03 22:22:58 +01:00
Oleg
ac6d4788eb * added ltc4150 shell command
* cosmetics in ltc4150 driver
2010-11-05 23:43:14 +01:00
Oleg
416029d2c0 * changed default project from "hello-world" to "default"
* increased main priority to the half of maximum priority
* introduced define for minimum stack size
* decreased stack size for uart0 thread
* merged commands for rtc shell module to one command (date)
* cleanup of header includes
2010-11-05 19:33:45 +01:00
Oliver Hahm
c389518a09 * shell_commands can be added as a module to user defined shell commands 2010-11-04 19:06:46 +01:00
Oliver Hahm
3b218ec24a * changed API for rtc
* added drivers directory to doxygen file
* added missing include to sht11 header
* added rtc and sht11 support to default project
* added rtc to auto_init
* added rtc and sht11 support to shell
2010-11-04 18:16:39 +01:00
07681a1914 * shell: added help,
* shell: fixed default shell commands
2010-11-04 15:05:51 +01:00
126304cd48 * shell: strtok workaround 2010-11-03 13:53:11 +01:00
5a4524539d * misc shell improvements 2010-11-02 17:23:10 +01:00
58bf287751 * misc fixes 2010-10-25 15:38:22 +02:00
59d72c7d6a * shell: removed hashmap dependency. shell is now O(n) 2010-10-01 15:24:43 +02:00
b8ca7edac8 * refactored uart / chardev handling 2010-09-30 15:10:39 +02:00
315f99af16 * shell fixes, refactoring 2010-09-28 13:39:59 +02:00