Gregory Nutt
bb6877ed78
apps/nshlib: Fix compile error when CONFIG_NSH_DISABLESCRIPT is not defined. The field np_flags does not exist if scripting is disabled.
2018-01-22 08:32:40 -06:00
Gregory Nutt
ef353ed632
Fix parsing of empty strings when CONFIG_NSH_CMDPARMS is not defined. Problem noted by Juha Niskanen.
2017-10-27 06:41:26 -06:00
Bruno Herrera
3fe720d1e2
Fixes for problems found by Coverity in the apps/ repository:
...
nshlib/nsh_parse.c: Avoid truncating the strcmp result into a unsigned char variable.
nshlib/nsh_netcmds.c: Check for valid hostip before using it.
nshlib/nsh_ddcmd.c: Fix resouce leak when 'if=' or 'of=' params are repeated in the command line. For example:
dd if=/dev/null if=/dev/zero of=/dev/null or
dd if=/dev/zero of=/dev/zero of=/dev/null
2017-09-25 07:34:34 -06:00
Gregory Nutt
1cdf4ad8d1
Fix a warning found in build testing
2017-08-12 11:14:30 -06:00
David Sidrane
35cf98d4df
Print expanded variables if -x
2017-04-05 18:31:47 -06:00
Gregory Nutt
2ef46ce4ba
NSH library: In nsh_argexand(), if CONFIG_NSH_ARGCAT is defined but CONFIG_NSH_CMDPARMS defined and/or CONFIG_DISABLE_ENVIRON not defined, then there is a situation that causes an infinite loop in the parser. Noted by Freddie Chopin.
2017-03-09 08:07:22 -06:00
Gregory Nutt
bab5df0966
Eliminate a warning about an unused variable.
2017-02-27 07:30:52 -06:00
Sebastien Lorquet
2cbad44f1d
This is the Pokemon patch to change all includes fronm <apps/bla/bla.h> to "bla/bla.h"
2016-07-11 10:11:18 -06:00
Gregory Nutt
0e76ca7474
Move apps/include/nsh.h to apps/include/nshlib/nshlib.h
2016-07-01 06:59:23 -06:00
Gregory Nutt
5098539063
Add _ to front of remaining debug macros
2016-06-16 12:12:34 -06:00
Gregory Nutt
586b0aa7e0
Change names of *dbg() * *err()
2016-06-11 15:51:27 -06:00
Gregory Nutt
93d9d5e4ca
apps/nshlib: All NSH sessions may now be protected with passwords stored in the encrypted /etc/passwd file
2016-01-20 14:42:39 -06:00
Gregory Nutt
3dad8a29a2
NSH now supports an MOTD string that will be presented after the greeting
2016-01-20 11:18:08 -06:00
Gregory Nutt
7f5a7a07a5
Costmetic alignment
2016-01-17 08:12:51 -06:00
Gregory Nutt
b5c5055c41
NSH: Remove partial implementation of the use of IOBJ/IPTR in NSH. There are some complications
2016-01-17 07:53:52 -06:00
Gregory Nutt
16ed293417
Revert "Revert "NSH: All nsh_output strings tagged with IOBJ so that they may be stored in FLASH on AVR""
...
This reverts commit fd083ee981
.
2016-01-17 07:41:51 -06:00
Gregory Nutt
fd083ee981
Revert "NSH: All nsh_output strings tagged with IOBJ so that they may be stored in FLASH on AVR"
...
This reverts commit cb6a914d08
.
2016-01-17 07:39:17 -06:00
Gregory Nutt
cb6a914d08
NSH: All nsh_output strings tagged with IOBJ so that they may be stored in FLASH on AVR
2016-01-05 16:38:50 -06:00
Gregory Nutt
23075e0b30
Allow NSH date command with no RTC. This command is useful without an RTC too. Also, this permits testing on the simulator which never has an RTC
2015-04-11 12:13:18 -06:00
Gregory Nutt
131b8c5946
Move CONFIG_NSH_TMPDIR to CONFIG_LIBC_TMPDIR
2014-11-05 07:49:20 -06:00
Gregory Nutt
ddc799d049
Fix some cloned errors in SAM GPIO interrupt setup
2014-07-07 15:54:37 -06:00
Gregory Nutt
58424404f0
NSH: if # appears on line, need to comment ignore additinal commands on the line
2014-07-01 13:43:40 -06:00
Gregory Nutt
05d21a62e7
Updates to the serialrx example from Bob Doison
2014-04-22 09:31:25 -06:00
Gregory Nutt
138f6a627e
Fix version number display in NSH prompt
2014-03-23 13:10:05 -06:00
Gregory Nutt
95a646b8d0
QEMU i486: New QEMU keyboard and VGA drivers from Lizhuoyi
2014-03-08 09:24:24 -06:00
Gregory Nutt
2bc6d67866
unlink/rm can now be used on nodes in the pseudo-filesystem. There is new configuration option to suppress these costly and mostly useless operations on the pseudo-filesystem
2014-02-20 18:14:02 -06:00
Gregory Nutt
c4c49ffbb3
More changes for a correct NSH Windows natvie build
2014-02-07 10:56:24 -06:00
Gregory Nutt
612d8ed14c
NSH: Add a break command; if-then-else and looping behavior can not be configured out of the build for small systems that need minimal scripting capability
2014-01-18 09:39:16 -06:00
Gregory Nutt
45121c8709
NSH: Loosen up if-then-else-fi syntx so that a command can be on the same line as the 'then' and 'else' tokens. This allows, as an example, 'if true; then echo true; else echo false; fi' which is much more bash-like
2014-01-17 18:03:23 -06:00
Gregory Nutt
cfb7c77ed3
NSH: Add support for while-do-done and until-do-done loops
2014-01-17 15:56:32 -06:00
Gregory Nutt
97e1d8b535
Add true and false commands; repartition some logic to better support forthcoming looping
2014-01-17 13:24:44 -06:00
Gregory Nutt
dd9c8ab4f9
NSH: Fix redirection of output to a file. That was broken with recent changes
2014-01-16 07:30:15 -06:00
Gregory Nutt
b889cae796
Cosmetic clean-up in preparation for TCP write buffering change
2014-01-13 08:21:18 -06:00
Gregory Nutt
3698289943
Recent NSH changes broke the minimal NSH configuration
2014-01-12 18:09:19 -06:00
Gregory Nutt
5cc656d71d
Fix a memory leak in last NSH change: Forgot to close a temporary file
2014-01-12 14:16:05 -06:00
Gregory Nutt
b034b169fb
NSH can not handle command arguments that are concatenations of constant strings, command output, application program output, and environment varaible values.
2014-01-11 13:18:12 -06:00
Gregory Nutt
65b4921b23
Back quoted NSH arguments now functional
2014-01-11 09:50:54 -06:00
Gregory Nutt
d499f287ad
Add support for backquoated commands as command arguments
2014-01-10 18:42:24 -06:00
Gregory Nutt
09d0aa815d
NSH parser: Separate logic that executes a command into a separate function
2014-01-10 16:15:14 -06:00
Gregory Nutt
819a4b5779
NSH: Separate command line parsing from command execution. Add support for multiple, semicolone separated commands on each line
2014-01-10 15:23:26 -06:00
Gregory Nutt
564143dba8
NSH: Add an option to the mkfatfs command to specify FAT12, FAT16, or FAT32
2013-12-05 18:12:11 -06:00
Gregory Nutt
74b0933088
Add skip= and count= options to the NSH hexdump command. From Ken Pettit
2013-11-01 07:15:14 -06:00
Gregory Nutt
28915376e5
Fix some delroute errors
2013-10-05 10:34:38 -06:00
Gregory Nutt
ff88e86ef2
Add NSH addroute and delroute commands
2013-10-05 15:42:20 -06:00
Gregory Nutt
2050443d5e
Remove some warnings
2013-10-01 12:10:09 -06:00
Gregory Nutt
f6e948fa04
More improvements to the minimal NSH when there is no file system and when print fieldwidths are suppressed
2013-10-01 11:52:35 -06:00
Gregory Nutt
c4e46f5b62
Changes to NSH and readline to permit NSH to work on a platform with no file system
2013-09-30 11:34:04 -06:00
Gregory Nutt
8d7ab4ba99
NSH cmp command by Andrew Twidgell
2013-07-18 08:24:29 -06:00
Gregory Nutt
cadc8bf98f
Add -h option to NSH git command; And NSH mksmartfs command. From Ken Petit
2013-04-30 18:03:04 -06:00
patacongo
dd90abae95
More LPC1788 changes from Rommel Marcelo + a few kernel build fixes
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5715 42af7a65-404d-4744-a932-0658087f49c3
2013-03-07 01:52:30 +00:00