Sascha Hauer
14eb082606
hush: remove include/hush.h
...
Everything in include/hush.h is only used in hush.c, so remove
the header file.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-10-22 11:17:25 +02:00
Sascha Hauer
420a3173f0
commands: remove maxargs
...
No need to check for maximum argument counts. The commands are
safe to be called with more arguments, so lets safe some bytes.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-10-19 16:18:33 +02:00
Sascha Hauer
87e01f28cc
commands: return COMMAND_ERROR_USAGE
...
instead of calling u_boot_cmd_usage in each command to safe
space.
Signed-off-by: Sascha Hauer <sha@pengutronix.de>
2009-10-19 10:18:52 +02:00
Sascha Hauer
ef7ff70ca4
consolidate command calling in execute_command
...
Signed-off-by: Sascha Hauer <sha@pengutronix.de>
2009-10-19 10:18:51 +02:00
Sascha Hauer
d81251712c
hush: pass return code from exit command
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-09-25 13:34:27 +02:00
Sascha Hauer
4596d2b6f9
hush: Only run list if it's not empty
...
Running empty lists lead to the wrong return status
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-09-25 13:34:22 +02:00
Sascha Hauer
8d36379153
hush: Fix quoting
...
This patch removes adding of an additional \ when doing
echo "\""
which gives \" instead of just "
I checked in latest busybox hush and this code is still present there,
but it behaves correctly in busybox due to some other code pathes I
didn't investigate.
If this change has any unwanted side effects feel free to flame on me
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-11-10 17:54:15 +01:00
Sascha Hauer
2b729e45b4
hush: fix compiler warning
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-08-26 11:40:51 +02:00
Sascha Hauer
50cc8c5412
Subject: [PATCH] [general] Fixed constant strings in data section issue
...
For practical reasons I changed all string literals assumed to be constant
to reside in .rodata subsection at end of .text section.
Signed-off-by: Carsten Schlote <schlote@vahanus.net>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-04-04 14:45:04 +02:00
Sascha Hauer
f0aa2fcd09
replace debug_printf with debug in hush.c
2008-03-09 23:06:20 +01:00
Sascha Hauer
187847b2b4
add globbing support
2008-03-09 22:35:38 +01:00
Juergen Beisert
8fe25ecf12
adding various doku
2007-11-08 12:01:52 +01:00
Juergen Beisert
30e09b83d5
shell info added
2007-10-19 21:35:46 +02:00
Juergen Beisert
44630acd4a
hush doc added
2007-10-19 21:07:43 +02:00
Sascha Hauer
400b0abab2
hush.c: split high-density "if(x) something"; into two lines
2007-10-01 23:35:33 +02:00
Sascha Hauer
ee5847aac7
hush.c: get_local_var() is used only once, put it into the function
...
where it is called
2007-10-01 23:28:00 +02:00
Sascha Hauer
c1ab45e56d
fix indention in hush.c
2007-10-01 23:19:18 +02:00
Sascha Hauer
a14c000d59
remove comment about glob in hush.c. We do not use glob
2007-10-01 23:17:27 +02:00
Sascha Hauer
53d327d834
fix indention in hush.c
2007-10-01 23:15:52 +02:00
Sascha Hauer
f4f3479f13
fix indention in hush.c
2007-10-01 23:13:21 +02:00
Sascha Hauer
67c7e6eb6f
fix indention in hush.c
2007-10-01 23:12:34 +02:00
Sascha Hauer
27bf8f1dea
set last_return_code to rcode and not 1 or 0
2007-09-27 17:10:14 +02:00
Sascha Hauer
79ed00ba92
pass file size from read_file
2007-09-27 16:33:35 +02:00
Sascha Hauer
5efc6836b7
hush.c: use xrealloc instead of realloc to save some bytes
2007-09-26 13:57:18 +02:00
Sascha Hauer
fb441a11a0
hush.c: use xzalloc instead of xmalloc to save some bytes
2007-09-26 13:55:01 +02:00
Sascha Hauer
00c65e44ca
hush.c: Remove wrong free() of ctx->pipe->progs. After breaking out
...
of the while loop ctx->pipe is invalid, so we cannot dereference
ctx->pipe->progs.
2007-09-26 13:53:17 +02:00
Sascha Hauer
8f1559034a
remove extern declaration of console_buffer
2007-09-26 13:50:55 +02:00
Sascha Hauer
97cf2a9805
fix indention
2007-09-25 13:47:47 +02:00
Sascha Hauer
21281ac59a
remove hack from hush which did the wrong thing
2007-09-25 13:47:15 +02:00
Sascha Hauer
603ccc2378
add $# handling for hush
2007-09-25 13:42:33 +02:00
Sascha Hauer
ddfa0c174e
remove debug printf
2007-09-24 16:59:07 +02:00
Sascha Hauer
3cbc5c5c12
remove u-boot command paramter flag
2007-09-24 12:31:08 +02:00
Sascha Hauer
b0615cc909
- add 'source' command
...
- add help text for 'source' and 'sh'
2007-09-24 12:06:52 +02:00
Sascha Hauer
14b5c2a647
- teach hush to honour PATH variable
...
- remove common/main.c. This is now handled in the different shells.
2007-09-24 01:40:06 +02:00
Sascha Hauer
0aab147904
fix indention
2007-09-23 23:35:32 +02:00
Sascha Hauer
ecc1ee6602
allow arguments to be passed to scripts
2007-09-23 23:26:31 +02:00
Sascha Hauer
a7f5dd903e
unifdef __U_BOOT__ in hush.c
2007-09-22 18:08:18 +02:00
Sascha Hauer
fe2d505d4d
svn_rev_481
...
make more char * const, fix compiler warnings
2007-07-05 18:01:58 +02:00
Sascha Hauer
b2b81e2f63
svn_rev_424
2007-07-05 18:01:52 +02:00
Sascha Hauer
5f9cd32802
svn_rev_392
...
- remove u_boot_hush_start()
- remove u_boot_hush_reloc()
- remove repeatable commands
- do not use local variable handling anymore
2007-07-05 18:01:49 +02:00
Sascha Hauer
a87f0a7f18
svn_rev_353
2007-07-05 18:01:46 +02:00
Sascha Hauer
f0c67c6581
svn_rev_283
...
add xfuncs
2007-07-05 18:01:39 +02:00
Sascha Hauer
112ada667b
svn_rev_270
...
WIP FS support
2007-07-05 18:01:38 +02:00
Sascha Hauer
a5bf47e33a
svn_rev_207
...
move several config options to kconfig
2007-07-05 18:01:33 +02:00
Sascha Hauer
a8421600d1
svn_rev_152
...
remove global data gd_t and board info bd_t entirely for arm
2007-07-05 18:01:28 +02:00
Sascha Hauer
162484b83c
svn_rev_003
...
remove all #if 0 and #if 1
2007-07-05 18:01:13 +02:00
Wolfgang Denk
d87080b721
GCC-4.x fixes: clean up global data pointer initialization for all boards.
2006-03-31 18:32:53 +02:00
Wolfgang Denk
77ddac9480
Cleanup for GCC-4.x
2005-10-13 16:45:02 +02:00
Wolfgang Denk
e98f68be94
Fix uninitialized variable problem in hush shell
...
Patch by Lars Rostock, 26 Sep 2005
2005-09-28 01:49:47 +02:00
Wolfgang Denk
396387ab8d
Make bootretry feature work with hush shell.
...
Caveat: this currently *requires* CONFIG_RESET_TO_RETRY to be set, too.
Patch by Andreas Engel, 19 Jul 2005
2005-08-12 23:34:51 +02:00