aboutsummaryrefslogtreecommitdiff
path: root/shell/ash.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
| * unicode: check $LC_CTYPE too to detect Unicode modeDenys Vlasenko2013-07-051-0/+1
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * unicode: check $LC_ALL to detect Unicode mode, not only $LANGDenys Vlasenko2013-07-021-1/+5
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * ash,hush: history builtinFlemming Madsen2013-04-071-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta show_history - 39 +39 builtin_history - 16 +16 historycmd - 13 +13 bltins1 312 324 +12 builtintab 336 344 +8 popstring 134 140 +6 hush_main 1048 1046 -2 ash_main 1398 1396 -2 size_from_HISTFILESIZE 44 40 -4 ------------------------------------------------------------------------------ (add/remove: 3/0 grow/shrink: 3/3 up/down: 94/-8) Total: 86 bytes Signed-off-by: Flemming Madsen <busybox@themadsens.dk> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* | ash: add noconsole option to hide console window on WIN32Ron Yorston2013-05-241-0/+15
| | | | | | | | | | | | When a shell script is spawned from a GUI application a console window is displayed. If the noconsole option is set the console window is hidden.
* | ash: Add a very small timeout to nonblocking waitRon Yorston2013-05-031-1/+1
| | | | | | | | | | | | | | | | | | | | A nonblocking waitpid was implemented using WaitForMultipleObjects with a timeout of 0. This was to fix an issue where builtin commands in a foreground shell were blocked while a background command was running. However, this caused the shell to consume 100% CPU. A workaround seems to be to use a very small (1ms) timeout.
* | sh: only change to user's home directory in login modeRon Yorston2013-04-041-1/+7
| |
* | ash: remove old commentRon Yorston2013-03-261-2/+0
| |
* | Merge branch 'busybox' into mergeRon Yorston2013-03-191-35/+26
|\|
| * ash: add comment about failures in source builtin. No code changes.Denys Vlasenko2013-03-171-0/+6
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * ash: read $HOME/.profile instead of $(pwd)/.profileStefan Hellermann2013-03-151-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | ash --login should read ~/.profile instead of .profile in the current directory. I noticed it while trying to figure out why /root/.profile is only read sometimes. function old new delta ash_main 1374 1398 +24 Signed-off-by: Stefan Hellermann <stefan@the2masters.de> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * ash: move code to allow setting $HOME in /etc/profileStefan Hellermann2013-03-151-13/+9
| | | | | | | | | | | | | | | | | | | | move HISTFILE=$HOME/.ash_history below reading /etc/profile, so that /etc/profile can set $HOME. HOME can be unset when directly invoking ash --login from init without going through getty. Signed-off-by: Stefan Hellermann <stefan@the2masters.de> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * move endofname() to libbbDenys Vlasenko2013-02-261-21/+3
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* | Merge branch 'busybox' into mergeRon Yorston2013-02-071-3/+14
|\|
| * ash: revert wrong "fix" for an apparent memory leak. Closes 5822Denys Vlasenko2013-01-171-0/+9
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * whitespace cleanup. no code changesDenys Vlasenko2013-01-141-3/+5
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* | Merge branch 'busybox' into mergeRon Yorston2012-12-111-0/+2
|\|
| * ash: fix a memory leakJon Tollefson2012-11-131-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The script which triggers the leak: while true do while true do break; done</dev/null done Signed-off-by: Jon Tollefson <kniht@linux.vnet.ibm.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* | Merge branch 'busybox' into mergeRon Yorston2012-10-101-9/+32
|\|
| * ash: implement export -nDenys Vlasenko2012-10-011-4/+26
| | | | | | | | | | | | | | function old new delta exportcmd 129 175 +46 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * ash: trivial fixes for compile failuresDenys Vlasenko2012-09-251-5/+6
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* | Merge branch 'busybox' into mergeRon Yorston2012-09-071-16/+28
|\| | | | | | | | | | | Conflicts: include/libbb.h shell/ash.c
| * ash: fix "read -s" + ^C. Closes 5504Denys Vlasenko2012-09-061-0/+5
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * ash: add a comment about VEXPORTDenys Vlasenko2012-07-071-0/+4
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * ash: fix a bug in >${varexp} handling. Closes 5282Denys Vlasenko2012-06-091-10/+13
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* | ash: set working directory and environment on first startupRon Yorston2012-04-261-24/+21
| |
* | ash: Only change slashes in environment on first invocationRon Yorston2012-04-241-7/+7
| |
* | ash: omit non-MinGW for choosing whether to forkRon Yorston2012-04-201-1/+2
| |
* | Detect and execute shell scripts based on presence of '#!'Ron Yorston2012-04-171-2/+13
| |
* | Switch a call to copyfd back to fcntl(F_DUPFD)Ron Yorston2012-04-031-1/+1
| |
* | Make fake fcntl(F_DUPFD) for WIN32Ron Yorston2012-04-031-15/+3
| |
* | ash: some fixes so busybox-w32 (almost) compiles on POSIXRon Yorston2012-04-031-3/+9
| |
* | Standardise preprocessor symbol to detect MINGW32 buildRon Yorston2012-03-231-1/+1
| |
* | Merge branch 'busybox' into mergeRon Yorston2012-03-231-3/+15
|\| | | | | | | | | Conflicts: Makefile.flags
| * ash: in standalone mode, search in $PATH if /proc/self/exe doesn't existDenys Vlasenko2011-12-201-3/+9
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * ash: document bash's exit code too. No code changesDenys Vlasenko2011-12-161-2/+2
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * ash: add comment about bash's ENOEXEC handling. No code changesDenys Vlasenko2011-12-161-0/+6
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* | Merge commit 'c0cae52662ccced9df19f19ec94238d1b1e3bd71' into mergeRon Yorston2012-03-231-1/+5
|\| | | | | | | | | | | Conflicts: Makefile.flags scripts/basic/fixdep.c
| * lineedit: add support for history saving on exitDenys Vlasenko2011-09-041-0/+4
| | | | | | | | | | | | Based on the patch by Dennis Groenen <tj.groenen@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * lineedit: fix atomic replace of history file; hush: fix $HISTFILE handlingDenys Vlasenko2011-09-041-1/+1
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* | Merge commit '56a3b82e9692a25ef9c9269e88feac0d579ce8e8' into mergeRon Yorston2012-03-221-4/+4
|\| | | | | | | | | | | | | Conflicts: coreutils/ls.c include/platform.h libbb/bb_basename.c
| * hush: make read builtin interruptible.Denys Vlasenko2011-05-081-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta builtin_read 185 471 +286 check_and_run_traps 200 262 +62 nonblock_immune_read 73 119 +46 sigismember - 44 +44 record_signal - 21 +21 sigisemptyset - 16 +16 ... ------------------------------------------------------------------------------ (add/remove: 5/0 grow/shrink: 7/5 up/down: 483/-46) Total: 437 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * libbb: nonblock_safe_read->nonblock_immune_read, remove unused param of ↵Denys Vlasenko2011-05-081-4/+4
| | | | | | | | | | | | xmalloc_reads Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* | Merge commit 'b83c9704128dd106071184e4b00335a3b8486857' into mergeRon Yorston2012-03-221-5/+13
|\|
| * ash: clear sa_flags alwaysIan Wienand2011-04-161-2/+7
| | | | | | | | | | Signed-off-by: Ian Wienand <ianw@vmware.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * ash,hush: optional support for $HISTFILESIZE.Denys Vlasenko2011-03-311-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | Based on patch from Alexey Fomenko (ext-alexey.fomenko AT nokia.com) function old new delta size_from_HISTFILESIZE - 44 +44 hush_main 998 1025 +27 ash_main 1348 1374 +26 read_line_input 3361 3372 +11 new_line_input_t 17 24 +7 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* | Merge commit '19311bfa7b8e8c6effa9c375de9b0eb4338bee12' into mergeRon Yorston2012-03-221-38/+66
|\| | | | | | | | | | | Conflicts: coreutils/ls.c shell/ash.c
| * ash,hush: recheck LANG before every line inputDenys Vlasenko2011-03-231-8/+15
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * ash/hush: shrink help textDenys Vlasenko2011-03-081-1/+1
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * remove stray empty lineDenys Vlasenko2011-03-071-1/+0
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * ash/hush: provide help textDenys Vlasenko2011-03-071-14/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | $ ./busybox ash --help BusyBox v1.19.0.git (2011-03-07 11:25:29 CET) multi-call binary. Usage: ash [-/+OPTCHARS] [-/+o OPTNAME]... [-c 'SCRIPT' [ARG0 [ARGS]] / SCRIPT_FILE [ARGS]] Unix shell interpreter $ ./busybox hush --help BusyBox v1.19.0.git (2011-03-07 11:25:29 CET) multi-call binary. Usage: hush [-nx] [-c 'SCRIPT' [ARG0 [ARGS]] / SCRIPT_FILE [ARGS]] Unix shell interpreter function old new delta packed_usage 28163 28212 +49 setcmd 85 78 -7 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/1 up/down: 49/-7) Total: 42 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>