Rev |
Age |
Author |
Path |
Log message |
Diff |
Changes |
3811 |
5688 d 0 h |
post |
/trunk/uspace/app/bdsh/ |
exit should be a builtin, since it will eventually need to know about running jobs |
|
/trunk/uspace/app/bdsh/cmds/builtins/exit /trunk/uspace/app/bdsh/cmds/builtins/exit/exit.c /trunk/uspace/app/bdsh/cmds/builtins/exit/exit.h /trunk/uspace/app/bdsh/cmds/builtins/exit/exit_def.h
/trunk/uspace/app/bdsh/cmds/builtins/exit/quit.c /trunk/uspace/app/bdsh/cmds/builtins/exit/quit.h /trunk/uspace/app/bdsh/cmds/builtins/exit/quit_def.h /trunk/uspace/app/bdsh/cmds/modules/quit
/trunk/uspace/app/bdsh/Makefile /trunk/uspace/app/bdsh/cmds/builtins/builtins.h /trunk/uspace/app/bdsh/cmds/builtins/exit/entry.h /trunk/uspace/app/bdsh/cmds/modules/modules.h
|
3809 |
5688 d 0 h |
post |
/trunk/uspace/app/bdsh/ |
Eliminate 'restrict' from command structure, get rid of needless aliases.
Order of search is builtin -> module -> external, there is no need to
restrict commands to (non)interative shells only any longer. |
|
/trunk/uspace/app/bdsh/cmds/builtin_cmds.c /trunk/uspace/app/bdsh/cmds/builtins/builtin_aliases.h /trunk/uspace/app/bdsh/cmds/builtins/cd/cd_def.h /trunk/uspace/app/bdsh/cmds/cmds.h /trunk/uspace/app/bdsh/cmds/mod_cmds.c /trunk/uspace/app/bdsh/cmds/modules/cat/cat_def.h /trunk/uspace/app/bdsh/cmds/modules/cp/cp_def.h /trunk/uspace/app/bdsh/cmds/modules/help/help.c /trunk/uspace/app/bdsh/cmds/modules/help/help_def.h /trunk/uspace/app/bdsh/cmds/modules/ls/ls_def.h /trunk/uspace/app/bdsh/cmds/modules/mkdir/mkdir_def.h /trunk/uspace/app/bdsh/cmds/modules/module_aliases.h /trunk/uspace/app/bdsh/cmds/modules/pwd/pwd_def.h /trunk/uspace/app/bdsh/cmds/modules/quit/quit.c /trunk/uspace/app/bdsh/cmds/modules/quit/quit_def.h /trunk/uspace/app/bdsh/cmds/modules/rm/rm_def.h /trunk/uspace/app/bdsh/cmds/modules/sleep/sleep_def.h /trunk/uspace/app/bdsh/cmds/modules/touch/touch_def.h /trunk/uspace/app/bdsh/input.c
|
3413 |
5817 d 16 h |
post |
/trunk/uspace/app/bdsh/cmds/ |
Simplify entry types (and return values) for commands |
|
/trunk/uspace/app/bdsh/cmds/builtins/cd/cd.c /trunk/uspace/app/bdsh/cmds/builtins/cd/entry.h /trunk/uspace/app/bdsh/cmds/cmds.h /trunk/uspace/app/bdsh/cmds/modules/cat/cat.c /trunk/uspace/app/bdsh/cmds/modules/cat/entry.h /trunk/uspace/app/bdsh/cmds/modules/help/entry.h /trunk/uspace/app/bdsh/cmds/modules/help/help.c /trunk/uspace/app/bdsh/cmds/modules/ls/entry.h /trunk/uspace/app/bdsh/cmds/modules/ls/ls.c /trunk/uspace/app/bdsh/cmds/modules/mkdir/entry.h /trunk/uspace/app/bdsh/cmds/modules/mkdir/mkdir.c /trunk/uspace/app/bdsh/cmds/modules/pwd/entry.h /trunk/uspace/app/bdsh/cmds/modules/pwd/pwd.c /trunk/uspace/app/bdsh/cmds/modules/quit/entry.h /trunk/uspace/app/bdsh/cmds/modules/quit/quit.c /trunk/uspace/app/bdsh/cmds/modules/rm/entry.h /trunk/uspace/app/bdsh/cmds/modules/rm/rm.c /trunk/uspace/app/bdsh/cmds/modules/touch/entry.h /trunk/uspace/app/bdsh/cmds/modules/touch/touch.c
|
3377 |
5832 d 16 h |
post |
/trunk/uspace/app/bdsh/ |
Let 'cd' invoke cli_set_prompt(), no need to do it in every iteration of the main loop. |
|
/trunk/uspace/app/bdsh/cmds/builtins/cd/cd.c /trunk/uspace/app/bdsh/scli.c /trunk/uspace/app/bdsh/scli.h /trunk/uspace/app/bdsh/util.c /trunk/uspace/app/bdsh/util.h
|
3376 |
5833 d 20 h |
post |
/trunk/uspace/app/bdsh/ |
Just make cli_count_args() a function |
|
/trunk/uspace/app/bdsh/cmds/builtins/cd/cd.c /trunk/uspace/app/bdsh/cmds/modules/cat/cat.c /trunk/uspace/app/bdsh/cmds/modules/help/help.c /trunk/uspace/app/bdsh/cmds/modules/ls/ls.c /trunk/uspace/app/bdsh/cmds/modules/mkdir/mkdir.c /trunk/uspace/app/bdsh/cmds/modules/rm/rm.c /trunk/uspace/app/bdsh/cmds/modules/touch/touch.c /trunk/uspace/app/bdsh/util.c /trunk/uspace/app/bdsh/util.h
|
3373 |
5834 d 21 h |
post |
/trunk/uspace/app/bdsh/cmds/ |
Rename non-standard extensions (cmd.def -> cmd_def.h) |
|
/trunk/uspace/app/bdsh/cmds/builtins/cd/cd_def.h /trunk/uspace/app/bdsh/cmds/modules/cat/cat_def.h /trunk/uspace/app/bdsh/cmds/modules/help/help_def.h /trunk/uspace/app/bdsh/cmds/modules/ls/ls_def.h /trunk/uspace/app/bdsh/cmds/modules/mkdir/mkdir_def.h /trunk/uspace/app/bdsh/cmds/modules/pwd/pwd_def.h /trunk/uspace/app/bdsh/cmds/modules/quit/quit_def.h /trunk/uspace/app/bdsh/cmds/modules/rm/rm_def.h /trunk/uspace/app/bdsh/cmds/modules/touch/touch_def.h
/trunk/uspace/app/bdsh/cmds/builtins/cd/cd.def /trunk/uspace/app/bdsh/cmds/modules/cat/cat.def /trunk/uspace/app/bdsh/cmds/modules/help/help.def /trunk/uspace/app/bdsh/cmds/modules/ls/ls.def /trunk/uspace/app/bdsh/cmds/modules/mkdir/mkdir.def /trunk/uspace/app/bdsh/cmds/modules/pwd/pwd.def /trunk/uspace/app/bdsh/cmds/modules/quit/quit.def /trunk/uspace/app/bdsh/cmds/modules/rm/rm.def /trunk/uspace/app/bdsh/cmds/modules/touch/touch.def
/trunk/uspace/app/bdsh/cmds/builtins/builtins.h /trunk/uspace/app/bdsh/cmds/mknewcmd /trunk/uspace/app/bdsh/cmds/modules/modules.h
|
3371 |
5835 d 5 h |
post |
/trunk/uspace/app/bdsh/ |
pwd should be a module, not a builtin |
|
/trunk/uspace/app/bdsh/cmds/modules/pwd /trunk/uspace/app/bdsh/cmds/modules/pwd/entry.h /trunk/uspace/app/bdsh/cmds/modules/pwd/pwd.c /trunk/uspace/app/bdsh/cmds/modules/pwd/pwd.def /trunk/uspace/app/bdsh/cmds/modules/pwd/pwd.h
/trunk/uspace/app/bdsh/cmds/builtins/pwd
/trunk/uspace/app/bdsh/Makefile /trunk/uspace/app/bdsh/cmds/builtins/builtins.h /trunk/uspace/app/bdsh/cmds/modules/modules.h
|
3366 |
5836 d 2 h |
post |
/trunk/uspace/app/bdsh/ |
Housekeeping list, complete lingering things before they get forgotten:
* cli_*() now sets a global cli_errno, error functions cleaned up
* Finish internal cli_*() functions in util.c
* Don't expose cli_init() or cli_finit()
* Get rid of unused globals
* Don't set globals in commands themselves
* Update README files
* Fix stale comments |
|
/trunk/uspace/app/bdsh/cmds/builtins/README /trunk/uspace/app/bdsh/cmds/modules/README /trunk/uspace/app/bdsh/cmds/modules/help/help.c /trunk/uspace/app/bdsh/cmds/modules/quit/quit.c /trunk/uspace/app/bdsh/errors.c /trunk/uspace/app/bdsh/errors.h /trunk/uspace/app/bdsh/errstr.h /trunk/uspace/app/bdsh/exec.c /trunk/uspace/app/bdsh/input.c /trunk/uspace/app/bdsh/scli.c /trunk/uspace/app/bdsh/scli.h /trunk/uspace/app/bdsh/util.c
|
3346 |
5840 d 22 h |
post |
/trunk/ |
Merge with shell @ 3241 for bdsh |
|
/trunk/uspace/app/bdsh /trunk/uspace/lib/libc/generic/getopt.c /trunk/uspace/lib/libc/include/getopt.h
/trunk/boot/arch/ia32/Makefile.inc /trunk/uspace/Makefile /trunk/uspace/app/init/init.c /trunk/uspace/lib/libc/Makefile
|
3333 |
5846 d 18 h |
post |
/branches/shell/uspace/app/bdsh/cmds/builtins/pwd/ |
pwd: need to include config.h |
|
/branches/shell/uspace/app/bdsh/cmds/builtins/pwd/pwd.c
|
3329 |
5846 d 19 h |
post |
/branches/shell/uspace/app/bdsh/cmds/builtins/pwd/ |
pwd: Use getcwd(), don't just print usr->cwd from cliuser_t |
|
/branches/shell/uspace/app/bdsh/cmds/builtins/pwd/pwd.c
|
3304 |
5850 d 23 h |
post |
/branches/shell/uspace/app/bdsh/ |
Get rid of -DHELENOS (glibc builds will now break) |
|
/branches/shell/uspace/app/bdsh/Makefile /branches/shell/uspace/app/bdsh/cmds/builtins/cd/cd.c /branches/shell/uspace/app/bdsh/config.h /branches/shell/uspace/app/bdsh/exec.c /branches/shell/uspace/app/bdsh/exec.h /branches/shell/uspace/app/bdsh/input.c /branches/shell/uspace/app/bdsh/input.h /branches/shell/uspace/app/bdsh/scli.c
|
3278 |
5852 d 15 h |
post |
/branches/shell/uspace/app/bdsh/cmds/builtins/cd/ |
cd: Don't try to chdir(NULL) if no argument is given, fix help info |
|
/branches/shell/uspace/app/bdsh/cmds/builtins/cd/cd.c
|
3269 |
5853 d 0 h |
post |
/branches/shell/uspace/app/bdsh/ |
cd: Don't send users to non-existent usr->home on 0 arguments, add debug noise |
|
/branches/shell/uspace/app/bdsh/cmds/builtins/cd/cd.c /branches/shell/uspace/app/bdsh/cmds/builtins/cd/entry.h /branches/shell/uspace/app/bdsh/cmds/modules/help/help.c /branches/shell/uspace/app/bdsh/input.c /branches/shell/uspace/app/bdsh/scli.c /branches/shell/uspace/app/bdsh/util.c
|
3267 |
5853 d 4 h |
post |
/branches/shell/uspace/app/bdsh/cmds/builtins/cd/ |
cd: Don't look for errno.h in sys/ |
|
/branches/shell/uspace/app/bdsh/cmds/builtins/cd/cd.c
|
3265 |
5853 d 4 h |
post |
/branches/shell/uspace/app/bdsh/ |
Added initial port of simple CLI to bdsh (brain dead shell) |
|
/branches/shell/uspace/app/bdsh /branches/shell/uspace/app/bdsh/AUTHORS /branches/shell/uspace/app/bdsh/LICENSE /branches/shell/uspace/app/bdsh/Makefile /branches/shell/uspace/app/bdsh/Makefile.gnu /branches/shell/uspace/app/bdsh/cmds /branches/shell/uspace/app/bdsh/cmds/builtin_cmds.c /branches/shell/uspace/app/bdsh/cmds/builtins /branches/shell/uspace/app/bdsh/cmds/builtins/README /branches/shell/uspace/app/bdsh/cmds/builtins/builtin_aliases.h /branches/shell/uspace/app/bdsh/cmds/builtins/builtins.h /branches/shell/uspace/app/bdsh/cmds/builtins/cd /branches/shell/uspace/app/bdsh/cmds/builtins/cd/cd.c /branches/shell/uspace/app/bdsh/cmds/builtins/cd/cd.def /branches/shell/uspace/app/bdsh/cmds/builtins/cd/cd.h /branches/shell/uspace/app/bdsh/cmds/builtins/cd/entry.h /branches/shell/uspace/app/bdsh/cmds/builtins/pwd /branches/shell/uspace/app/bdsh/cmds/builtins/pwd/entry.h /branches/shell/uspace/app/bdsh/cmds/builtins/pwd/pwd.c /branches/shell/uspace/app/bdsh/cmds/builtins/pwd/pwd.def /branches/shell/uspace/app/bdsh/cmds/builtins/pwd/pwd.h /branches/shell/uspace/app/bdsh/cmds/cmds.h /branches/shell/uspace/app/bdsh/cmds/mknewcmd /branches/shell/uspace/app/bdsh/cmds/mod_cmds.c /branches/shell/uspace/app/bdsh/cmds/modules /branches/shell/uspace/app/bdsh/cmds/modules/README /branches/shell/uspace/app/bdsh/cmds/modules/help /branches/shell/uspace/app/bdsh/cmds/modules/help/entry.h /branches/shell/uspace/app/bdsh/cmds/modules/help/help.c /branches/shell/uspace/app/bdsh/cmds/modules/help/help.def /branches/shell/uspace/app/bdsh/cmds/modules/help/help.h /branches/shell/uspace/app/bdsh/cmds/modules/module_aliases.h /branches/shell/uspace/app/bdsh/cmds/modules/modules.h /branches/shell/uspace/app/bdsh/cmds/modules/quit /branches/shell/uspace/app/bdsh/cmds/modules/quit/entry.h /branches/shell/uspace/app/bdsh/cmds/modules/quit/quit.c /branches/shell/uspace/app/bdsh/cmds/modules/quit/quit.def /branches/shell/uspace/app/bdsh/cmds/modules/quit/quit.h /branches/shell/uspace/app/bdsh/config.h /branches/shell/uspace/app/bdsh/errors.c /branches/shell/uspace/app/bdsh/errors.h /branches/shell/uspace/app/bdsh/errstr.h /branches/shell/uspace/app/bdsh/exec.c /branches/shell/uspace/app/bdsh/exec.h /branches/shell/uspace/app/bdsh/input.c /branches/shell/uspace/app/bdsh/input.h /branches/shell/uspace/app/bdsh/scli.c /branches/shell/uspace/app/bdsh/scli.h /branches/shell/uspace/app/bdsh/util.c /branches/shell/uspace/app/bdsh/util.h
|