Commit Graph

10 Commits

Author SHA1 Message Date
Lee Jarvis 3ff75dd20a whitespace cleanup in one hit 2011-04-18 22:31:39 +01:00
John Mair a5c2dec021 added highlighting to disabled commands in GNU bash, version 4.1.5(1)-release (i486-pc-linux-gnu)
These shell commands are defined internally.  Type `help' to see this list.
Type `help name' to find out more about the function `name'.
Use `info bash' to find out more about the shell in general.
Use `man -k' or `info' to find out more about commands not in this list.

A star (*) next to a name means that the command is disabled.

 job_spec [&]                                                  history [-c] [-d offset] [n] or history -anrw [filename] o>
 (( expression ))                                              if COMMANDS; then COMMANDS; [ elif COMMANDS; then COMMANDS>
 . filename [arguments]                                        jobs [-lnprs] [jobspec ...] or jobs -x command [args]
 :                                                             kill [-s sigspec | -n signum | -sigspec] pid | jobspec ...>
 [ arg... ]                                                    let arg [arg ...]
 [[ expression ]]                                              local [option] name[=value] ...
 alias [-p] [name[=value] ... ]                                logout [n]
 bg [job_spec ...]                                             mapfile [-n count] [-O origin] [-s count] [-t] [-u fd] [-C>
 bind [-lpvsPVS] [-m keymap] [-f filename] [-q name] [-u nam>  popd [-n] [+N | -N]
 break [n]                                                     printf [-v var] format [arguments]
 builtin [shell-builtin [arg ...]]                             pushd [-n] [+N | -N | dir]
 caller [expr]                                                 pwd [-LP]
 case WORD in [PATTERN [| PATTERN]...) COMMANDS ;;]... esac    read [-ers] [-a array] [-d delim] [-i text] [-n nchars] [->
 cd [-L|-P] [dir]                                              readarray [-n count] [-O origin] [-s count] [-t] [-u fd] [>
 command [-pVv] command [arg ...]                              readonly [-af] [name[=value] ...] or readonly -p
 compgen [-abcdefgjksuv] [-o option]  [-A action] [-G globpa>  return [n]
 complete [-abcdefgjksuv] [-pr] [-DE] [-o option] [-A action>  select NAME [in WORDS ... ;] do COMMANDS; done
 compopt [-o|+o option] [-DE] [name ...]                       set [--abefhkmnptuvxBCHP] [-o option-name] [arg ...]
 continue [n]                                                  shift [n]
 coproc [NAME] command [redirections]                          shopt [-pqsu] [-o] [optname ...]
 declare [-aAfFilrtux] [-p] [name[=value] ...]                 source filename [arguments]
 dirs [-clpv] [+N] [-N]                                        suspend [-f]
 disown [-h] [-ar] [jobspec ...]                               test [expr]
 echo [-neE] [arg ...]                                         time [-p] pipeline
 enable [-a] [-dnps] [-f filename] [name ...]                  times
 eval [arg ...]                                                trap [-lp] [[arg] signal_spec ...]
 exec [-cl] [-a name] [command [arguments ...]] [redirection>  true
 exit [n]                                                      type [-afptP] name [name ...]
 export [-fn] [name[=value] ...] or export -p                  typeset [-aAfFilrtux] [-p] name[=value] ...
 false                                                         ulimit [-SHacdefilmnpqrstuvx] [limit]
 fc [-e ename] [-lnr] [first] [last] or fc -s [pat=rep] [com>  umask [-p] [-S] [mode]
 fg [job_spec]                                                 unalias [-a] name [name ...]
 for NAME [in WORDS ... ] ; do COMMANDS; done                  unset [-f] [-v] [name ...]
 for (( exp1; exp2; exp3 )); do COMMANDS; done                 until COMMANDS; do COMMANDS; done
 function name { COMMANDS ; } or name () { COMMANDS ; }        variables - Names and meanings of some shell variables
 getopts optstring name [arg]                                  wait [id]
 hash [-lr] [-p pathname] [-dt] [name ...]                     while COMMANDS; do COMMANDS; done
 help [-dms] [pattern ...]                                     { COMMANDS ; }
2011-04-13 23:49:45 +12:00
John Mair 265d0928aa Added comments to command_processor.rb, added bold text to output from
`stat` command.
2011-04-13 21:16:38 +12:00
John Mair adc9661955 version 0.8.0pre5, Added special _file_ and _dir_ locals that are created when file-based
commands are run (e.g show-method, show-command, show-doc, whereami,
cat-file, etc) Can then be used like: `.cd #{_dir_}`. Fixed string interpolation so it's 1.8 compatible.
2011-04-08 23:00:38 +12:00
John Mair ad0e3b9d9f * got run command working by passing in extra 'target' argument. Got
command string interpolation working, so .cd #{my_dir} now works.
2011-04-08 21:10:49 +12:00
John Mair d111b19f82 fixed `run` command builder, now takes target parameter, also accepts system
commands.

Also:
* changed Rakefile to remove the -k flag from bacon test
* changed pry_instance attr_reader to attr_accessor in CommandProcessor class
* updated tests to reflect new `run` parameters
2011-04-08 16:09:47 +12:00
John Mair f026516673 version 0.8.0pre4, suppress output from command that dont have return
values. suppress output from all expressions that end in a ';'. Added
`gem-cd` command that chdir to the directory containing the gem files.
2011-04-08 02:13:16 +12:00
John Mair 1aa4a66ffc added more documentation, proper error message for failed .cd command, added -t option to cat-file command 2011-04-07 20:39:47 +12:00
John Mair 0da553688d version 0.8.0pre3, removed system(cmd) for system command 2011-04-07 19:53:50 +12:00
John Mair cfba7fee9e version 0.8.0pre2, refactored out command_processor.rb. fixed '?' as alias for show-doc
(needed to escape regex).
2011-04-07 19:05:22 +12:00