Commit Graph

17 Commits

Author SHA1 Message Date
Juha Niskanen
052a7009b3 Merged in juniskane/apps_upstream/echo_fix_pr (pull request #135)
apps/nshlib: Fix echo command with zero arguments, broken after commit 8ecf618

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2018-04-19 04:12:51 +00:00
Gregory Nutt
d96c236b31 Revert "apps/nshlib: restore space delimiter that was removed in last change to the NSH echo command."
This reverts commit 7cdf9b07d8.
2018-01-10 07:53:03 -06:00
Gregory Nutt
7cdf9b07d8 apps/nshlib: restore space delimiter that was removed in last change to the NSH echo command. 2018-01-10 07:46:24 -06:00
Masayuki Ishikawa
8ecf618a4d apps/nshlib: Add support for '-n' option to the echo command. 2018-01-10 07:26:20 -06:00
Gregory Nutt
775d1052a5 NSH set command: Eliminate useless argc check of SCRIPTS are enabled but ENVIRONMENT is disabled 2017-04-09 12:03:18 -06:00
Gregory Nutt
169bcab331 NSH: Eliminate warning about unused variable. 2017-04-09 11:54:59 -06:00
David Sidrane
d03aa9112e Added support for set [{+|-}{e|x|xe|ex}] [<name> <value>]
Set the 'exit on error control' and/or 'print a trace' of commands when parsing scripts in NSH.  The settinngs are in effect from the point of exection, until they are changed again, or in the case of the init script, the settings are returned to the default settings when it exits.

Included child scripts will run with the parents settings and changes made in the child script will effect the parent on return.

Use 'set -e' to enable and 'set +e' to disable (ignore) the exit condition on commands. The default is -e. Errors cause script to exit.

Use 'set -x' to enable and 'set +x' to disable (silence) printing a trace of the script commands as they are ececuted. The default is +x. No printing of a trace of script commands as they are executed.
2017-04-05 18:25:59 -06:00
Gregory Nutt
082b452016 Move string trimming logic in nsh_fsutils.c as nsh_trimspaces() 2015-11-28 15:01:00 -06:00
Gregory Nutt
f2ea88fc9e NSH: Like bash, NSH set command should strip off any leading or trailing whitespace 2015-11-23 11:18:32 -06:00
Gregory Nutt
e9447c6058 Standardize nameing of the pre-processor definitiongs group header 2015-10-02 14:06:11 -06:00
Gregory Nutt
dfeb2b1910 README and other cosmetic updates 2014-01-04 08:38:05 -06:00
Gregory Nutt
4bb75f9a3f More ARMv7-A files that are just copies of the ARMv4/5 files for now 2013-07-19 11:43:04 -06:00
patacongo
1b756ca24e Improve NFS retry logic
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4845 42af7a65-404d-4744-a932-0658087f49c3
2012-06-14 23:27:02 +00:00
patacongo
f392209c72 NSH now uses the new Telnet daemon and built-in tasks started by NSH can be used over Telnet
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4361 42af7a65-404d-4744-a932-0658087f49c3
2012-02-02 16:04:09 +00:00
patacongo
75ce6ddea3 Fix error in strrch()
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3501 42af7a65-404d-4744-a932-0658087f49c3
2011-04-13 22:47:04 +00:00
patacongo
a05c1d4bc2 Update documentation, change CONFIG_EXAMPLES_NSH to CONFIG_NSH
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3394 42af7a65-404d-4744-a932-0658087f49c3
2011-03-18 20:35:31 +00:00
patacongo
4923fdabc1 Move NSH to apps/ as library
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3393 42af7a65-404d-4744-a932-0658087f49c3
2011-03-18 19:46:25 +00:00