home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 2: Applications / Linux Cubed Series 2 - Applications.iso / editors / emacs / xemacs / xemacs-1.006 / xemacs-1 / lib / xemacs-19.13 / lisp / comint / shell.elc < prev    next >
Emacs Compiled Lisp  |  1995-08-29  |  14.6 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


This file was processed as: Emacs Compiled Lisp (other/emacsCompiledLisp).
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
1% dexvert Emacs Compiled Lisp (other/emacsCompiledLisp) magic Unsupported
1% dexvert Combustion 2 Particle Library (other/combustion2ParticleLibrary) ext Unsupported
100% file Emacs/XEmacs v19 byte-compiled Lisp data default
99% file data default
100% TrID Emacs/XEmacs byte-compiled Lisp (generic) default
100% xdgMime text/x-emacs-lisp default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3b 45 4c 43 13 00 00 00 | 0a 3b 3b 3b 20 63 6f 6d |;ELC....|.;;; com|
|00000010| 70 69 6c 65 64 20 62 79 | 20 63 74 68 6f 6d 70 40 |piled by| cthomp@|
|00000020| 77 69 6c 6c 6f 77 2e 63 | 73 2e 75 69 75 63 2e 65 |willow.c|s.uiuc.e|
|00000030| 64 75 20 6f 6e 20 54 75 | 65 20 41 75 67 20 32 39 |du on Tu|e Aug 29|
|00000040| 20 31 33 3a 35 34 3a 33 | 36 20 31 39 39 35 0a 3b | 13:54:3|6 1995.;|
|00000050| 3b 3b 20 66 72 6f 6d 20 | 66 69 6c 65 20 2f 78 65 |;; from |file /xe|
|00000060| 6d 61 63 73 2f 78 65 6d | 61 63 73 2d 31 39 2e 31 |macs/xem|acs-19.1|
|00000070| 33 2d 72 65 6c 65 61 73 | 65 2f 65 64 69 74 6f 72 |3-releas|e/editor|
|00000080| 2f 6c 69 73 70 2f 63 6f | 6d 69 6e 74 2f 73 68 65 |/lisp/co|mint/she|
|00000090| 6c 6c 2e 65 6c 0a 3b 3b | 3b 20 65 6d 61 63 73 20 |ll.el.;;|; emacs |
|000000a0| 76 65 72 73 69 6f 6e 20 | 31 39 2e 31 33 20 58 45 |version |19.13 XE|
|000000b0| 6d 61 63 73 20 4c 75 63 | 69 64 2e 0a 3b 3b 3b 20 |macs Luc|id..;;; |
|000000c0| 62 79 74 65 63 6f 6d 70 | 20 76 65 72 73 69 6f 6e |bytecomp| version|
|000000d0| 20 32 2e 32 35 3b 20 31 | 2d 53 65 70 2d 39 34 2e | 2.25; 1|-Sep-94.|
|000000e0| 0a 3b 3b 3b 20 6f 70 74 | 69 6d 69 7a 61 74 69 6f |.;;; opt|imizatio|
|000000f0| 6e 20 69 73 20 6f 6e 2e | 0a 3b 3b 3b 20 74 68 69 |n is on.|.;;; thi|
|00000100| 73 20 66 69 6c 65 20 75 | 73 65 73 20 6f 70 63 6f |s file u|ses opco|
|00000110| 64 65 73 20 77 68 69 63 | 68 20 64 6f 20 6e 6f 74 |des whic|h do not|
|00000120| 20 65 78 69 73 74 20 69 | 6e 20 45 6d 61 63 73 20 | exist i|n Emacs |
|00000130| 31 38 2e 0a 0a 28 69 66 | 20 28 61 6e 64 20 28 62 |18...(if| (and (b|
|00000140| 6f 75 6e 64 70 20 27 65 | 6d 61 63 73 2d 76 65 72 |oundp 'e|macs-ver|
|00000150| 73 69 6f 6e 29 0a 09 20 | 28 6f 72 20 28 61 6e 64 |sion).. |(or (and|
|00000160| 20 28 62 6f 75 6e 64 70 | 20 27 65 70 6f 63 68 3a | (boundp| 'epoch:|
|00000170| 3a 76 65 72 73 69 6f 6e | 29 20 65 70 6f 63 68 3a |:version|) epoch:|
|00000180| 3a 76 65 72 73 69 6f 6e | 29 0a 09 20 20 20 20 20 |:version|).. |
|00000190| 28 73 74 72 69 6e 67 2d | 6c 65 73 73 70 20 65 6d |(string-|lessp em|
|000001a0| 61 63 73 2d 76 65 72 73 | 69 6f 6e 20 22 31 39 22 |acs-vers|ion "19"|
|000001b0| 29 29 29 0a 20 20 20 20 | 28 65 72 72 6f 72 20 22 |))). |(error "|
|000001c0| 54 68 69 73 20 66 69 6c | 65 20 77 61 73 20 63 6f |This fil|e was co|
|000001d0| 6d 70 69 6c 65 64 20 66 | 6f 72 20 45 6d 61 63 73 |mpiled f|or Emacs|
|000001e0| 20 31 39 2e 22 29 29 0a | 0a 28 72 65 71 75 69 72 | 19.")).|.(requir|
|000001f0| 65 20 27 63 6f 6d 69 6e | 74 29 0a 28 64 65 66 76 |e 'comin|t).(defv|
|00000200| 61 72 20 73 68 65 6c 6c | 2d 70 72 6f 6d 70 74 2d |ar shell|-prompt-|
|00000210| 70 61 74 74 65 72 6e 20 | 28 70 75 72 65 63 6f 70 |pattern |(purecop|
|00000220| 79 20 22 5e 5b 5e 23 24 | 25 3e 5c 6e 5d 2a 5b 23 |y "^[^#$|%>\n]*[#|
|00000230| 24 25 3e 5d 20 2a 22 29 | 20 22 5c 0a 52 65 67 65 |$%>] *")| "\.Rege|
|00000240| 78 70 20 74 6f 20 6d 61 | 74 63 68 20 70 72 6f 6d |xp to ma|tch prom|
|00000250| 70 74 73 20 69 6e 20 74 | 68 65 20 69 6e 66 65 72 |pts in t|he infer|
|00000260| 69 6f 72 20 73 68 65 6c | 6c 2e 0a 44 65 66 61 75 |ior shel|l..Defau|
|00000270| 6c 74 73 20 74 6f 20 5c | 22 5e 5b 5e 23 24 25 3e |lts to \|"^[^#$%>|
|00000280| 5c 5c 6e 5d 2a 5b 23 24 | 25 3e 5d 20 2a 5c 22 2c |\\n]*[#$|%>] *\",|
|00000290| 20 77 68 69 63 68 20 77 | 6f 72 6b 73 20 70 72 65 | which w|orks pre|
|000002a0| 74 74 79 20 77 65 6c 6c | 2e 0a 54 68 69 73 20 76 |tty well|..This v|
|000002b0| 61 72 69 61 62 6c 65 20 | 69 73 20 75 73 65 64 20 |ariable |is used |
|000002c0| 74 6f 20 69 6e 69 74 69 | 61 6c 69 73 65 20 60 63 |to initi|alise `c|
|000002d0| 6f 6d 69 6e 74 2d 70 72 | 6f 6d 70 74 2d 72 65 67 |omint-pr|ompt-reg|
|000002e0| 65 78 70 27 20 69 6e 20 | 74 68 65 0a 73 68 65 6c |exp' in |the.shel|
|000002f0| 6c 20 62 75 66 66 65 72 | 2e 0a 0a 54 68 65 20 70 |l buffer|...The p|
|00000300| 61 74 74 65 72 6e 20 73 | 68 6f 75 6c 64 20 70 72 |attern s|hould pr|
|00000310| 6f 62 61 62 6c 79 20 6e | 6f 74 20 6d 61 74 63 68 |obably n|ot match|
|00000320| 20 6d 6f 72 65 20 74 68 | 61 6e 20 6f 6e 65 20 6c | more th|an one l|
|00000330| 69 6e 65 2e 20 20 49 66 | 20 69 74 20 64 6f 65 73 |ine. If| it does|
|00000340| 2c 0a 73 68 65 6c 6c 2d | 6d 6f 64 65 20 6d 61 79 |,.shell-|mode may|
|00000350| 20 62 65 63 6f 6d 65 20 | 63 6f 6e 66 75 73 65 64 | become |confused|
|00000360| 20 74 72 79 69 6e 67 20 | 74 6f 20 64 69 73 74 69 | trying |to disti|
|00000370| 6e 67 75 69 73 68 20 70 | 72 6f 6d 70 74 20 66 72 |nguish p|rompt fr|
|00000380| 6f 6d 20 69 6e 70 75 74 | 0a 6f 6e 20 6c 69 6e 65 |om input|.on line|
|00000390| 73 20 77 68 69 63 68 20 | 64 6f 6e 27 74 20 73 74 |s which |don't st|
|000003a0| 61 72 74 20 77 69 74 68 | 20 61 20 70 72 6f 6d 70 |art with| a promp|
|000003b0| 74 2e 0a 0a 54 68 69 73 | 20 69 73 20 61 20 66 69 |t...This| is a fi|
|000003c0| 6e 65 20 74 68 69 6e 67 | 20 74 6f 20 73 65 74 20 |ne thing| to set |
|000003d0| 69 6e 20 79 6f 75 72 20 | 60 2e 65 6d 61 63 73 27 |in your |`.emacs'|
|000003e0| 20 66 69 6c 65 2e 22 29 | 0a 28 64 65 66 76 61 72 | file.")|.(defvar|
|000003f0| 20 73 68 65 6c 6c 2d 64 | 65 6c 69 6d 69 74 65 72 | shell-d|elimiter|
|00000400| 2d 61 72 67 75 6d 65 6e | 74 2d 6c 69 73 74 20 6e |-argumen|t-list n|
|00000410| 69 6c 20 22 5c 0a 4c 69 | 73 74 20 6f 66 20 63 68 |il "\.Li|st of ch|
|00000420| 61 72 61 63 74 65 72 73 | 20 74 6f 20 72 65 63 6f |aracters| to reco|
|00000430| 67 6e 69 73 65 20 61 73 | 20 73 65 70 61 72 61 74 |gnise as| separat|
|00000440| 65 20 61 72 67 75 6d 65 | 6e 74 73 2e 0a 44 65 66 |e argume|nts..Def|
|00000450| 61 75 6c 74 73 20 74 6f | 20 28 5c 22 7c 5c 22 20 |aults to| (\"|\" |
|00000460| 5c 22 26 5c 22 20 5c 22 | 28 5c 22 20 5c 22 29 5c |\"&\" \"|(\" \")\|
|00000470| 22 20 5c 22 3b 5c 22 29 | 2c 20 77 68 69 63 68 20 |" \";\")|, which |
|00000480| 77 6f 72 6b 73 20 70 72 | 65 74 74 79 20 77 65 6c |works pr|etty wel|
|00000490| 6c 2e 0a 54 68 69 73 20 | 76 61 72 69 61 62 6c 65 |l..This |variable|
|000004a0| 20 69 73 20 75 73 65 64 | 20 74 6f 20 69 6e 69 74 | is used| to init|
|000004b0| 69 61 6c 69 73 65 20 60 | 63 6f 6d 69 6e 74 2d 64 |ialise `|comint-d|
|000004c0| 65 6c 69 6d 69 74 65 72 | 2d 61 72 67 75 6d 65 6e |elimiter|-argumen|
|000004d0| 74 2d 6c 69 73 74 27 20 | 69 6e 20 74 68 65 0a 73 |t-list' |in the.s|
|000004e0| 68 65 6c 6c 20 62 75 66 | 66 65 72 2e 0a 0a 54 68 |hell buf|fer...Th|
|000004f0| 69 73 20 69 73 20 61 20 | 66 69 6e 65 20 74 68 69 |is is a |fine thi|
|00000500| 6e 67 20 74 6f 20 73 65 | 74 20 69 6e 20 79 6f 75 |ng to se|t in you|
|00000510| 72 20 60 2e 65 6d 61 63 | 73 27 20 66 69 6c 65 2e |r `.emac|s' file.|
|00000520| 22 29 0a 28 64 65 66 76 | 61 72 20 73 68 65 6c 6c |").(defv|ar shell|
|00000530| 2d 63 6f 6d 6d 61 6e 64 | 2d 72 65 67 65 78 70 20 |-command|-regexp |
|00000540| 22 5c 5c 28 28 2e 2a 29 | 5c 5c 7c 5b 5e 3b 26 7c |"\\((.*)|\\|[^;&||
|00000550| 5d 5c 5c 29 2b 22 20 22 | 5c 0a 2a 52 65 67 65 78 |]\\)+" "|\.*Regex|
|00000560| 70 20 74 6f 20 6d 61 74 | 63 68 20 73 68 65 6c 6c |p to mat|ch shell|
|00000570| 20 63 6f 6d 6d 61 6e 64 | 73 2e 0a 45 6c 65 6d 65 | command|s..Eleme|
|00000580| 6e 74 73 20 6f 66 20 70 | 69 70 65 73 20 61 72 65 |nts of p|ipes are|
|00000590| 20 63 6f 6e 73 69 64 65 | 72 65 64 20 61 73 20 73 | conside|red as s|
|000005a0| 65 70 61 72 61 74 65 20 | 63 6f 6d 6d 61 6e 64 73 |eparate |commands|
|000005b0| 2c 20 66 6f 72 6b 73 20 | 61 6e 64 20 72 65 64 69 |, forks |and redi|
|000005c0| 72 65 63 74 69 6f 6e 73 | 0a 61 73 20 70 61 72 74 |rections|.as part|
|000005d0| 20 6f 66 20 6f 6e 65 20 | 63 6f 6d 6d 61 6e 64 2e | of one |command.|
|000005e0| 22 29 0a 28 64 65 66 76 | 61 72 20 73 68 65 6c 6c |").(defv|ar shell|
|000005f0| 2d 63 6f 6d 70 6c 65 74 | 69 6f 6e 2d 65 78 65 63 |-complet|ion-exec|
|00000600| 6f 6e 6c 79 20 74 20 22 | 5c 0a 2a 49 66 20 6e 6f |only t "|\.*If no|
|00000610| 6e 2d 6e 69 6c 2c 20 75 | 73 65 20 65 78 65 63 75 |n-nil, u|se execu|
|00000620| 74 61 62 6c 65 20 66 69 | 6c 65 73 20 6f 6e 6c 79 |table fi|les only|
|00000630| 20 66 6f 72 20 63 6f 6d | 70 6c 65 74 69 6f 6e 20 | for com|pletion |
|00000640| 63 61 6e 64 69 64 61 74 | 65 73 2e 0a 54 68 69 73 |candidat|es..This|
|00000650| 20 6d 69 72 72 6f 72 73 | 20 74 68 65 20 6f 70 74 | mirrors| the opt|
|00000660| 69 6f 6e 61 6c 20 62 65 | 68 61 76 69 6f 72 20 6f |ional be|havior o|
|00000670| 66 20 74 63 73 68 2e 0a | 0a 44 65 74 65 63 74 69 |f tcsh..|.Detecti|
|00000680| 6e 67 20 65 78 65 63 75 | 74 61 62 69 6c 69 74 79 |ng execu|tability|
|00000690| 20 6f 66 20 66 69 6c 65 | 73 20 6d 61 79 20 73 6c | of file|s may sl|
|000006a0| 6f 77 20 63 6f 6d 6d 61 | 6e 64 20 63 6f 6d 70 6c |ow comma|nd compl|
|000006b0| 65 74 69 6f 6e 20 63 6f | 6e 73 69 64 65 72 61 62 |etion co|nsiderab|
|000006c0| 6c 79 2e 22 29 0a 28 64 | 65 66 76 61 72 20 73 68 |ly.").(d|efvar sh|
|000006d0| 65 6c 6c 2d 6d 75 6c 74 | 69 70 6c 65 2d 73 68 65 |ell-mult|iple-she|
|000006e0| 6c 6c 73 20 6e 69 6c 20 | 22 5c 0a 2a 49 66 20 6e |lls nil |"\.*If n|
|000006f0| 6f 6e 2d 6e 69 6c 2c 20 | 65 61 63 68 20 74 69 6d |on-nil, |each tim|
|00000700| 65 20 73 68 65 6c 6c 20 | 6d 6f 64 65 20 69 73 20 |e shell |mode is |
|00000710| 69 6e 76 6f 6b 65 64 2c | 20 61 20 6e 65 77 20 73 |invoked,| a new s|
|00000720| 68 65 6c 6c 20 69 73 20 | 6d 61 64 65 22 29 0a 28 |hell is |made").(|
|00000730| 64 65 66 76 61 72 20 73 | 68 65 6c 6c 2d 70 6f 70 |defvar s|hell-pop|
|00000740| 64 2d 72 65 67 65 78 70 | 20 22 70 6f 70 64 22 20 |d-regexp| "popd" |
|00000750| 22 5c 0a 2a 52 65 67 65 | 78 70 20 74 6f 20 6d 61 |"\.*Rege|xp to ma|
|00000760| 74 63 68 20 73 75 62 73 | 68 65 6c 6c 20 63 6f 6d |tch subs|hell com|
|00000770| 6d 61 6e 64 73 20 65 71 | 75 69 76 61 6c 65 6e 74 |mands eq|uivalent|
|00000780| 20 74 6f 20 70 6f 70 64 | 2e 22 29 0a 28 64 65 66 | to popd|.").(def|
|00000790| 76 61 72 20 73 68 65 6c | 6c 2d 70 75 73 68 64 2d |var shel|l-pushd-|
|000007a0| 72 65 67 65 78 70 20 22 | 70 75 73 68 64 22 20 22 |regexp "|pushd" "|
|000007b0| 5c 0a 2a 52 65 67 65 78 | 70 20 74 6f 20 6d 61 74 |\.*Regex|p to mat|
|000007c0| 63 68 20 73 75 62 73 68 | 65 6c 6c 20 63 6f 6d 6d |ch subsh|ell comm|
|000007d0| 61 6e 64 73 20 65 71 75 | 69 76 61 6c 65 6e 74 20 |ands equ|ivalent |
|000007e0| 74 6f 20 70 75 73 68 64 | 2e 22 29 0a 28 64 65 66 |to pushd|.").(def|
|000007f0| 76 61 72 20 73 68 65 6c | 6c 2d 70 75 73 68 64 2d |var shel|l-pushd-|
|00000800| 74 6f 68 6f 6d 65 20 6e | 69 6c 20 22 5c 0a 2a 49 |tohome n|il "\.*I|
|00000810| 66 20 6e 6f 6e 2d 6e 69 | 6c 2c 20 6d 61 6b 65 20 |f non-ni|l, make |
|00000820| 70 75 73 68 64 20 77 69 | 74 68 20 6e 6f 20 61 72 |pushd wi|th no ar|
|00000830| 67 20 62 65 68 61 76 65 | 20 61 73 20 5c 22 70 75 |g behave| as \"pu|
|00000840| 73 68 64 20 7e 5c 22 20 | 28 6c 69 6b 65 20 63 64 |shd ~\" |(like cd|
|00000850| 29 2e 0a 54 68 69 73 20 | 6d 69 72 72 6f 72 73 20 |)..This |mirrors |
|00000860| 74 68 65 20 6f 70 74 69 | 6f 6e 61 6c 20 62 65 68 |the opti|onal beh|
|00000870| 61 76 69 6f 72 20 6f 66 | 20 74 63 73 68 2e 22 29 |avior of| tcsh.")|
|00000880| 0a 28 64 65 66 76 61 72 | 20 73 68 65 6c 6c 2d 70 |.(defvar| shell-p|
|00000890| 75 73 68 64 2d 64 65 78 | 74 72 61 63 74 20 6e 69 |ushd-dex|tract ni|
|000008a0| 6c 20 22 5c 0a 2a 49 66 | 20 6e 6f 6e 2d 6e 69 6c |l "\.*If| non-nil|
|000008b0| 2c 20 6d 61 6b 65 20 5c | 22 70 75 73 68 64 20 2b |, make \|"pushd +|
|000008c0| 6e 5c 22 20 70 6f 70 20 | 74 68 65 20 6e 74 68 20 |n\" pop |the nth |
|000008d0| 64 69 72 20 74 6f 20 74 | 68 65 20 73 74 61 63 6b |dir to t|he stack|
|000008e0| 20 74 6f 70 2e 0a 54 68 | 69 73 20 6d 69 72 72 6f | top..Th|is mirro|
|000008f0| 72 73 20 74 68 65 20 6f | 70 74 69 6f 6e 61 6c 20 |rs the o|ptional |
|00000900| 62 65 68 61 76 69 6f 72 | 20 6f 66 20 74 63 73 68 |behavior| of tcsh|
|00000910| 2e 22 29 0a 28 64 65 66 | 76 61 72 20 73 68 65 6c |.").(def|var shel|
|00000920| 6c 2d 70 75 73 68 64 2d | 64 75 6e 69 71 75 65 20 |l-pushd-|dunique |
|00000930| 6e 69 6c 20 22 5c 0a 2a | 49 66 20 6e 6f 6e 2d 6e |nil "\.*|If non-n|
|00000940| 69 6c 2c 20 6d 61 6b 65 | 20 70 75 73 68 64 20 6f |il, make| pushd o|
|00000950| 6e 6c 79 20 61 64 64 20 | 75 6e 69 71 75 65 20 64 |nly add |unique d|
|00000960| 69 72 65 63 74 6f 72 69 | 65 73 20 74 6f 20 74 68 |irectori|es to th|
|00000970| 65 20 73 74 61 63 6b 2e | 0a 54 68 69 73 20 6d 69 |e stack.|.This mi|
|00000980| 72 72 6f 72 73 20 74 68 | 65 20 6f 70 74 69 6f 6e |rrors th|e option|
|00000990| 61 6c 20 62 65 68 61 76 | 69 6f 72 20 6f 66 20 74 |al behav|ior of t|
|000009a0| 63 73 68 2e 22 29 0a 28 | 64 65 66 76 61 72 20 73 |csh.").(|defvar s|
|000009b0| 68 65 6c 6c 2d 63 64 2d | 72 65 67 65 78 70 20 22 |hell-cd-|regexp "|
|000009c0| 63 64 22 20 22 5c 0a 2a | 52 65 67 65 78 70 20 74 |cd" "\.*|Regexp t|
|000009d0| 6f 20 6d 61 74 63 68 20 | 73 75 62 73 68 65 6c 6c |o match |subshell|
|000009e0| 20 63 6f 6d 6d 61 6e 64 | 73 20 65 71 75 69 76 61 | command|s equiva|
|000009f0| 6c 65 6e 74 20 74 6f 20 | 63 64 2e 22 29 0a 28 64 |lent to |cd.").(d|
|00000a00| 65 66 76 61 72 20 65 78 | 70 6c 69 63 69 74 2d 73 |efvar ex|plicit-s|
|00000a10| 68 65 6c 6c 2d 66 69 6c | 65 2d 6e 61 6d 65 20 6e |hell-fil|e-name n|
|00000a20| 69 6c 20 22 5c 0a 2a 49 | 66 20 6e 6f 6e 2d 6e 69 |il "\.*I|f non-ni|
|00000a30| 6c 2c 20 69 73 20 66 69 | 6c 65 20 6e 61 6d 65 20 |l, is fi|le name |
|00000a40| 74 6f 20 75 73 65 20 66 | 6f 72 20 65 78 70 6c 69 |to use f|or expli|
|00000a50| 63 69 74 6c 79 20 72 65 | 71 75 65 73 74 65 64 20 |citly re|quested |
|00000a60| 69 6e 66 65 72 69 6f 72 | 20 73 68 65 6c 6c 2e 22 |inferior| shell."|
|00000a70| 29 0a 28 64 65 66 76 61 | 72 20 65 78 70 6c 69 63 |).(defva|r explic|
|00000a80| 69 74 2d 63 73 68 2d 61 | 72 67 73 20 28 62 79 74 |it-csh-a|rgs (byt|
|00000a90| 65 2d 63 6f 64 65 20 22 | 08 c1 3d ab 82 c2 87 c3 |e-code "|..=.....|
|00000aa0| 87 22 20 5b 73 79 73 74 | 65 6d 2d 74 79 70 65 20 |." [syst|em-type |
|00000ab0| 68 70 75 78 20 28 22 2d | 69 22 20 22 2d 54 22 29 |hpux ("-|i" "-T")|
|00000ac0| 20 28 22 2d 69 22 29 5d | 20 32 29 20 22 5c 0a 2a | ("-i")]| 2) "\.*|
|00000ad0| 41 72 67 73 20 70 61 73 | 73 65 64 20 74 6f 20 69 |Args pas|sed to i|
|00000ae0| 6e 66 65 72 69 6f 72 20 | 73 68 65 6c 6c 20 62 79 |nferior |shell by|
|00000af0| 20 4d 2d 78 20 73 68 65 | 6c 6c 2c 20 69 66 20 74 | M-x she|ll, if t|
|00000b00| 68 65 20 73 68 65 6c 6c | 20 69 73 20 63 73 68 2e |he shell| is csh.|
|00000b10| 0a 56 61 6c 75 65 20 69 | 73 20 61 20 6c 69 73 74 |.Value i|s a list|
|00000b20| 20 6f 66 20 73 74 72 69 | 6e 67 73 2c 20 77 68 69 | of stri|ngs, whi|
|00000b30| 63 68 20 6d 61 79 20 62 | 65 20 6e 69 6c 2e 22 29 |ch may b|e nil.")|
|00000b40| 0a 28 64 65 66 76 61 72 | 20 73 68 65 6c 6c 2d 64 |.(defvar| shell-d|
|00000b50| 69 72 73 74 61 63 6b 20 | 6e 69 6c 20 22 5c 0a 4c |irstack |nil "\.L|
|00000b60| 69 73 74 20 6f 66 20 64 | 69 72 65 63 74 6f 72 69 |ist of d|irectori|
|00000b70| 65 73 20 73 61 76 65 64 | 20 62 79 20 70 75 73 68 |es saved| by push|
|00000b80| 64 20 69 6e 20 74 68 69 | 73 20 62 75 66 66 65 72 |d in thi|s buffer|
|00000b90| 27 73 20 73 68 65 6c 6c | 2e 0a 54 68 75 73 2c 20 |'s shell|..Thus, |
|00000ba0| 74 68 69 73 20 64 6f 65 | 73 20 6e 6f 74 20 69 6e |this doe|s not in|
|00000bb0| 63 6c 75 64 65 20 74 68 | 65 20 73 68 65 6c 6c 27 |clude th|e shell'|
|00000bc0| 73 20 63 75 72 72 65 6e | 74 20 64 69 72 65 63 74 |s curren|t direct|
|00000bd0| 6f 72 79 2e 22 29 0a 28 | 64 65 66 76 61 72 20 73 |ory.").(|defvar s|
|00000be0| 68 65 6c 6c 2d 6c 61 73 | 74 2d 64 69 72 20 6e 69 |hell-las|t-dir ni|
|00000bf0| 6c 20 22 5c 0a 4b 65 65 | 70 20 74 72 61 63 6b 20 |l "\.Kee|p track |
|00000c00| 6f 66 20 6c 61 73 74 20 | 64 69 72 65 63 74 6f 72 |of last |director|
|00000c10| 79 20 66 6f 72 20 6b 73 | 68 20 60 63 64 20 2d 27 |y for ks|h `cd -'|
|00000c20| 20 63 6f 6d 6d 61 6e 64 | 2e 22 29 0a 28 64 65 66 | command|.").(def|
|00000c30| 76 61 72 20 73 68 65 6c | 6c 2d 64 69 72 73 74 61 |var shel|l-dirsta|
|00000c40| 63 6b 2d 71 75 65 72 79 | 20 22 64 69 72 73 22 20 |ck-query| "dirs" |
|00000c50| 22 5c 0a 43 6f 6d 6d 61 | 6e 64 20 75 73 65 64 20 |"\.Comma|nd used |
|00000c60| 62 79 20 60 73 68 65 6c | 6c 2d 72 65 73 79 6e 63 |by `shel|l-resync|
|00000c70| 2d 64 69 72 73 27 20 74 | 6f 20 71 75 65 72 79 20 |-dirs' t|o query |
|00000c80| 74 68 65 20 73 68 65 6c | 6c 2e 22 29 0a 28 62 79 |the shel|l.").(by|
|00000c90| 74 65 2d 63 6f 64 65 20 | 22 c0 c1 21 ac 82 c2 11 |te-code |"..!....|
|00000ca0| 09 ac a9 c3 20 1c c5 0c | 0e 06 5c 22 88 c7 0c c1 |.... ...|..\"....|
|00000cb0| 5c 22 88 c8 0c c9 ca 23 | 88 c8 0c cb cc 23 88 c8 |\".....#|.....#..|
|00000cc0| 0c cd ce 23 88 c8 0c cf | d0 23 88 0c 11 29 c2 87 |...#....|.#...)..|
|00000cd0| 22 20 5b 62 6f 75 6e 64 | 70 20 73 68 65 6c 6c 2d |" [bound|p shell-|
|00000ce0| 6d 6f 64 65 2d 6d 61 70 | 20 6e 69 6c 20 6d 61 6b |mode-map| nil mak|
|00000cf0| 65 2d 6b 65 79 6d 61 70 | 20 6d 61 70 20 73 65 74 |e-keymap| map set|
|00000d00| 2d 6b 65 79 6d 61 70 2d | 70 61 72 65 6e 74 20 63 |-keymap-|parent c|
|00000d10| 6f 6d 69 6e 74 2d 6d 6f | 64 65 2d 6d 61 70 20 73 |omint-mo|de-map s|
|00000d20| 65 74 2d 6b 65 79 6d 61 | 70 2d 6e 61 6d 65 20 64 |et-keyma|p-name d|
|00000d30| 65 66 69 6e 65 2d 6b 65 | 79 20 22 03 06 22 20 73 |efine-ke|y ".." s|
|00000d40| 68 65 6c 6c 2d 66 6f 72 | 77 61 72 64 2d 63 6f 6d |hell-for|ward-com|
|00000d50| 6d 61 6e 64 20 22 03 02 | 22 20 73 68 65 6c 6c 2d |mand "..|" shell-|
|00000d60| 62 61 63 6b 77 61 72 64 | 2d 63 6f 6d 6d 61 6e 64 |backward|-command|
|00000d70| 20 22 09 22 20 63 6f 6d | 69 6e 74 2d 64 79 6e 61 | "." com|int-dyna|
|00000d80| 6d 69 63 2d 63 6f 6d 70 | 6c 65 74 65 20 22 bf 22 |mic-comp|lete "."|
|00000d90| 20 63 6f 6d 69 6e 74 2d | 64 79 6e 61 6d 69 63 2d | comint-|dynamic-|
|00000da0| 6c 69 73 74 2d 66 69 6c | 65 6e 61 6d 65 2d 63 6f |list-fil|ename-co|
|00000db0| 6d 70 6c 65 74 69 6f 6e | 73 5d 20 34 29 0a 28 64 |mpletion|s] 4).(d|
|00000dc0| 65 66 76 61 72 20 73 68 | 65 6c 6c 2d 6d 6f 64 65 |efvar sh|ell-mode|
|00000dd0| 2d 68 6f 6f 6b 20 6e 69 | 6c 20 22 5c 0a 2a 48 6f |-hook ni|l "\.*Ho|
|00000de0| 6f 6b 20 66 6f 72 20 63 | 75 73 74 6f 6d 69 73 69 |ok for c|ustomisi|
|00000df0| 6e 67 20 53 68 65 6c 6c | 20 6d 6f 64 65 2e 22 29 |ng Shell| mode.")|
|00000e00| 0a 28 66 73 65 74 20 27 | 73 68 65 6c 6c 2d 6d 6f |.(fset '|shell-mo|
|00000e10| 64 65 20 23 5b 6e 69 6c | 20 22 c0 20 88 c1 12 c3 |de #[nil| ". ....|
|00000e20| 14 c5 0e 06 21 88 c7 c8 | 21 88 0e 09 16 08 c7 ca |....!...|!.......|
|00000e30| 21 88 0e 0b 16 5c 6e c7 | cc 21 88 cd 16 0c c7 ce |!....\n.|.!......|
|00000e40| 21 88 cf 16 0e c7 d0 21 | 88 d1 16 10 c7 d2 21 88 |!......!|......!.|
|00000e50| 0e 08 16 12 c7 d3 21 88 | d4 16 13 c7 d5 21 88 d4 |......!.|.....!..|
|00000e60| 16 15 c7 d6 21 88 d7 16 | 16 d8 16 19 da db 70 21 |....!...|......p!|
|00000e70| 21 40 1e 1c dd de 21 ae | 9f df e0 0e 1c 5c 22 ab |!@....!.|.....\".|
|00000e80| 83 e1 aa 95 df e2 0e 1c | 5c 22 ab 83 e3 aa 8b df |........|\"......|
|00000e90| e4 0e 1c 5c 22 ab 83 e5 | aa 81 e1 16 26 29 e7 e8 |...\"...|....&)..|
|00000ea0| 21 88 e9 20 88 ea 20 87 | 22 20 5b 63 6f 6d 69 6e |!.. .. .|" [comin|
|00000eb0| 74 2d 6d 6f 64 65 20 73 | 68 65 6c 6c 2d 6d 6f 64 |t-mode s|hell-mod|
|00000ec0| 65 20 6d 61 6a 6f 72 2d | 6d 6f 64 65 20 22 53 68 |e major-|mode "Sh|
|00000ed0| 65 6c 6c 22 20 6d 6f 64 | 65 2d 6e 61 6d 65 20 75 |ell" mod|e-name u|
|00000ee0| 73 65 2d 6c 6f 63 61 6c | 2d 6d 61 70 20 73 68 65 |se-local|-map she|
|00000ef0| 6c 6c 2d 6d 6f 64 65 2d | 6d 61 70 20 6d 61 6b 65 |ll-mode-|map make|
|00000f00| 2d 6c 6f 63 61 6c 2d 76 | 61 72 69 61 62 6c 65 20 |-local-v|ariable |
|00000f10| 63 6f 6d 69 6e 74 2d 70 | 72 6f 6d 70 74 2d 72 65 |comint-p|rompt-re|
|00000f20| 67 65 78 70 20 73 68 65 | 6c 6c 2d 70 72 6f 6d 70 |gexp she|ll-promp|
|00000f30| 74 2d 70 61 74 74 65 72 | 6e 20 63 6f 6d 69 6e 74 |t-patter|n comint|
|00000f40| 2d 64 65 6c 69 6d 69 74 | 65 72 2d 61 72 67 75 6d |-delimit|er-argum|
|00000f50| 65 6e 74 2d 6c 69 73 74 | 20 73 68 65 6c 6c 2d 64 |ent-list| shell-d|
|00000f60| 65 6c 69 6d 69 74 65 72 | 2d 61 72 67 75 6d 65 6e |elimiter|-argumen|
|00000f70| 74 2d 6c 69 73 74 20 63 | 6f 6d 69 6e 74 2d 61 66 |t-list c|omint-af|
|00000f80| 74 65 72 2d 70 61 72 74 | 69 61 6c 2d 66 69 6c 65 |ter-part|ial-file|
|00000f90| 6e 61 6d 65 2d 63 6f 6d | 6d 61 6e 64 20 73 68 65 |name-com|mand she|
|00000fa0| 6c 6c 2d 61 66 74 65 72 | 2d 70 61 72 74 69 61 6c |ll-after|-partial|
|00000fb0| 2d 66 69 6c 65 6e 61 6d | 65 20 63 6f 6d 69 6e 74 |-filenam|e comint|
|00000fc0| 2d 67 65 74 2d 63 75 72 | 72 65 6e 74 2d 63 6f 6d |-get-cur|rent-com|
|00000fd0| 6d 61 6e 64 20 73 68 65 | 6c 6c 2d 67 65 74 2d 63 |mand she|ll-get-c|
|00000fe0| 75 72 72 65 6e 74 2d 63 | 6f 6d 6d 61 6e 64 20 63 |urrent-c|ommand c|
|00000ff0| 6f 6d 69 6e 74 2d 64 79 | 6e 61 6d 69 63 2d 63 6f |omint-dy|namic-co|
|00001000| 6d 70 6c 65 74 65 2d 63 | 6f 6d 6d 61 6e 64 2d 63 |mplete-c|ommand-c|
|00001010| 6f 6d 6d 61 6e 64 20 73 | 68 65 6c 6c 2d 64 79 6e |ommand s|hell-dyn|
|00001020| 61 6d 69 63 2d 63 6f 6d | 70 6c 65 74 65 2d 63 6f |amic-com|plete-co|
|00001030| 6d 6d 61 6e 64 20 70 61 | 72 61 67 72 61 70 68 2d |mmand pa|ragraph-|
|00001040| 73 74 61 72 74 20 73 68 | 65 6c 6c 2d 64 69 72 73 |start sh|ell-dirs|
|00001050| 74 61 63 6b 20 6e 69 6c | 20 73 68 65 6c 6c 2d 6c |tack nil| shell-l|
|00001060| 61 73 74 2d 64 69 72 20 | 73 68 65 6c 6c 2d 64 69 |ast-dir |shell-di|
|00001070| 72 74 72 61 63 6b 70 20 | 74 20 73 68 65 6c 6c 2d |rtrackp |t shell-|
|00001080| 64 69 72 65 63 74 6f 72 | 79 2d 74 72 61 63 6b 65 |director|y-tracke|
|00001090| 72 20 63 6f 6d 69 6e 74 | 2d 69 6e 70 75 74 2d 73 |r comint|-input-s|
|000010a0| 65 6e 74 69 6e 65 6c 20 | 70 72 6f 63 65 73 73 2d |entinel |process-|
|000010b0| 63 6f 6d 6d 61 6e 64 20 | 67 65 74 2d 62 75 66 66 |command |get-buff|
|000010c0| 65 72 2d 70 72 6f 63 65 | 73 73 20 73 68 65 6c 6c |er-proce|ss shell|
|000010d0| 20 67 65 74 65 6e 76 20 | 22 48 49 53 54 46 49 4c | getenv |"HISTFIL|
|000010e0| 45 22 20 73 74 72 69 6e | 67 2d 6d 61 74 63 68 20 |E" strin|g-match |
|000010f0| 22 63 73 68 5c 5c 27 22 | 20 22 7e 2f 2e 68 69 73 |"csh\\'"| "~/.his|
|00001100| 74 6f 72 79 22 20 22 62 | 61 73 68 5c 5c 27 22 20 |tory" "b|ash\\'" |
|00001110| 22 7e 2f 2e 62 61 73 68 | 5f 68 69 73 74 6f 72 79 |"~/.bash|_history|
|00001120| 22 20 22 6b 73 68 5c 5c | 27 22 20 22 7e 2f 2e 73 |" "ksh\\|'" "~/.s|
|00001130| 68 5f 68 69 73 74 6f 72 | 79 22 20 63 6f 6d 69 6e |h_histor|y" comin|
|00001140| 74 2d 69 6e 70 75 74 2d | 72 69 6e 67 2d 66 69 6c |t-input-|ring-fil|
|00001150| 65 2d 6e 61 6d 65 20 72 | 75 6e 2d 68 6f 6f 6b 73 |e-name r|un-hooks|
|00001160| 20 73 68 65 6c 6c 2d 6d | 6f 64 65 2d 68 6f 6f 6b | shell-m|ode-hook|
|00001170| 20 63 6f 6d 69 6e 74 2d | 72 65 61 64 2d 69 6e 70 | comint-|read-inp|
|00001180| 75 74 2d 72 69 6e 67 20 | 73 68 65 6c 6c 2d 64 69 |ut-ring |shell-di|
|00001190| 72 73 74 61 63 6b 2d 6d | 65 73 73 61 67 65 5d 20 |rstack-m|essage] |
|000011a0| 33 20 22 5c 0a 4d 61 6a | 6f 72 20 6d 6f 64 65 20 |3 "\.Maj|or mode |
|000011b0| 66 6f 72 20 69 6e 74 65 | 72 61 63 74 69 6e 67 20 |for inte|racting |
|000011c0| 77 69 74 68 20 61 6e 20 | 69 6e 66 65 72 69 6f 72 |with an |inferior|
|000011d0| 20 73 68 65 6c 6c 2e 0a | 52 65 74 75 72 6e 20 61 | shell..|Return a|
|000011e0| 66 74 65 72 20 74 68 65 | 20 65 6e 64 20 6f 66 20 |fter the| end of |
|000011f0| 74 68 65 20 70 72 6f 63 | 65 73 73 27 20 6f 75 74 |the proc|ess' out|
|00001200| 70 75 74 20 73 65 6e 64 | 73 20 74 68 65 20 74 65 |put send|s the te|
|00001210| 78 74 20 66 72 6f 6d 20 | 74 68 65 20 0a 20 20 20 |xt from |the . |
|00001220| 20 65 6e 64 20 6f 66 20 | 70 72 6f 63 65 73 73 20 | end of |process |
|00001230| 74 6f 20 74 68 65 20 65 | 6e 64 20 6f 66 20 74 68 |to the e|nd of th|
|00001240| 65 20 63 75 72 72 65 6e | 74 20 6c 69 6e 65 2e 0a |e curren|t line..|
|00001250| 52 65 74 75 72 6e 20 62 | 65 66 6f 72 65 20 65 6e |Return b|efore en|
|00001260| 64 20 6f 66 20 70 72 6f | 63 65 73 73 20 6f 75 74 |d of pro|cess out|
|00001270| 70 75 74 20 63 6f 70 69 | 65 73 20 74 68 65 20 63 |put copi|es the c|
|00001280| 75 72 72 65 6e 74 20 6c | 69 6e 65 20 28 65 78 63 |urrent l|ine (exc|
|00001290| 65 70 74 0a 20 20 20 20 | 66 6f 72 20 74 68 65 20 |ept. |for the |
|000012a0| 70 72 6f 6d 70 74 29 20 | 74 6f 20 74 68 65 20 65 |prompt) |to the e|
|000012b0| 6e 64 20 6f 66 20 74 68 | 65 20 62 75 66 66 65 72 |nd of th|e buffer|
|000012c0| 20 61 6e 64 20 73 65 6e | 64 73 20 69 74 2e 0a 5c | and sen|ds it..\|
|000012d0| 5c 5b 73 65 6e 64 2d 69 | 6e 76 69 73 69 62 6c 65 |\[send-i|nvisible|
|000012e0| 5d 20 72 65 61 64 73 20 | 61 20 6c 69 6e 65 20 6f |] reads |a line o|
|000012f0| 66 20 74 65 78 74 20 77 | 69 74 68 6f 75 74 20 65 |f text w|ithout e|
|00001300| 63 68 6f 69 6e 67 20 69 | 74 2c 20 61 6e 64 20 73 |choing i|t, and s|
|00001310| 65 6e 64 73 20 69 74 20 | 74 6f 0a 20 20 20 20 74 |ends it |to. t|
|00001320| 68 65 20 73 68 65 6c 6c | 2e 20 20 54 68 69 73 20 |he shell|. This |
|00001330| 69 73 20 75 73 65 66 75 | 6c 20 66 6f 72 20 65 6e |is usefu|l for en|
|00001340| 74 65 72 69 6e 67 20 70 | 61 73 73 77 6f 72 64 73 |tering p|asswords|
|00001350| 2e 0a 0a 49 66 20 79 6f | 75 20 61 63 63 69 64 65 |...If yo|u accide|
|00001360| 6e 74 61 6c 6c 79 20 73 | 75 73 70 65 6e 64 20 79 |ntally s|uspend y|
|00001370| 6f 75 72 20 70 72 6f 63 | 65 73 73 2c 20 75 73 65 |our proc|ess, use|
|00001380| 20 5c 5c 5b 63 6f 6d 69 | 6e 74 2d 63 6f 6e 74 69 | \\[comi|nt-conti|
|00001390| 6e 75 65 2d 73 75 62 6a | 6f 62 5d 0a 74 6f 20 63 |nue-subj|ob].to c|
|000013a0| 6f 6e 74 69 6e 75 65 20 | 69 74 2e 0a 0a 63 64 2c |ontinue |it...cd,|
|000013b0| 20 70 75 73 68 64 20 61 | 6e 64 20 70 6f 70 64 20 | pushd a|nd popd |
|000013c0| 63 6f 6d 6d 61 6e 64 73 | 20 67 69 76 65 6e 20 74 |commands| given t|
|000013d0| 6f 20 74 68 65 20 73 68 | 65 6c 6c 20 61 72 65 20 |o the sh|ell are |
|000013e0| 77 61 74 63 68 65 64 20 | 62 79 20 45 6d 61 63 73 |watched |by Emacs|
|000013f0| 20 74 6f 20 6b 65 65 70 | 0a 74 68 69 73 20 62 75 | to keep|.this bu|
|00001400| 66 66 65 72 27 73 20 64 | 65 66 61 75 6c 74 20 64 |ffer's d|efault d|
|00001410| 69 72 65 63 74 6f 72 79 | 20 74 68 65 20 73 61 6d |irectory| the sam|
|00001420| 65 20 61 73 20 74 68 65 | 20 73 68 65 6c 6c 27 73 |e as the| shell's|
|00001430| 20 77 6f 72 6b 69 6e 67 | 20 64 69 72 65 63 74 6f | working| directo|
|00001440| 72 79 2e 0a 5c 5c 5b 73 | 68 65 6c 6c 2d 72 65 73 |ry..\\[s|hell-res|
|00001450| 79 6e 63 2d 64 69 72 73 | 5d 20 71 75 65 72 69 65 |ync-dirs|] querie|
|00001460| 73 20 74 68 65 20 73 68 | 65 6c 6c 20 61 6e 64 20 |s the sh|ell and |
|00001470| 72 65 73 79 6e 63 73 20 | 45 6d 61 63 73 27 20 69 |resyncs |Emacs' i|
|00001480| 64 65 61 20 6f 66 20 77 | 68 61 74 20 74 68 65 20 |dea of w|hat the |
|00001490| 0a 20 20 20 20 63 75 72 | 72 65 6e 74 20 64 69 72 |. cur|rent dir|
|000014a0| 65 63 74 6f 72 79 20 73 | 74 61 63 6b 20 69 73 2e |ectory s|tack is.|
|000014b0| 0a 5c 5c 5b 73 68 65 6c | 6c 2d 64 69 72 74 72 61 |.\\[shel|l-dirtra|
|000014c0| 63 6b 2d 74 6f 67 67 6c | 65 5d 20 74 75 72 6e 73 |ck-toggl|e] turns|
|000014d0| 20 64 69 72 65 63 74 6f | 72 79 20 74 72 61 63 6b | directo|ry track|
|000014e0| 69 6e 67 20 6f 6e 20 61 | 6e 64 20 6f 66 66 2e 0a |ing on a|nd off..|
|000014f0| 0a 5c 5c 7b 73 68 65 6c | 6c 2d 6d 6f 64 65 2d 6d |.\\{shel|l-mode-m|
|00001500| 61 70 7d 0a 43 75 73 74 | 6f 6d 69 73 61 74 69 6f |ap}.Cust|omisatio|
|00001510| 6e 3a 20 45 6e 74 72 79 | 20 74 6f 20 74 68 69 73 |n: Entry| to this|
|00001520| 20 6d 6f 64 65 20 72 75 | 6e 73 20 74 68 65 20 68 | mode ru|ns the h|
|00001530| 6f 6f 6b 73 20 6f 6e 20 | 60 63 6f 6d 69 6e 74 2d |ooks on |`comint-|
|00001540| 6d 6f 64 65 2d 68 6f 6f | 6b 27 20 61 6e 64 0a 60 |mode-hoo|k' and.`|
|00001550| 73 68 65 6c 6c 2d 6d 6f | 64 65 2d 68 6f 6f 6b 27 |shell-mo|de-hook'|
|00001560| 20 28 69 6e 20 74 68 61 | 74 20 6f 72 64 65 72 29 | (in tha|t order)|
|00001570| 2e 20 20 20 41 66 74 65 | 72 20 65 61 63 68 20 73 |. Afte|r each s|
|00001580| 68 65 6c 6c 20 6f 75 74 | 70 75 74 2c 20 74 68 65 |hell out|put, the|
|00001590| 20 68 6f 6f 6b 73 20 6f | 6e 0a 60 63 6f 6d 69 6e | hooks o|n.`comin|
|000015a0| 74 2d 6f 75 74 70 75 74 | 2d 66 69 6c 74 65 72 2d |t-output|-filter-|
|000015b0| 66 75 6e 63 74 69 6f 6e | 73 27 20 61 72 65 20 72 |function|s' are r|
|000015c0| 75 6e 2e 0a 0a 56 61 72 | 69 61 62 6c 65 20 60 73 |un...Var|iable `s|
|000015d0| 68 65 6c 6c 2d 6d 75 6c | 74 69 70 6c 65 2d 73 68 |hell-mul|tiple-sh|
|000015e0| 65 6c 6c 73 27 20 77 69 | 6c 6c 20 61 75 74 6f 6d |ells' wi|ll autom|
|000015f0| 61 74 69 63 6c 79 20 67 | 65 6e 65 72 61 74 65 20 |aticly g|enerate |
|00001600| 61 20 6e 65 77 20 73 68 | 65 6c 6c 20 65 61 63 68 |a new sh|ell each|
|00001610| 0a 74 69 6d 65 20 69 74 | 20 69 73 20 69 6e 76 6f |.time it| is invo|
|00001620| 6b 65 64 2e 0a 0a 56 61 | 72 69 61 62 6c 65 73 20 |ked...Va|riables |
|00001630| 60 73 68 65 6c 6c 2d 63 | 64 2d 72 65 67 65 78 70 |`shell-c|d-regexp|
|00001640| 27 2c 20 60 73 68 65 6c | 6c 2d 70 75 73 68 64 2d |', `shel|l-pushd-|
|00001650| 72 65 67 65 78 70 27 20 | 61 6e 64 20 60 73 68 65 |regexp' |and `she|
|00001660| 6c 6c 2d 70 6f 70 64 2d | 72 65 67 65 78 70 27 0a |ll-popd-|regexp'.|
|00001670| 61 72 65 20 75 73 65 64 | 20 74 6f 20 6d 61 74 63 |are used| to matc|
|00001680| 68 20 74 68 65 69 72 20 | 72 65 73 70 65 63 74 69 |h their |respecti|
|00001690| 76 65 20 63 6f 6d 6d 61 | 6e 64 73 2c 20 77 68 69 |ve comma|nds, whi|
|000016a0| 6c 65 20 60 73 68 65 6c | 6c 2d 70 75 73 68 64 2d |le `shel|l-pushd-|
|000016b0| 74 6f 68 6f 6d 65 27 2c | 0a 60 73 68 65 6c 6c 2d |tohome',|.`shell-|
|000016c0| 70 75 73 68 64 2d 64 65 | 78 74 72 61 63 74 27 20 |pushd-de|xtract' |
|000016d0| 61 6e 64 20 60 73 68 65 | 6c 6c 2d 70 75 73 68 64 |and `she|ll-pushd|
|000016e0| 2d 64 75 6e 69 71 75 65 | 27 20 63 6f 6e 74 72 6f |-dunique|' contro|
|000016f0| 6c 20 74 68 65 20 62 65 | 68 61 76 69 6f 72 20 6f |l the be|havior o|
|00001700| 66 20 74 68 65 0a 72 65 | 6c 65 76 61 6e 74 20 63 |f the.re|levant c|
|00001710| 6f 6d 6d 61 6e 64 2e 0a | 0a 56 61 72 69 61 62 6c |ommand..|.Variabl|
|00001720| 65 73 20 60 63 6f 6d 69 | 6e 74 2d 63 6f 6d 70 6c |es `comi|nt-compl|
|00001730| 65 74 69 6f 6e 2d 61 75 | 74 6f 6c 69 73 74 27 2c |etion-au|tolist',|
|00001740| 20 60 63 6f 6d 69 6e 74 | 2d 63 6f 6d 70 6c 65 74 | `comint|-complet|
|00001750| 69 6f 6e 2d 61 64 64 73 | 75 66 66 69 78 27 20 61 |ion-adds|uffix' a|
|00001760| 6e 64 0a 60 63 6f 6d 69 | 6e 74 2d 63 6f 6d 70 6c |nd.`comi|nt-compl|
|00001770| 65 74 69 6f 6e 2d 72 65 | 63 65 78 61 63 74 27 20 |etion-re|cexact' |
|00001780| 63 6f 6e 74 72 6f 6c 20 | 74 68 65 20 62 65 68 61 |control |the beha|
|00001790| 76 69 6f 72 20 6f 66 20 | 66 69 6c 65 20 6e 61 6d |vior of |file nam|
|000017a0| 65 2c 20 63 6f 6d 6d 61 | 6e 64 20 6e 61 6d 65 0a |e, comma|nd name.|
|000017b0| 61 6e 64 20 76 61 72 69 | 61 62 6c 65 20 6e 61 6d |and vari|able nam|
|000017c0| 65 20 63 6f 6d 70 6c 65 | 74 69 6f 6e 2e 20 20 56 |e comple|tion. V|
|000017d0| 61 72 69 61 62 6c 65 20 | 60 73 68 65 6c 6c 2d 63 |ariable |`shell-c|
|000017e0| 6f 6d 70 6c 65 74 69 6f | 6e 2d 65 78 65 63 6f 6e |ompletio|n-execon|
|000017f0| 6c 79 27 20 63 6f 6e 74 | 72 6f 6c 73 0a 74 68 65 |ly' cont|rols.the|
|00001800| 20 62 65 68 61 76 69 6f | 72 20 6f 66 20 63 6f 6d | behavio|r of com|
|00001810| 6d 61 6e 64 20 6e 61 6d | 65 20 63 6f 6d 70 6c 65 |mand nam|e comple|
|00001820| 74 69 6f 6e 2e 0a 0a 56 | 61 72 69 61 62 6c 65 73 |tion...V|ariables|
|00001830| 20 60 63 6f 6d 69 6e 74 | 2d 69 6e 70 75 74 2d 72 | `comint|-input-r|
|00001840| 69 6e 67 2d 66 69 6c 65 | 2d 6e 61 6d 65 27 20 61 |ing-file|-name' a|
|00001850| 6e 64 20 60 63 6f 6d 69 | 6e 74 2d 69 6e 70 75 74 |nd `comi|nt-input|
|00001860| 2d 61 75 74 6f 65 78 70 | 61 6e 64 27 20 63 6f 6e |-autoexp|and' con|
|00001870| 74 72 6f 6c 0a 74 68 65 | 20 69 6e 69 74 69 61 6c |trol.the| initial|
|00001880| 69 73 61 74 69 6f 6e 20 | 6f 66 20 74 68 65 20 69 |isation |of the i|
|00001890| 6e 70 75 74 20 72 69 6e | 67 20 68 69 73 74 6f 72 |nput rin|g histor|
|000018a0| 79 2c 20 61 6e 64 20 68 | 69 73 74 6f 72 79 20 65 |y, and h|istory e|
|000018b0| 78 70 61 6e 73 69 6f 6e | 2e 0a 0a 56 61 72 69 61 |xpansion|...Varia|
|000018c0| 62 6c 65 73 20 60 63 6f | 6d 69 6e 74 2d 6f 75 74 |bles `co|mint-out|
|000018d0| 70 75 74 2d 66 69 6c 74 | 65 72 2d 66 75 6e 63 74 |put-filt|er-funct|
|000018e0| 69 6f 6e 73 27 2c 20 60 | 63 6f 6d 69 6e 74 2d 73 |ions', `|comint-s|
|000018f0| 63 72 6f 6c 6c 2d 74 6f | 2d 62 6f 74 74 6f 6d 2d |croll-to|-bottom-|
|00001900| 6f 6e 2d 69 6e 70 75 74 | 27 2c 0a 61 6e 64 20 60 |on-input|',.and `|
|00001910| 63 6f 6d 69 6e 74 2d 73 | 63 72 6f 6c 6c 2d 74 6f |comint-s|croll-to|
|00001920| 2d 62 6f 74 74 6f 6d 2d | 6f 6e 2d 6f 75 74 70 75 |-bottom-|on-outpu|
|00001930| 74 27 20 63 6f 6e 74 72 | 6f 6c 20 77 68 65 74 68 |t' contr|ol wheth|
|00001940| 65 72 20 69 6e 70 75 74 | 20 61 6e 64 20 6f 75 74 |er input| and out|
|00001950| 70 75 74 0a 63 61 75 73 | 65 20 74 68 65 20 77 69 |put.caus|e the wi|
|00001960| 6e 64 6f 77 20 74 6f 20 | 73 63 72 6f 6c 6c 20 74 |ndow to |scroll t|
|00001970| 6f 20 74 68 65 20 65 6e | 64 20 6f 66 20 74 68 65 |o the en|d of the|
|00001980| 20 62 75 66 66 65 72 2e | 22 20 6e 69 6c 5d 29 0a | buffer.|" nil]).|
|00001990| 28 66 73 65 74 20 27 73 | 68 65 6c 6c 20 23 5b 6e |(fset 's|hell #[n|
|000019a0| 69 6c 20 22 c0 09 ab 83 | c0 aa 81 c2 1b 1c 09 ac |il "....|........|
|000019b0| 85 c5 0c 21 ac ca 0e 06 | ae 8b c7 c8 21 ae 86 c7 |...!....|....!...|
|000019c0| c9 21 ae 81 ca 1e 0b cc | 0e 0b 21 1e 0d ce 0e 0d |.!......|..!.....|
|000019d0| 50 1e 0f d0 d1 0e 0d d2 | 51 21 1e 13 d4 d5 0b 0e |P.......|Q!......|
|000019e0| 0b d6 0e 0f 21 ad 82 0e | 0f 0e 13 ab 8b d7 0e 13 |....!...|........|
|000019f0| 21 ab 85 0e 13 4a aa 81 | d8 25 71 14 d9 20 88 2c |!....J..|.%q.. .,|
|00001a00| da 0c 21 88 09 ad 85 db | dc c0 21 21 2a 87 22 20 |..!.....|..!!*." |
|00001a10| 5b 22 2a 73 68 65 6c 6c | 2a 22 20 73 68 65 6c 6c |["*shell|*" shell|
|00001a20| 2d 6d 75 6c 74 69 70 6c | 65 2d 73 68 65 6c 6c 73 |-multipl|e-shells|
|00001a30| 20 22 73 68 65 6c 6c 22 | 20 62 75 66 66 65 72 2d | "shell"| buffer-|
|00001a40| 6e 61 6d 65 20 62 75 66 | 66 65 72 20 63 6f 6d 69 |name buf|fer comi|
|00001a50| 6e 74 2d 63 68 65 63 6b | 2d 70 72 6f 63 20 65 78 |nt-check|-proc ex|
|00001a60| 70 6c 69 63 69 74 2d 73 | 68 65 6c 6c 2d 66 69 6c |plicit-s|hell-fil|
|00001a70| 65 2d 6e 61 6d 65 20 67 | 65 74 65 6e 76 20 22 45 |e-name g|etenv "E|
|00001a80| 53 48 45 4c 4c 22 20 22 | 53 48 45 4c 4c 22 20 22 |SHELL" "|SHELL" "|
|00001a90| 2f 62 69 6e 2f 73 68 22 | 20 70 72 6f 67 20 66 69 |/bin/sh"| prog fi|
|00001aa0| 6c 65 2d 6e 61 6d 65 2d | 6e 6f 6e 64 69 72 65 63 |le-name-|nondirec|
|00001ab0| 74 6f 72 79 20 6e 61 6d | 65 20 22 7e 2f 2e 65 6d |tory nam|e "~/.em|
|00001ac0| 61 63 73 5f 22 20 73 74 | 61 72 74 66 69 6c 65 20 |acs_" st|artfile |
|00001ad0| 69 6e 74 65 72 6e 2d 73 | 6f 66 74 20 22 65 78 70 |intern-s|oft "exp|
|00001ae0| 6c 69 63 69 74 2d 22 20 | 22 2d 61 72 67 73 22 20 |licit-" |"-args" |
|00001af0| 78 61 72 67 73 2d 6e 61 | 6d 65 20 61 70 70 6c 79 |xargs-na|me apply|
|00001b00| 20 6d 61 6b 65 2d 63 6f | 6d 69 6e 74 20 66 69 6c | make-co|mint fil|
|00001b10| 65 2d 65 78 69 73 74 73 | 2d 70 20 62 6f 75 6e 64 |e-exists|-p bound|
|00001b20| 70 20 28 22 2d 69 22 29 | 20 73 68 65 6c 6c 2d 6d |p ("-i")| shell-m|
|00001b30| 6f 64 65 20 73 77 69 74 | 63 68 2d 74 6f 2d 62 75 |ode swit|ch-to-bu|
|00001b40| 66 66 65 72 20 72 65 6e | 61 6d 65 2d 62 75 66 66 |ffer ren|ame-buff|
|00001b50| 65 72 20 67 65 6e 65 72 | 61 74 65 2d 6e 65 77 2d |er gener|ate-new-|
|00001b60| 62 75 66 66 65 72 2d 6e | 61 6d 65 5d 20 37 20 22 |buffer-n|ame] 7 "|
|00001b70| 5c 0a 52 75 6e 20 61 6e | 20 69 6e 66 65 72 69 6f |\.Run an| inferio|
|00001b80| 72 20 73 68 65 6c 6c 2c | 20 77 69 74 68 20 49 2f |r shell,| with I/|
|00001b90| 4f 20 74 68 72 6f 75 67 | 68 20 62 75 66 66 65 72 |O throug|h buffer|
|00001ba0| 20 2a 73 68 65 6c 6c 2a | 2e 0a 49 66 20 62 75 66 | *shell*|..If buf|
|00001bb0| 66 65 72 20 65 78 69 73 | 74 73 20 62 75 74 20 73 |fer exis|ts but s|
|00001bc0| 68 65 6c 6c 20 70 72 6f | 63 65 73 73 20 69 73 20 |hell pro|cess is |
|00001bd0| 6e 6f 74 20 72 75 6e 6e | 69 6e 67 2c 20 6d 61 6b |not runn|ing, mak|
|00001be0| 65 20 6e 65 77 20 73 68 | 65 6c 6c 2e 0a 49 66 20 |e new sh|ell..If |
|00001bf0| 62 75 66 66 65 72 20 65 | 78 69 73 74 73 20 61 6e |buffer e|xists an|
|00001c00| 64 20 73 68 65 6c 6c 20 | 70 72 6f 63 65 73 73 20 |d shell |process |
|00001c10| 69 73 20 72 75 6e 6e 69 | 6e 67 2c 20 0a 20 6a 75 |is runni|ng, . ju|
|00001c20| 73 74 20 73 77 69 74 63 | 68 20 74 6f 20 62 75 66 |st switc|h to buf|
|00001c30| 66 65 72 20 60 2a 73 68 | 65 6c 6c 2a 27 2e 0a 50 |fer `*sh|ell*'..P|
|00001c40| 72 6f 67 72 61 6d 20 75 | 73 65 64 20 63 6f 6d 65 |rogram u|sed come|
|00001c50| 73 20 66 72 6f 6d 20 76 | 61 72 69 61 62 6c 65 20 |s from v|ariable |
|00001c60| 60 65 78 70 6c 69 63 69 | 74 2d 73 68 65 6c 6c 2d |`explici|t-shell-|
|00001c70| 66 69 6c 65 2d 6e 61 6d | 65 27 2c 0a 20 6f 72 20 |file-nam|e',. or |
|00001c80| 28 69 66 20 74 68 61 74 | 20 69 73 20 6e 69 6c 29 |(if that| is nil)|
|00001c90| 20 66 72 6f 6d 20 74 68 | 65 20 45 53 48 45 4c 4c | from th|e ESHELL|
|00001ca0| 20 65 6e 76 69 72 6f 6e | 6d 65 6e 74 20 76 61 72 | environ|ment var|
|00001cb0| 69 61 62 6c 65 2c 0a 20 | 6f 72 20 65 6c 73 65 20 |iable,. |or else |
|00001cc0| 66 72 6f 6d 20 53 48 45 | 4c 4c 20 69 66 20 74 68 |from SHE|LL if th|
|00001cd0| 65 72 65 20 69 73 20 6e | 6f 20 45 53 48 45 4c 4c |ere is n|o ESHELL|
|00001ce0| 2e 0a 49 66 20 61 20 66 | 69 6c 65 20 60 7e 2f 2e |..If a f|ile `~/.|
|00001cf0| 65 6d 61 63 73 5f 53 48 | 45 4c 4c 4e 41 4d 45 27 |emacs_SH|ELLNAME'|
|00001d00| 20 65 78 69 73 74 73 2c | 20 69 74 20 69 73 20 67 | exists,| it is g|
|00001d10| 69 76 65 6e 20 61 73 20 | 69 6e 69 74 69 61 6c 20 |iven as |initial |
|00001d20| 69 6e 70 75 74 0a 20 28 | 4e 6f 74 65 20 74 68 61 |input. (|Note tha|
|00001d30| 74 20 74 68 69 73 20 6d | 61 79 20 6c 6f 73 65 20 |t this m|ay lose |
|00001d40| 64 75 65 20 74 6f 20 61 | 20 74 69 6d 69 6e 67 20 |due to a| timing |
|00001d50| 65 72 72 6f 72 20 69 66 | 20 74 68 65 20 73 68 65 |error if| the she|
|00001d60| 6c 6c 0a 20 20 64 69 73 | 63 61 72 64 73 20 69 6e |ll. dis|cards in|
|00001d70| 70 75 74 20 77 68 65 6e | 20 69 74 20 73 74 61 72 |put when| it star|
|00001d80| 74 73 20 75 70 2e 29 0a | 54 68 65 20 62 75 66 66 |ts up.).|The buff|
|00001d90| 65 72 20 69 73 20 70 75 | 74 20 69 6e 20 53 68 65 |er is pu|t in She|
|00001da0| 6c 6c 20 6d 6f 64 65 2c | 20 67 69 76 69 6e 67 20 |ll mode,| giving |
|00001db0| 63 6f 6d 6d 61 6e 64 73 | 20 66 6f 72 20 73 65 6e |commands| for sen|
|00001dc0| 64 69 6e 67 20 69 6e 70 | 75 74 0a 61 6e 64 20 63 |ding inp|ut.and c|
|00001dd0| 6f 6e 74 72 6f 6c 6c 69 | 6e 67 20 74 68 65 20 73 |ontrolli|ng the s|
|00001de0| 75 62 6a 6f 62 73 20 6f | 66 20 74 68 65 20 73 68 |ubjobs o|f the sh|
|00001df0| 65 6c 6c 2e 20 20 53 65 | 65 20 60 73 68 65 6c 6c |ell. Se|e `shell|
|00001e00| 2d 6d 6f 64 65 27 2e 0a | 53 65 65 20 61 6c 73 6f |-mode'..|See also|
|00001e10| 20 74 68 65 20 76 61 72 | 69 61 62 6c 65 20 60 73 | the var|iable `s|
|00001e20| 68 65 6c 6c 2d 70 72 6f | 6d 70 74 2d 70 61 74 74 |hell-pro|mpt-patt|
|00001e30| 65 72 6e 27 2e 0a 0a 54 | 68 65 20 73 68 65 6c 6c |ern'...T|he shell|
|00001e40| 20 66 69 6c 65 20 6e 61 | 6d 65 20 28 73 61 6e 73 | file na|me (sans|
|00001e50| 20 64 69 72 65 63 74 6f | 72 69 65 73 29 20 69 73 | directo|ries) is|
|00001e60| 20 75 73 65 64 20 74 6f | 20 6d 61 6b 65 20 61 20 | used to| make a |
|00001e70| 73 79 6d 62 6f 6c 20 6e | 61 6d 65 0a 73 75 63 68 |symbol n|ame.such|
|00001e80| 20 61 73 20 60 65 78 70 | 6c 69 63 69 74 2d 63 73 | as `exp|licit-cs|
|00001e90| 68 2d 61 72 67 73 27 2e | 20 20 49 66 20 74 68 61 |h-args'.| If tha|
|00001ea0| 74 20 73 79 6d 62 6f 6c | 20 69 73 20 61 20 76 61 |t symbol| is a va|
|00001eb0| 72 69 61 62 6c 65 2c 0a | 69 74 73 20 76 61 6c 75 |riable,.|its valu|
|00001ec0| 65 20 69 73 20 75 73 65 | 64 20 61 73 20 61 20 6c |e is use|d as a l|
|00001ed0| 69 73 74 20 6f 66 20 61 | 72 67 75 6d 65 6e 74 73 |ist of a|rguments|
|00001ee0| 20 77 68 65 6e 20 69 6e | 76 6f 6b 69 6e 67 20 74 | when in|voking t|
|00001ef0| 68 65 20 73 68 65 6c 6c | 2e 0a 4f 74 68 65 72 77 |he shell|..Otherw|
|00001f00| 69 73 65 2c 20 6f 6e 65 | 20 61 72 67 75 6d 65 6e |ise, one| argumen|
|00001f10| 74 20 60 2d 69 27 20 69 | 73 20 70 61 73 73 65 64 |t `-i' i|s passed|
|00001f20| 20 74 6f 20 74 68 65 20 | 73 68 65 6c 6c 2e 0a 0a | to the |shell...|
|00001f30| 28 54 79 70 65 20 5c 5c | 5b 64 65 73 63 72 69 62 |(Type \\|[describ|
|00001f40| 65 2d 6d 6f 64 65 5d 20 | 69 6e 20 74 68 65 20 73 |e-mode] |in the s|
|00001f50| 68 65 6c 6c 20 62 75 66 | 66 65 72 20 66 6f 72 20 |hell buf|fer for |
|00001f60| 61 20 6c 69 73 74 20 6f | 66 20 63 6f 6d 6d 61 6e |a list o|f comman|
|00001f70| 64 73 2e 29 22 20 6e 69 | 6c 5d 29 0a 28 66 73 65 |ds.)" ni|l]).(fse|
|00001f80| 74 20 27 73 68 65 6c 6c | 2d 64 69 72 65 63 74 6f |t 'shell|-directo|
|00001f90| 72 79 2d 74 72 61 63 6b | 65 72 20 23 5b 28 73 74 |ry-track|er #[(st|
|00001fa0| 72 29 20 22 08 ad 84 c1 | c2 c3 8f 87 22 20 5b 73 |r) "....|...." [s|
|00001fb0| 68 65 6c 6c 2d 64 69 72 | 74 72 61 63 6b 70 20 65 |hell-dir|trackp e|
|00001fc0| 72 72 20 28 62 79 74 65 | 2d 63 6f 64 65 20 22 c0 |rr (byte|-code ".|
|00001fd0| c1 5c 6e 5c 22 88 c3 95 | c4 89 89 1d 1e 06 1e 07 |.\n\"...|........|
|00001fe0| 1e 08 c0 0e 09 5c 6e 0e | 08 23 ad dc c3 95 16 07 |.....\n.|.#......|
|00001ff0| ca 5c 6e 0e 08 0e 07 4f | c3 89 23 16 06 ca 5c 6e |.\n....O|..#...\n|
|00002000| 0e 08 0e 07 4f cb 89 23 | 15 c0 0e 0c 0e 06 5c 22 |....O..#|......\"|
|00002010| c3 3d ab 88 cd ce 0d 21 | 21 88 aa a2 c0 0e 0f 0e |.=.....!|!.......|
|00002020| 06 5c 22 c3 3d ab 88 d0 | ce 0d 21 21 88 aa 90 c0 |.\".=...|..!!....|
|00002030| 0e 11 0e 06 5c 22 c3 3d | ab 86 d2 ce 0d 21 21 88 |....\".=|.....!!.|
|00002040| c0 d3 5c 6e 0e 07 23 88 | c3 95 16 08 aa 1b 2c 87 |..\n..#.|......,.|
|00002050| 22 20 5b 73 74 72 69 6e | 67 2d 6d 61 74 63 68 20 |" [strin|g-match |
|00002060| 22 5e 5b 3b 5c 5c 73 20 | 5d 2a 22 20 73 74 72 20 |"^[;\\s |]*" str |
|00002070| 30 20 6e 69 6c 20 61 72 | 67 31 20 63 6d 64 20 65 |0 nil ar|g1 cmd e|
|00002080| 6e 64 20 73 74 61 72 74 | 20 73 68 65 6c 6c 2d 63 |nd start| shell-c|
|00002090| 6f 6d 6d 61 6e 64 2d 72 | 65 67 65 78 70 20 63 6f |ommand-r|egexp co|
|000020a0| 6d 69 6e 74 2d 61 72 67 | 75 6d 65 6e 74 73 20 31 |mint-arg|uments 1|
|000020b0| 20 73 68 65 6c 6c 2d 70 | 6f 70 64 2d 72 65 67 65 | shell-p|opd-rege|
|000020c0| 78 70 20 73 68 65 6c 6c | 2d 70 72 6f 63 65 73 73 |xp shell|-process|
|000020d0| 2d 70 6f 70 64 20 73 75 | 62 73 74 69 74 75 74 65 |-popd su|bstitute|
|000020e0| 2d 69 6e 2d 66 69 6c 65 | 2d 6e 61 6d 65 20 73 68 |-in-file|-name sh|
|000020f0| 65 6c 6c 2d 70 75 73 68 | 64 2d 72 65 67 65 78 70 |ell-push|d-regexp|
|00002100| 20 73 68 65 6c 6c 2d 70 | 72 6f 63 65 73 73 2d 70 | shell-p|rocess-p|
|00002110| 75 73 68 64 20 73 68 65 | 6c 6c 2d 63 64 2d 72 65 |ushd she|ll-cd-re|
|00002120| 67 65 78 70 20 73 68 65 | 6c 6c 2d 70 72 6f 63 65 |gexp she|ll-proce|
|00002130| 73 73 2d 63 64 20 22 5b | 3b 5c 5c 73 20 5d 2a 22 |ss-cd "[|;\\s ]*"|
|00002140| 5d 20 34 29 20 28 28 65 | 72 72 6f 72 20 28 62 79 |] 4) ((e|rror (by|
|00002150| 74 65 2d 63 6f 64 65 20 | 22 c0 c1 21 88 c2 0b c4 |te-code |"..!....|
|00002160| 5c 22 87 22 20 5b 6d 65 | 73 73 61 67 65 20 6e 69 |\"." [me|ssage ni|
|00002170| 6c 20 64 69 73 70 6c 61 | 79 2d 65 72 72 6f 72 20 |l displa|y-error |
|00002180| 65 72 72 20 74 5d 20 33 | 29 29 29 5d 20 33 20 22 |err t] 3|)))] 3 "|
|00002190| 5c 0a 54 72 61 63 6b 73 | 20 63 64 2c 20 70 75 73 |\.Tracks| cd, pus|
|000021a0| 68 64 20 61 6e 64 20 70 | 6f 70 64 20 63 6f 6d 6d |hd and p|opd comm|
|000021b0| 61 6e 64 73 20 69 73 73 | 75 65 64 20 74 6f 20 74 |ands iss|ued to t|
|000021c0| 68 65 20 73 68 65 6c 6c | 2e 0a 54 68 69 73 20 66 |he shell|..This f|
|000021d0| 75 6e 63 74 69 6f 6e 20 | 69 73 20 63 61 6c 6c 65 |unction |is calle|
|000021e0| 64 20 6f 6e 20 65 61 63 | 68 20 69 6e 70 75 74 20 |d on eac|h input |
|000021f0| 70 61 73 73 65 64 20 74 | 6f 20 74 68 65 20 73 68 |passed t|o the sh|
|00002200| 65 6c 6c 2e 0a 49 74 20 | 77 61 74 63 68 65 73 20 |ell..It |watches |
|00002210| 66 6f 72 20 63 64 2c 20 | 70 75 73 68 64 20 61 6e |for cd, |pushd an|
|00002220| 64 20 70 6f 70 64 20 63 | 6f 6d 6d 61 6e 64 73 20 |d popd c|ommands |
|00002230| 61 6e 64 20 73 65 74 73 | 20 74 68 65 20 62 75 66 |and sets| the buf|
|00002240| 66 65 72 27 73 0a 64 65 | 66 61 75 6c 74 20 64 69 |fer's.de|fault di|
|00002250| 72 65 63 74 6f 72 79 20 | 74 6f 20 74 72 61 63 6b |rectory |to track|
|00002260| 20 74 68 65 73 65 20 63 | 6f 6d 6d 61 6e 64 73 2e | these c|ommands.|
|00002270| 0a 0a 59 6f 75 20 6d 61 | 79 20 74 6f 67 67 6c 65 |..You ma|y toggle|
|00002280| 20 74 68 69 73 20 74 72 | 61 63 6b 69 6e 67 20 6f | this tr|acking o|
|00002290| 6e 20 61 6e 64 20 6f 66 | 66 20 77 69 74 68 20 5c |n and of|f with \|
|000022a0| 5c 5b 73 68 65 6c 6c 2d | 64 69 72 74 72 61 63 6b |\[shell-|dirtrack|
|000022b0| 2d 74 6f 67 67 6c 65 5d | 2e 0a 49 66 20 65 6d 61 |-toggle]|..If ema|
|000022c0| 63 73 20 67 65 74 73 20 | 63 6f 6e 66 75 73 65 64 |cs gets |confused|
|000022d0| 2c 20 79 6f 75 20 63 61 | 6e 20 72 65 73 79 6e 63 |, you ca|n resync|
|000022e0| 20 77 69 74 68 20 74 68 | 65 20 73 68 65 6c 6c 0a | with th|e shell.|
|000022f0| 77 69 74 68 20 5c 5c 5b | 73 68 65 6c 6c 2d 72 65 |with \\[|shell-re|
|00002300| 73 79 6e 63 2d 64 69 72 | 73 5d 2e 0a 0a 53 65 65 |sync-dir|s]...See|
|00002310| 20 76 61 72 69 61 62 6c | 65 73 20 60 73 68 65 6c | variabl|es `shel|
|00002320| 6c 2d 63 64 2d 72 65 67 | 65 78 70 27 2c 20 60 73 |l-cd-reg|exp', `s|
|00002330| 68 65 6c 6c 2d 70 75 73 | 68 64 2d 72 65 67 65 78 |hell-pus|hd-regex|
|00002340| 70 27 2c 20 61 6e 64 20 | 60 73 68 65 6c 6c 2d 70 |p', and |`shell-p|
|00002350| 6f 70 64 2d 72 65 67 65 | 78 70 27 2c 0a 77 68 69 |opd-rege|xp',.whi|
|00002360| 6c 65 20 60 73 68 65 6c | 6c 2d 70 75 73 68 64 2d |le `shel|l-pushd-|
|00002370| 74 6f 68 6f 6d 65 27 2c | 20 60 73 68 65 6c 6c 2d |tohome',| `shell-|
|00002380| 70 75 73 68 64 2d 64 65 | 78 74 72 61 63 74 27 20 |pushd-de|xtract' |
|00002390| 61 6e 64 20 60 73 68 65 | 6c 6c 2d 70 75 73 68 64 |and `she|ll-pushd|
|000023a0| 2d 64 75 6e 69 71 75 65 | 27 0a 63 6f 6e 74 72 6f |-dunique|'.contro|
|000023b0| 6c 20 74 68 65 20 62 65 | 68 61 76 69 6f 72 20 6f |l the be|havior o|
|000023c0| 66 20 74 68 65 20 72 65 | 6c 65 76 61 6e 74 20 63 |f the re|levant c|
|000023d0| 6f 6d 6d 61 6e 64 2e 0a | 0a 45 6e 76 69 72 6f 6e |ommand..|.Environ|
|000023e0| 6d 65 6e 74 20 76 61 72 | 69 61 62 6c 65 73 20 61 |ment var|iables a|
|000023f0| 72 65 20 65 78 70 61 6e | 64 65 64 2c 20 73 65 65 |re expan|ded, see|
|00002400| 20 66 75 6e 63 74 69 6f | 6e 20 60 73 75 62 73 74 | functio|n `subst|
|00002410| 69 74 75 74 65 2d 69 6e | 2d 66 69 6c 65 2d 6e 61 |itute-in|-file-na|
|00002420| 6d 65 27 2e 22 5d 29 0a | 28 62 79 74 65 2d 63 6f |me'."]).|(byte-co|
|00002430| 64 65 20 22 c0 c1 4d 88 | c2 c3 4d 88 c4 c5 4d 88 |de "..M.|..M...M.|
|00002440| c6 c7 4d 88 c8 c9 4d 87 | 22 20 5b 73 68 65 6c 6c |..M...M.|" [shell|
|00002450| 2d 63 64 2d 31 20 23 5b | 28 64 69 72 20 64 69 72 |-cd-1 #[|(dir dir|
|00002460| 73 74 61 63 6b 29 20 22 | c0 c1 c2 8f 87 22 20 5b |stack) "|....." [|
|00002470| 6e 69 6c 20 28 62 79 74 | 65 2d 63 6f 64 65 20 22 |nil (byt|e-code "|
|00002480| c0 09 21 ab 88 c2 0b 09 | 50 21 88 aa 84 c4 09 21 |..!.....|P!.....!|
|00002490| 88 0d 16 06 c7 20 87 22 | 20 5b 66 69 6c 65 2d 6e |..... ."| [file-n|
|000024a0| 61 6d 65 2d 61 62 73 6f | 6c 75 74 65 2d 70 20 64 |ame-abso|lute-p d|
|000024b0| 69 72 20 63 64 2d 61 62 | 73 6f 6c 75 74 65 20 63 |ir cd-ab|solute c|
|000024c0| 6f 6d 69 6e 74 2d 66 69 | 6c 65 2d 6e 61 6d 65 2d |omint-fi|le-name-|
|000024d0| 70 72 65 66 69 78 20 63 | 64 20 64 69 72 73 74 61 |prefix c|d dirsta|
|000024e0| 63 6b 20 73 68 65 6c 6c | 2d 64 69 72 73 74 61 63 |ck shell|-dirstac|
|000024f0| 6b 20 73 68 65 6c 6c 2d | 64 69 72 73 74 61 63 6b |k shell-|dirstack|
|00002500| 2d 6d 65 73 73 61 67 65 | 5d 20 33 29 20 28 28 66 |-message|] 3) ((f|
|00002510| 69 6c 65 2d 65 72 72 6f | 72 20 28 6d 65 73 73 61 |ile-erro|r (messa|
|00002520| 67 65 20 22 43 6f 75 6c | 64 6e 27 74 20 63 64 2e |ge "Coul|dn't cd.|
|00002530| 22 29 29 29 5d 20 33 5d | 20 73 68 65 6c 6c 2d 70 |")))] 3]| shell-p|
|00002540| 72 6f 63 65 73 73 2d 70 | 6f 70 64 20 23 5b 28 61 |rocess-p|opd #[(a|
|00002550| 72 67 29 20 22 c0 09 21 | ae 81 c2 89 1b ab 90 0b |rg) "..!|........|
|00002560| c2 55 ab 8b 0c ab 88 c5 | 0c 40 0c 41 5c 22 aa ae |.U......|.@.A\"..|
|00002570| 0b ab a6 0b c2 56 ab a1 | 0b 0c 47 58 ab 9b c6 0c |.....V..|..GX....|
|00002580| 42 1e 07 0b 53 0e 07 9b | 89 1e 08 89 41 41 a1 88 |B...S...|....AA..|
|00002590| 0e 07 41 14 c9 20 2a aa | 85 ca cb cc 21 21 29 87 |..A.. *.|....!!).|
|000025a0| 22 20 5b 73 68 65 6c 6c | 2d 65 78 74 72 61 63 74 |" [shell|-extract|
|000025b0| 2d 6e 75 6d 20 61 72 67 | 20 30 20 6e 75 6d 20 73 |-num arg| 0 num s|
|000025c0| 68 65 6c 6c 2d 64 69 72 | 73 74 61 63 6b 20 73 68 |hell-dir|stack sh|
|000025d0| 65 6c 6c 2d 63 64 2d 31 | 20 6e 69 6c 20 64 73 20 |ell-cd-1| nil ds |
|000025e0| 63 65 6c 6c 20 73 68 65 | 6c 6c 2d 64 69 72 73 74 |cell she|ll-dirst|
|000025f0| 61 63 6b 2d 6d 65 73 73 | 61 67 65 20 65 72 72 6f |ack-mess|age erro|
|00002600| 72 20 6d 65 73 73 61 67 | 65 20 22 43 6f 75 6c 64 |r messag|e "Could|
|00002610| 6e 27 74 20 70 6f 70 64 | 2e 22 5d 20 34 5d 20 73 |n't popd|."] 4] s|
|00002620| 68 65 6c 6c 2d 70 72 6f | 63 65 73 73 2d 63 64 20 |hell-pro|cess-cd |
|00002630| 23 5b 28 61 72 67 29 20 | 22 08 47 c1 55 ab 85 c2 |#[(arg) |".G.U...|
|00002640| c3 21 aa 89 08 c4 98 ab | 83 0d aa 81 08 1e 06 0e |.!......|........|
|00002650| 07 15 c8 0e 06 0e 09 5c | 22 29 87 22 20 5b 61 72 |.......\|")." [ar|
|00002660| 67 20 30 20 67 65 74 65 | 6e 76 20 22 48 4f 4d 45 |g 0 gete|nv "HOME|
|00002670| 22 20 22 2d 22 20 73 68 | 65 6c 6c 2d 6c 61 73 74 |" "-" sh|ell-last|
|00002680| 2d 64 69 72 20 6e 65 77 | 2d 64 69 72 20 64 65 66 |-dir new|-dir def|
|00002690| 61 75 6c 74 2d 64 69 72 | 65 63 74 6f 72 79 20 73 |ault-dir|ectory s|
|000026a0| 68 65 6c 6c 2d 63 64 2d | 31 20 73 68 65 6c 6c 2d |hell-cd-|1 shell-|
|000026b0| 64 69 72 73 74 61 63 6b | 5d 20 33 5d 20 73 68 65 |dirstack|] 3] she|
|000026c0| 6c 6c 2d 70 72 6f 63 65 | 73 73 2d 70 75 73 68 64 |ll-proce|ss-pushd|
|000026d0| 20 23 5b 28 61 72 67 29 | 20 22 c0 09 21 1a 09 47 | #[(arg)| "..!..G|
|000026e0| c3 55 ab a6 0c ab 86 c5 | c6 21 82 b6 00 0e 07 ab |.U......|.!......|
|000026f0| 93 0e 08 1e 09 ca 0e 07 | 40 0e 09 0e 07 41 42 5c |........|@....AB\|
|00002700| 22 29 82 b6 00 cb cc 21 | 82 b6 00 5c 6e a7 ab e6 |").....!|...\n...|
|00002710| 5c 6e 0e 07 47 56 ab 85 | cb cd 21 aa f6 5c 6e c3 |\n..GV..|..!..\n.|
|00002720| 55 ab 87 ce cb cf 21 21 | aa ea 0e 10 ab 99 5c 6e |U.....!!|......\n|
|00002730| 53 0e 07 38 1e 11 d2 09 | 21 88 c5 0e 08 21 88 ca |S..8....|!....!..|
|00002740| 0e 11 0e 07 5c 22 29 aa | cd 0e 08 0e 07 42 89 1e |....\").|.....B..|
|00002750| 13 47 1e 14 5c 6e 0e 13 | 9b 1e 15 d6 0e 14 5c 6e |.G..\n..|......\n|
|00002760| 5a d6 0e 13 21 9b 21 1e | 17 d8 0e 15 0e 17 5c 22 |Z...!.!.|......\"|
|00002770| 1e 19 ca 0e 19 40 0e 19 | 41 5c 22 2d aa 9c 0e 08 |.....@..|A\"-....|
|00002780| 1e 1a ca 09 0e 1b ab 87 | 0e 1a 0e 07 9d ac 87 0e |........|........|
|00002790| 1a 0e 07 42 aa 82 0e 07 | 5c 22 29 29 87 22 20 5b |...B....|\"))." [|
|000027a0| 73 68 65 6c 6c 2d 65 78 | 74 72 61 63 74 2d 6e 75 |shell-ex|tract-nu|
|000027b0| 6d 20 61 72 67 20 6e 75 | 6d 20 30 20 73 68 65 6c |m arg nu|m 0 shel|
|000027c0| 6c 2d 70 75 73 68 64 2d | 74 6f 68 6f 6d 65 20 73 |l-pushd-|tohome s|
|000027d0| 68 65 6c 6c 2d 70 72 6f | 63 65 73 73 2d 70 75 73 |hell-pro|cess-pus|
|000027e0| 68 64 20 22 7e 22 20 73 | 68 65 6c 6c 2d 64 69 72 |hd "~" s|hell-dir|
|000027f0| 73 74 61 63 6b 20 64 65 | 66 61 75 6c 74 2d 64 69 |stack de|fault-di|
|00002800| 72 65 63 74 6f 72 79 20 | 6f 6c 64 20 73 68 65 6c |rectory |old shel|
|00002810| 6c 2d 63 64 2d 31 20 6d | 65 73 73 61 67 65 20 22 |l-cd-1 m|essage "|
|00002820| 44 69 72 65 63 74 6f 72 | 79 20 73 74 61 63 6b 20 |Director|y stack |
|00002830| 65 6d 70 74 79 2e 22 20 | 22 44 69 72 65 63 74 6f |empty." |"Directo|
|00002840| 72 79 20 73 74 61 63 6b | 20 6e 6f 74 20 74 68 61 |ry stack| not tha|
|00002850| 74 20 64 65 65 70 2e 22 | 20 65 72 72 6f 72 20 22 |t deep."| error "|
|00002860| 43 6f 75 6c 64 6e 27 74 | 20 63 64 2e 22 20 73 68 |Couldn't| cd." sh|
|00002870| 65 6c 6c 2d 70 75 73 68 | 64 2d 64 65 78 74 72 61 |ell-push|d-dextra|
|00002880| 63 74 20 64 69 72 20 73 | 68 65 6c 6c 2d 70 72 6f |ct dir s|hell-pro|
|00002890| 63 65 73 73 2d 70 6f 70 | 64 20 64 73 20 64 73 6c |cess-pop|d ds dsl|
|000028a0| 65 6e 20 66 72 6f 6e 74 | 20 72 65 76 65 72 73 65 |en front| reverse|
|000028b0| 20 62 61 63 6b 20 61 70 | 70 65 6e 64 20 6e 65 77 | back ap|pend new|
|000028c0| 2d 64 73 20 6f 6c 64 2d | 77 64 20 73 68 65 6c 6c |-ds old-|wd shell|
|000028d0| 2d 70 75 73 68 64 2d 64 | 75 6e 69 71 75 65 5d 20 |-pushd-d|unique] |
|000028e0| 35 5d 20 73 68 65 6c 6c | 2d 65 78 74 72 61 63 74 |5] shell|-extract|
|000028f0| 2d 6e 75 6d 20 23 5b 28 | 73 74 72 29 20 22 c0 c1 |-num #[(|str) "..|
|00002900| 5c 6e 5c 22 ad 83 c3 5c | 6e 21 87 22 20 5b 73 74 |\n\"...\|n!." [st|
|00002910| 72 69 6e 67 2d 6d 61 74 | 63 68 20 22 5e 5c 5c 2b |ring-mat|ch "^\\+|
|00002920| 5b 31 2d 39 5d 5b 30 2d | 39 5d 2a 24 22 20 73 74 |[1-9][0-|9]*$" st|
|00002930| 72 20 73 74 72 69 6e 67 | 2d 74 6f 2d 69 6e 74 5d |r string|-to-int]|
|00002940| 20 33 5d 5d 20 32 29 0a | 28 66 73 65 74 20 27 73 | 3]] 2).|(fset 's|
|00002950| 68 65 6c 6c 2d 64 69 72 | 74 72 61 63 6b 2d 74 6f |hell-dir|track-to|
|00002960| 67 67 6c 65 20 23 5b 6e | 69 6c 20 22 08 3f 10 c1 |ggle #[n|il ".?..|
|00002970| c2 08 ab 83 c3 aa 81 c4 | 5c 22 87 22 20 5b 73 68 |........|\"." [sh|
|00002980| 65 6c 6c 2d 64 69 72 74 | 72 61 63 6b 70 20 6d 65 |ell-dirt|rackp me|
|00002990| 73 73 61 67 65 20 22 44 | 69 72 65 63 74 6f 72 79 |ssage "D|irectory|
|000029a0| 20 74 72 61 63 6b 69 6e | 67 20 25 73 22 20 22 4f | trackin|g %s" "O|
|000029b0| 4e 22 20 22 4f 46 46 22 | 5d 20 33 20 22 5c 0a 54 |N" "OFF"|] 3 "\.T|
|000029c0| 75 72 6e 20 64 69 72 65 | 63 74 6f 72 79 20 74 72 |urn dire|ctory tr|
|000029d0| 61 63 6b 69 6e 67 20 6f | 6e 20 61 6e 64 20 6f 66 |acking o|n and of|
|000029e0| 66 20 69 6e 20 61 20 73 | 68 65 6c 6c 20 62 75 66 |f in a s|hell buf|
|000029f0| 66 65 72 2e 22 20 6e 69 | 6c 5d 29 0a 28 66 73 65 |fer." ni|l]).(fse|
|00002a00| 74 20 27 73 68 65 6c 6c | 2d 72 65 73 79 6e 63 2d |t 'shell|-resync-|
|00002a10| 64 69 72 73 20 23 5b 6e | 69 6c 20 22 c0 70 21 19 |dirs #[n|il ".p!.|
|00002a20| c2 09 21 89 1b 62 88 0c | 63 88 c5 63 88 c6 c7 21 |..!..b..|c..c...!|
|00002a30| 88 c8 09 0c 5c 22 88 c8 | 09 c5 5c 22 88 0b 60 c9 |....\"..|..\"..`.|
|00002a40| 93 88 60 1e 5c 6e c5 63 | 88 cb cc 21 88 cd ce 21 |..`.\n.c|...!...!|
|00002a50| ac 94 cf 09 21 88 0e 5c | 6e 62 88 cd d0 21 ab 6e |....!..\|nb...!.n|
|00002a60| 60 c7 95 7c 88 aa 67 29 | 0b 62 88 d1 cc 21 88 c7 |`..|..g)|.b...!..|
|00002a70| 94 c7 95 53 7b 89 1e 12 | 47 1e 13 c9 1e 14 c7 1e |...S{...|G.......|
|00002a80| 15 c7 0e 13 57 ab 9b d6 | d7 0e 12 0e 15 23 88 0e |....W...|.....#..|
|00002a90| 12 cc 94 cc 95 4f 0e 14 | 42 16 14 c7 95 89 16 15 |.....O..|B.......|
|00002aa0| aa 60 d8 0e 14 21 1e 14 | d9 0e 14 40 0e 14 41 5c |.`...!..|...@..A\|
|00002ab0| 22 2e 07 87 22 20 5b 67 | 65 74 2d 62 75 66 66 65 |"..." [g|et-buffe|
|00002ac0| 72 2d 70 72 6f 63 65 73 | 73 20 70 72 6f 63 20 70 |r-proces|s proc p|
|00002ad0| 72 6f 63 65 73 73 2d 6d | 61 72 6b 20 70 6d 61 72 |rocess-m|ark pmar|
|00002ae0| 6b 20 73 68 65 6c 6c 2d | 64 69 72 73 74 61 63 6b |k shell-|dirstack|
|00002af0| 2d 71 75 65 72 79 20 22 | 5c 6e 22 20 73 69 74 2d |-query "|\n" sit-|
|00002b00| 66 6f 72 20 30 20 63 6f | 6d 69 6e 74 2d 73 65 6e |for 0 co|mint-sen|
|00002b10| 64 2d 73 74 72 69 6e 67 | 20 6e 69 6c 20 70 74 20 |d-string| nil pt |
|00002b20| 62 61 63 6b 77 61 72 64 | 2d 63 68 61 72 20 31 20 |backward|-char 1 |
|00002b30| 6c 6f 6f 6b 69 6e 67 2d | 61 74 20 22 2e 2b 5c 6e |looking-|at ".+\n|
|00002b40| 22 20 61 63 63 65 70 74 | 2d 70 72 6f 63 65 73 73 |" accept|-process|
|00002b50| 2d 6f 75 74 70 75 74 20 | 22 5e 64 69 72 73 0d 3f |-output |"^dirs.?|
|00002b60| 5c 6e 22 20 64 65 6c 65 | 74 65 2d 63 68 61 72 20 |\n" dele|te-char |
|00002b70| 64 6c 20 64 6c 2d 6c 65 | 6e 20 64 73 20 69 20 73 |dl dl-le|n ds i s|
|00002b80| 74 72 69 6e 67 2d 6d 61 | 74 63 68 20 22 5c 5c 73 |tring-ma|tch "\\s|
|00002b90| 20 2a 5c 5c 28 5c 5c 53 | 20 2b 5c 5c 29 5c 5c 73 | *\\(\\S| +\\)\\s|
|00002ba0| 20 2a 22 20 72 65 76 65 | 72 73 65 20 73 68 65 6c | *" reve|rse shel|
|00002bb0| 6c 2d 63 64 2d 31 5d 20 | 35 20 22 5c 0a 52 65 73 |l-cd-1] |5 "\.Res|
|00002bc0| 79 6e 63 20 74 68 65 20 | 62 75 66 66 65 72 27 73 |ync the |buffer's|
|00002bd0| 20 69 64 65 61 20 6f 66 | 20 74 68 65 20 63 75 72 | idea of| the cur|
|00002be0| 72 65 6e 74 20 64 69 72 | 65 63 74 6f 72 79 20 73 |rent dir|ectory s|
|00002bf0| 74 61 63 6b 2e 0a 54 68 | 69 73 20 63 6f 6d 6d 61 |tack..Th|is comma|
|00002c00| 6e 64 20 71 75 65 72 69 | 65 73 20 74 68 65 20 73 |nd queri|es the s|
|00002c10| 68 65 6c 6c 20 77 69 74 | 68 20 74 68 65 20 63 6f |hell wit|h the co|
|00002c20| 6d 6d 61 6e 64 20 62 6f | 75 6e 64 20 74 6f 20 0a |mmand bo|und to .|
|00002c30| 60 73 68 65 6c 6c 2d 64 | 69 72 73 74 61 63 6b 2d |`shell-d|irstack-|
|00002c40| 71 75 65 72 79 27 20 28 | 64 65 66 61 75 6c 74 20 |query' (|default |
|00002c50| 5c 22 64 69 72 73 5c 22 | 29 2c 20 72 65 61 64 73 |\"dirs\"|), reads|
|00002c60| 20 74 68 65 20 6e 65 78 | 74 0a 6c 69 6e 65 20 6f | the nex|t.line o|
|00002c70| 75 74 70 75 74 20 61 6e | 64 20 70 61 72 73 65 73 |utput an|d parses|
|00002c80| 20 69 74 20 74 6f 20 66 | 6f 72 6d 20 74 68 65 20 | it to f|orm the |
|00002c90| 6e 65 77 20 64 69 72 65 | 63 74 6f 72 79 20 73 74 |new dire|ctory st|
|00002ca0| 61 63 6b 2e 0a 44 4f 4e | 27 54 20 69 73 73 75 65 |ack..DON|'T issue|
|00002cb0| 20 74 68 69 73 20 63 6f | 6d 6d 61 6e 64 20 75 6e | this co|mmand un|
|00002cc0| 6c 65 73 73 20 74 68 65 | 20 62 75 66 66 65 72 20 |less the| buffer |
|00002cd0| 69 73 20 61 74 20 61 20 | 73 68 65 6c 6c 20 70 72 |is at a |shell pr|
|00002ce0| 6f 6d 70 74 2e 0a 41 6c | 73 6f 2c 20 6e 6f 74 65 |ompt..Al|so, note|
|00002cf0| 20 74 68 61 74 20 69 66 | 20 73 6f 6d 65 20 6f 74 | that if| some ot|
|00002d00| 68 65 72 20 73 75 62 70 | 72 6f 63 65 73 73 20 64 |her subp|rocess d|
|00002d10| 65 63 69 64 65 73 20 74 | 6f 20 64 6f 20 6f 75 74 |ecides t|o do out|
|00002d20| 70 75 74 0a 69 6d 6d 65 | 64 69 61 74 65 6c 79 20 |put.imme|diately |
|00002d30| 61 66 74 65 72 20 74 68 | 65 20 71 75 65 72 79 2c |after th|e query,|
|00002d40| 20 69 74 73 20 6f 75 74 | 70 75 74 20 77 69 6c 6c | its out|put will|
|00002d50| 20 62 65 20 74 61 6b 65 | 6e 20 61 73 20 74 68 65 | be take|n as the|
|00002d60| 0a 6e 65 77 20 64 69 72 | 65 63 74 6f 72 79 20 73 |.new dir|ectory s|
|00002d70| 74 61 63 6b 20 2d 2d 20 | 79 6f 75 20 6c 6f 73 65 |tack -- |you lose|
|00002d80| 2e 20 49 66 20 74 68 69 | 73 20 68 61 70 70 65 6e |. If thi|s happen|
|00002d90| 73 2c 20 6a 75 73 74 20 | 64 6f 20 74 68 65 0a 63 |s, just |do the.c|
|00002da0| 6f 6d 6d 61 6e 64 20 61 | 67 61 69 6e 2e 22 20 6e |ommand a|gain." n|
|00002db0| 69 6c 5d 29 0a 28 64 65 | 66 76 61 72 20 73 68 65 |il]).(de|fvar she|
|00002dc0| 6c 6c 2d 64 69 72 73 74 | 61 63 6b 2d 6d 65 73 73 |ll-dirst|ack-mess|
|00002dd0| 61 67 65 2d 68 6f 6f 6b | 20 6e 69 6c 20 22 5c 0a |age-hook| nil "\.|
|00002de0| 48 6f 6f 6b 20 74 6f 20 | 72 75 6e 20 61 66 74 65 |Hook to |run afte|
|00002df0| 72 20 61 20 63 64 2c 20 | 70 75 73 68 64 20 6f 72 |r a cd, |pushd or|
|00002e00| 20 70 6f 70 64 20 65 76 | 65 6e 74 22 29 0a 28 66 | popd ev|ent").(f|
|00002e10| 73 65 74 20 27 73 68 65 | 6c 6c 2d 64 69 72 73 74 |set 'she|ll-dirst|
|00002e20| 61 63 6b 2d 6d 65 73 73 | 61 67 65 20 23 5b 6e 69 |ack-mess|age #[ni|
|00002e30| 6c 20 22 c0 19 5c 6e 0b | 42 1c c5 c6 c7 c8 c9 21 |l "..\n.|B......!|
|00002e40| 21 5c 22 1e 5c 6e 0e 0b | ad 8f 0e 0b 47 cc 55 3f |!\".\n..|....G.U?|
|00002e50| ad 87 c5 c6 c7 0e 0b 21 | 5c 22 1e 0d 0c ab be 0c |.......!|\"......|
|00002e60| 40 1e 0e cf 0e 5c 6e 0e | 0e 5c 22 ab 8a d0 0e 0e |@....\n.|.\".....|
|00002e70| cc 95 d1 4f 50 16 0e 0e | 0d ab 98 cf 0e 0d 0e 0e |...OP...|........|
|00002e80| 5c 22 ab 90 0e 0e cc 95 | d1 4f 89 16 0e ab 85 0c |\"......|.O......|
|00002e90| 0e 0e a0 88 09 0e 0e d2 | 51 11 0c 41 14 29 aa 3f |........|Q..A.).?|
|00002ea0| d3 d4 21 88 d5 09 21 2c | 87 22 20 5b 22 22 20 6d |..!...!,|." ["" m|
|00002eb0| 73 67 20 64 65 66 61 75 | 6c 74 2d 64 69 72 65 63 |sg defau|lt-direc|
|00002ec0| 74 6f 72 79 20 73 68 65 | 6c 6c 2d 64 69 72 73 74 |tory she|ll-dirst|
|00002ed0| 61 63 6b 20 64 73 20 66 | 6f 72 6d 61 74 20 22 5e |ack ds f|ormat "^|
|00002ee0| 25 73 5c 5c 28 2f 5c 5c | 7c 24 5c 5c 29 22 20 72 |%s\\(/\\||$\\)" r|
|00002ef0| 65 67 65 78 70 2d 71 75 | 6f 74 65 20 67 65 74 65 |egexp-qu|ote gete|
|00002f00| 6e 76 20 22 48 4f 4d 45 | 22 20 68 6f 6d 65 20 63 |nv "HOME|" home c|
|00002f10| 6f 6d 69 6e 74 2d 66 69 | 6c 65 2d 6e 61 6d 65 2d |omint-fi|le-name-|
|00002f20| 70 72 65 66 69 78 20 30 | 20 70 72 65 66 69 78 20 |prefix 0| prefix |
|00002f30| 64 69 72 20 73 74 72 69 | 6e 67 2d 6d 61 74 63 68 |dir stri|ng-match|
|00002f40| 20 22 7e 2f 22 20 6e 69 | 6c 20 22 20 22 20 72 75 | "~/" ni|l " " ru|
|00002f50| 6e 2d 68 6f 6f 6b 73 20 | 73 68 65 6c 6c 2d 64 69 |n-hooks |shell-di|
|00002f60| 72 73 74 61 63 6b 2d 6d | 65 73 73 61 67 65 2d 68 |rstack-m|essage-h|
|00002f70| 6f 6f 6b 20 6d 65 73 73 | 61 67 65 5d 20 35 5d 29 |ook mess|age] 5])|
|00002f80| 0a 28 66 73 65 74 20 27 | 73 68 65 6c 6c 2d 66 6f |.(fset '|shell-fo|
|00002f90| 72 77 61 72 64 2d 63 6f | 6d 6d 61 6e 64 20 23 5b |rward-co|mmand #[|
|00002fa0| 28 26 6f 70 74 69 6f 6e | 61 6c 20 61 72 67 29 20 |(&option|al arg) |
|00002fb0| 22 8a c0 7f 88 60 29 19 | c2 0b c4 50 09 c5 0e 06 |"....`).|...P....|
|00002fc0| 24 ad 83 c7 c8 21 29 87 | 22 20 5b 6e 69 6c 20 6c |$....!).|" [nil l|
|00002fd0| 69 6d 69 74 20 72 65 2d | 73 65 61 72 63 68 2d 66 |imit re-|search-f|
|00002fe0| 6f 72 77 61 72 64 20 73 | 68 65 6c 6c 2d 63 6f 6d |orward s|hell-com|
|00002ff0| 6d 61 6e 64 2d 72 65 67 | 65 78 70 20 22 5c 5c 28 |mand-reg|exp "\\(|
|00003000| 5b 3b 26 7c 5d 5b 5c 5c | 73 20 5d 2a 5c 5c 29 2b |[;&|][\\|s ]*\\)+|
|00003010| 22 20 6d 6f 76 65 20 61 | 72 67 20 73 6b 69 70 2d |" move a|rg skip-|
|00003020| 73 79 6e 74 61 78 2d 62 | 61 63 6b 77 61 72 64 20 |syntax-b|ackward |
|00003030| 22 5e 5c 5c 73 20 22 5d | 20 35 20 22 5c 0a 4d 6f |"^\\s "]| 5 "\.Mo|
|00003040| 76 65 20 66 6f 72 77 61 | 72 64 20 61 63 72 6f 73 |ve forwa|rd acros|
|00003050| 73 20 41 52 47 20 73 68 | 65 6c 6c 20 63 6f 6d 6d |s ARG sh|ell comm|
|00003060| 61 6e 64 28 73 29 2e 20 | 20 44 6f 65 73 20 6e 6f |and(s). | Does no|
|00003070| 74 20 63 72 6f 73 73 20 | 6c 69 6e 65 73 2e 0a 53 |t cross |lines..S|
|00003080| 65 65 20 60 73 68 65 6c | 6c 2d 63 6f 6d 6d 61 6e |ee `shel|l-comman|
|00003090| 64 2d 72 65 67 65 78 70 | 27 2e 22 20 22 70 22 5d |d-regexp|'." "p"]|
|000030a0| 29 0a 28 66 73 65 74 20 | 27 73 68 65 6c 6c 2d 62 |).(fset |'shell-b|
|000030b0| 61 63 6b 77 61 72 64 2d | 63 6f 6d 6d 61 6e 64 20 |ackward-|command |
|000030c0| 23 5b 28 26 6f 70 74 69 | 6f 6e 61 6c 20 61 72 67 |#[(&opti|onal arg|
|000030d0| 29 20 22 8a c0 c1 21 88 | 60 29 1a c3 c4 5c 6e 5c |) "...!.|`)...\n\|
|000030e0| 22 88 c5 c6 c7 0e 08 5c | 22 5c 6e c9 0e 5c 6e 24 |"......\|"\n..\n$|
|000030f0| ad 87 cb 94 62 88 c3 cc | 21 29 87 22 20 5b 63 6f |....b...|!)." [co|
|00003100| 6d 69 6e 74 2d 62 6f 6c | 20 6e 69 6c 20 6c 69 6d |mint-bol| nil lim|
|00003110| 69 74 20 73 6b 69 70 2d | 73 79 6e 74 61 78 2d 62 |it skip-|syntax-b|
|00003120| 61 63 6b 77 61 72 64 20 | 22 5c 5c 73 20 22 20 72 |ackward |"\\s " r|
|00003130| 65 2d 73 65 61 72 63 68 | 2d 62 61 63 6b 77 61 72 |e-search|-backwar|
|00003140| 64 20 66 6f 72 6d 61 74 | 20 22 5b 3b 26 7c 5d 2b |d format| "[;&|]+|
|00003150| 5b 5c 5c 73 20 5d 2a 5c | 5c 28 25 73 5c 5c 29 22 |[\\s ]*\|\(%s\\)"|
|00003160| 20 73 68 65 6c 6c 2d 63 | 6f 6d 6d 61 6e 64 2d 72 | shell-c|ommand-r|
|00003170| 65 67 65 78 70 20 6d 6f | 76 65 20 61 72 67 20 31 |egexp mo|ve arg 1|
|00003180| 20 22 5e 5c 5c 73 20 22 | 5d 20 35 20 22 5c 0a 4d | "^\\s "|] 5 "\.M|
|00003190| 6f 76 65 20 62 61 63 6b | 77 61 72 64 20 61 63 72 |ove back|ward acr|
|000031a0| 6f 73 73 20 41 52 47 20 | 73 68 65 6c 6c 20 63 6f |oss ARG |shell co|
|000031b0| 6d 6d 61 6e 64 28 73 29 | 2e 20 20 44 6f 65 73 20 |mmand(s)|. Does |
|000031c0| 6e 6f 74 20 63 72 6f 73 | 73 20 6c 69 6e 65 73 2e |not cros|s lines.|
|000031d0| 0a 53 65 65 20 60 73 68 | 65 6c 6c 2d 63 6f 6d 6d |.See `sh|ell-comm|
|000031e0| 61 6e 64 2d 72 65 67 65 | 78 70 27 2e 22 20 22 70 |and-rege|xp'." "p|
|000031f0| 22 5d 29 0a 28 66 73 65 | 74 20 27 73 68 65 6c 6c |"]).(fse|t 'shell|
|00003200| 2d 67 65 74 2d 63 75 72 | 72 65 6e 74 2d 63 6f 6d |-get-cur|rent-com|
|00003210| 6d 61 6e 64 20 23 5b 6e | 69 6c 20 22 8a c0 c1 21 |mand #[n|il "...!|
|00003220| ab 84 c2 95 62 88 c3 c4 | 21 88 60 c5 c4 21 88 6c |....b...|!.`..!.l|
|00003230| ab 83 60 aa 82 c4 95 7b | 29 87 22 20 5b 6c 6f 6f |..`....{|)." [loo|
|00003240| 6b 69 6e 67 2d 61 74 20 | 22 5c 5c 73 20 2a 5b 5e |king-at |"\\s *[^|
|00003250| 3b 26 7c 5d 22 20 30 20 | 73 68 65 6c 6c 2d 62 61 |;&|]" 0 |shell-ba|
|00003260| 63 6b 77 61 72 64 2d 63 | 6f 6d 6d 61 6e 64 20 31 |ckward-c|ommand 1|
|00003270| 20 73 68 65 6c 6c 2d 66 | 6f 72 77 61 72 64 2d 63 | shell-f|orward-c|
|00003280| 6f 6d 6d 61 6e 64 5d 20 | 33 20 22 5c 0a 46 75 6e |ommand] |3 "\.Fun|
|00003290| 63 74 69 6f 6e 20 74 68 | 61 74 20 72 65 74 75 72 |ction th|at retur|
|000032a0| 6e 73 20 74 68 65 20 63 | 75 72 72 65 6e 74 20 63 |ns the c|urrent c|
|000032b0| 6f 6d 6d 61 6e 64 20 69 | 6e 63 6c 75 64 69 6e 67 |ommand i|ncluding|
|000032c0| 20 61 72 67 75 6d 65 6e | 74 73 2e 22 5d 29 0a 28 | argumen|ts."]).(|
|000032d0| 66 73 65 74 20 27 73 68 | 65 6c 6c 2d 61 66 74 65 |fset 'sh|ell-afte|
|000032e0| 72 2d 70 61 72 74 69 61 | 6c 2d 66 69 6c 65 6e 61 |r-partia|l-filena|
|000032f0| 6d 65 20 23 5b 6e 69 6c | 20 22 c0 20 19 c2 20 1b |me #[nil| ". .. .|
|00003300| c4 8e c5 c6 09 5c 22 2a | ae 8b c7 94 8a c8 c9 21 |.....\"*|.......!|
|00003310| 88 60 29 3d 3f 29 87 22 | 20 5b 63 6f 6d 69 6e 74 |.`)=?)."| [comint|
|00003320| 2d 6d 61 74 63 68 2d 70 | 61 72 74 69 61 6c 2d 66 |-match-p|artial-f|
|00003330| 69 6c 65 6e 61 6d 65 20 | 66 69 6c 65 6e 61 6d 65 |ilename |filename|
|00003340| 20 6d 61 74 63 68 2d 64 | 61 74 61 20 5f 6d 61 74 | match-d|ata _mat|
|00003350| 63 68 5f 64 61 74 61 5f | 20 28 28 73 74 6f 72 65 |ch_data_| ((store|
|00003360| 2d 6d 61 74 63 68 2d 64 | 61 74 61 20 5f 6d 61 74 |-match-d|ata _mat|
|00003370| 63 68 5f 64 61 74 61 5f | 29 29 20 73 74 72 69 6e |ch_data_|)) strin|
|00003380| 67 2d 6d 61 74 63 68 20 | 22 2f 22 20 30 20 73 68 |g-match |"/" 0 sh|
|00003390| 65 6c 6c 2d 62 61 63 6b | 77 61 72 64 2d 63 6f 6d |ell-back|ward-com|
|000033a0| 6d 61 6e 64 20 31 5d 20 | 33 20 22 5c 0a 52 65 74 |mand 1] |3 "\.Ret|
|000033b0| 75 72 6e 73 20 74 20 69 | 66 20 70 6f 69 6e 74 20 |urns t i|f point |
|000033c0| 69 73 20 61 66 74 65 72 | 20 61 20 66 69 6c 65 20 |is after| a file |
|000033d0| 6e 61 6d 65 2e 0a 46 69 | 6c 65 20 6e 61 6d 65 73 |name..Fi|le names|
|000033e0| 20 61 72 65 20 61 73 73 | 75 6d 65 64 20 74 6f 20 | are ass|umed to |
|000033f0| 63 6f 6e 74 61 69 6e 20 | 60 2f 27 73 20 6f 72 20 |contain |`/'s or |
|00003400| 6e 6f 74 20 62 65 20 74 | 68 65 20 66 69 72 73 74 |not be t|he first|
|00003410| 20 69 74 65 6d 20 69 6e | 20 74 68 65 20 63 6f 6d | item in| the com|
|00003420| 6d 61 6e 64 2e 0a 0a 53 | 65 65 20 61 6c 73 6f 20 |mand...S|ee also |
|00003430| 60 73 68 65 6c 6c 2d 62 | 61 63 6b 77 61 72 64 2d |`shell-b|ackward-|
|00003440| 63 6f 6d 6d 61 6e 64 27 | 2e 22 5d 29 0a 28 66 73 |command'|."]).(fs|
|00003450| 65 74 20 27 73 68 65 6c | 6c 2d 64 79 6e 61 6d 69 |et 'shel|l-dynami|
|00003460| 63 2d 63 6f 6d 70 6c 65 | 74 65 2d 63 6f 6d 6d 61 |c-comple|te-comma|
|00003470| 6e 64 20 23 5b 6e 69 6c | 20 22 c0 19 c2 20 1b c4 |nd #[nil| "... ..|
|00003480| 0b 21 1d c6 0e 07 21 41 | 1e 08 c9 ca 0e 0b 21 21 |.!....!A|......!!|
|00003490| 1e 0c cd ce 0e 0f d0 23 | 1e 11 d2 1e 13 c0 1e 14 |.......#|........|
|000034a0| d2 1e 15 d2 1e 16 c0 1e | 17 0e 08 ab e5 c9 d8 0e |........|........|
|000034b0| 08 40 ae 81 d9 21 21 16 | 13 da 0e 13 21 ad 85 db |.@...!!.|....!...|
|000034c0| 0d 0e 13 5c 22 89 16 14 | ab c1 0e 14 40 16 15 0e |...\"...|....@...|
|000034d0| 13 0e 15 50 16 16 0e 15 | 0e 17 9d ac a6 dc 0e 11 |...P....|........|
|000034e0| 0e 15 5c 22 ac 9e 0e 13 | 0e 0c 98 ac 86 dd 0e 16 |..\"....|........|
|000034f0| 21 ac 91 0e 1e ab 86 df | 0e 16 21 ab 87 0e 15 0e |!.......|..!.....|
|00003500| 17 42 16 17 0e 14 41 89 | 16 14 ac 3f 0e 08 41 89 |.B....A.|...?..A.|
|00003510| 16 08 ac 1b 0e 17 ac 8a | e0 e1 0b 5c 22 88 e2 20 |........|...\".. |
|00003520| 82 2b 01 0e 17 47 e3 55 | ab b0 0e 17 40 89 1e 24 |.+...G.U|....@..$|
|00003530| 0d 98 ab 86 e0 e5 21 88 | aa 8e e6 0e 24 21 0d 47 |......!.|....$!.G|
|00003540| c0 4f 63 88 e0 e7 21 88 | 0e 28 ad 8b dd 0e 24 21 |.Oc...!.|.(....$!|
|00003550| ab 83 e9 aa 81 ea 63 29 | aa ce eb 0d ec ed 0e 17 |......c)|........|
|00003560| 5c 22 5c 22 1e 24 e6 0e | 24 21 0d 47 c0 4f 63 88 |\"\".$..|$!.G.Oc.|
|00003570| 0e 2e ab a2 0e 28 ab 9e | 0d 0e 24 98 ab 98 0e 24 |.....(..|..$....$|
|00003580| 0e 17 9d ab 91 dd 0e 24 | 21 ab 83 e9 aa 81 ea 63 |.......$|!......c|
|00003590| 88 e0 ef 21 aa 93 0e 30 | ac 86 0d 0e 24 98 ab 86 |...!...0|....$...|
|000035a0| f1 0e 17 21 aa 83 e0 f2 | 21 29 2e 0b 87 22 20 5b |...!....|!)..." [|
|000035b0| 6e 69 6c 20 63 6f 6d 70 | 6c 65 74 69 6f 6e 2d 69 |nil comp|letion-i|
|000035c0| 67 6e 6f 72 65 2d 63 61 | 73 65 20 63 6f 6d 69 6e |gnore-ca|se comin|
|000035d0| 74 2d 6d 61 74 63 68 2d | 70 61 72 74 69 61 6c 2d |t-match-|partial-|
|000035e0| 66 69 6c 65 6e 61 6d 65 | 20 66 69 6c 65 6e 61 6d |filename| filenam|
|000035f0| 65 20 66 69 6c 65 2d 6e | 61 6d 65 2d 6e 6f 6e 64 |e file-n|ame-nond|
|00003600| 69 72 65 63 74 6f 72 79 | 20 70 61 74 68 6e 6f 6e |irectory| pathnon|
|00003610| 64 69 72 20 72 65 76 65 | 72 73 65 20 65 78 65 63 |dir reve|rse exec|
|00003620| 2d 70 61 74 68 20 70 61 | 74 68 73 20 66 69 6c 65 |-path pa|ths file|
|00003630| 2d 6e 61 6d 65 2d 61 73 | 2d 64 69 72 65 63 74 6f |-name-as|-directo|
|00003640| 72 79 20 65 78 70 61 6e | 64 2d 66 69 6c 65 2d 6e |ry expan|d-file-n|
|00003650| 61 6d 65 20 64 65 66 61 | 75 6c 74 2d 64 69 72 65 |ame defa|ult-dire|
|00003660| 63 74 6f 72 79 20 63 77 | 64 20 6d 61 70 63 6f 6e |ctory cw|d mapcon|
|00003670| 63 61 74 20 23 5b 28 78 | 29 20 22 c0 09 21 c2 50 |cat #[(x|) "..!.P|
|00003680| 87 22 20 5b 72 65 67 65 | 78 70 2d 71 75 6f 74 65 |." [rege|xp-quote|
|00003690| 20 78 20 22 24 22 5d 20 | 32 5d 20 63 6f 6d 70 6c | x "$"] |2] compl|
|000036a0| 65 74 69 6f 6e 2d 69 67 | 6e 6f 72 65 64 2d 65 78 |etion-ig|nored-ex|
|000036b0| 74 65 6e 73 69 6f 6e 73 | 20 22 5c 5c 7c 22 20 69 |tensions| "\\|" i|
|000036c0| 67 6e 6f 72 65 64 2d 65 | 78 74 65 6e 73 69 6f 6e |gnored-e|xtension|
|000036d0| 73 20 22 22 20 70 61 74 | 68 20 63 6f 6d 70 73 2d |s "" pat|h comps-|
|000036e0| 69 6e 2d 70 61 74 68 20 | 66 69 6c 65 20 66 69 6c |in-path |file fil|
|000036f0| 65 70 61 74 68 20 63 6f | 6d 70 6c 65 74 69 6f 6e |epath co|mpletion|
|00003700| 73 20 63 6f 6d 69 6e 74 | 2d 64 69 72 65 63 74 6f |s comint|-directo|
|00003710| 72 79 20 22 2e 22 20 66 | 69 6c 65 2d 61 63 63 65 |ry "." f|ile-acce|
|00003720| 73 73 69 62 6c 65 2d 64 | 69 72 65 63 74 6f 72 79 |ssible-d|irectory|
|00003730| 2d 70 20 66 69 6c 65 2d | 6e 61 6d 65 2d 61 6c 6c |-p file-|name-all|
|00003740| 2d 63 6f 6d 70 6c 65 74 | 69 6f 6e 73 20 73 74 72 |-complet|ions str|
|00003750| 69 6e 67 2d 6d 61 74 63 | 68 20 66 69 6c 65 2d 64 |ing-matc|h file-d|
|00003760| 69 72 65 63 74 6f 72 79 | 2d 70 20 73 68 65 6c 6c |irectory|-p shell|
|00003770| 2d 63 6f 6d 70 6c 65 74 | 69 6f 6e 2d 65 78 65 63 |-complet|ion-exec|
|00003780| 6f 6e 6c 79 20 66 69 6c | 65 2d 65 78 65 63 75 74 |only fil|e-execut|
|00003790| 61 62 6c 65 2d 70 20 6d | 65 73 73 61 67 65 20 22 |able-p m|essage "|
|000037a0| 4e 6f 20 63 6f 6d 70 6c | 65 74 69 6f 6e 73 20 6f |No compl|etions o|
|000037b0| 66 20 25 73 22 20 64 69 | 6e 67 20 31 20 63 6f 6d |f %s" di|ng 1 com|
|000037c0| 70 6c 65 74 69 6f 6e 20 | 22 53 6f 6c 65 20 63 6f |pletion |"Sole co|
|000037d0| 6d 70 6c 65 74 69 6f 6e | 22 20 64 69 72 65 63 74 |mpletion|" direct|
|000037e0| 6f 72 79 2d 66 69 6c 65 | 2d 6e 61 6d 65 20 22 43 |ory-file|-name "C|
|000037f0| 6f 6d 70 6c 65 74 65 64 | 22 20 63 6f 6d 69 6e 74 |ompleted|" comint|
|00003800| 2d 63 6f 6d 70 6c 65 74 | 69 6f 6e 2d 61 64 64 73 |-complet|ion-adds|
|00003810| 75 66 66 69 78 20 22 2f | 22 20 22 20 22 20 74 72 |uffix "/|" " " tr|
|00003820| 79 2d 63 6f 6d 70 6c 65 | 74 69 6f 6e 20 6d 61 70 |y-comple|tion map|
|00003830| 63 61 72 20 23 5b 28 78 | 29 20 22 08 43 87 22 20 |car #[(x|) ".C." |
|00003840| 5b 78 5d 20 31 5d 20 63 | 6f 6d 69 6e 74 2d 63 6f |[x] 1] c|omint-co|
|00003850| 6d 70 6c 65 74 69 6f 6e | 2d 72 65 63 65 78 61 63 |mpletion|-recexac|
|00003860| 74 20 22 43 6f 6d 70 6c | 65 74 65 64 20 73 68 6f |t "Compl|eted sho|
|00003870| 72 74 65 73 74 22 20 63 | 6f 6d 69 6e 74 2d 63 6f |rtest" c|omint-co|
|00003880| 6d 70 6c 65 74 69 6f 6e | 2d 61 75 74 6f 6c 69 73 |mpletion|-autolis|
|00003890| 74 20 63 6f 6d 69 6e 74 | 2d 64 79 6e 61 6d 69 63 |t comint|-dynamic|
|000038a0| 2d 6c 69 73 74 2d 63 6f | 6d 70 6c 65 74 69 6f 6e |-list-co|mpletion|
|000038b0| 73 20 22 50 61 72 74 69 | 61 6c 6c 79 20 63 6f 6d |s "Parti|ally com|
|000038c0| 70 6c 65 74 65 64 22 5d | 20 36 20 22 5c 0a 44 79 |pleted"]| 6 "\.Dy|
|000038d0| 6e 61 6d 69 63 61 6c 6c | 79 20 63 6f 6d 70 6c 65 |namicall|y comple|
|000038e0| 74 65 20 74 68 65 20 63 | 6f 6d 6d 61 6e 64 20 61 |te the c|ommand a|
|000038f0| 74 20 70 6f 69 6e 74 2e | 0a 54 68 69 73 20 66 75 |t point.|.This fu|
|00003900| 6e 63 74 69 6f 6e 20 69 | 73 20 73 69 6d 69 6c 61 |nction i|s simila|
|00003910| 72 20 74 6f 20 60 63 6f | 6d 69 6e 74 2d 64 79 6e |r to `co|mint-dyn|
|00003920| 61 6d 69 63 2d 63 6f 6d | 70 6c 65 74 65 2d 66 69 |amic-com|plete-fi|
|00003930| 6c 65 6e 61 6d 65 27 2c | 20 65 78 63 65 70 74 20 |lename',| except |
|00003940| 74 68 61 74 20 69 74 0a | 73 65 61 72 63 68 65 73 |that it.|searches|
|00003950| 20 60 65 78 65 63 2d 70 | 61 74 68 27 20 28 6d 69 | `exec-p|ath' (mi|
|00003960| 6e 75 73 20 74 68 65 20 | 74 72 61 69 6c 69 6e 67 |nus the |trailing|
|00003970| 20 65 6d 61 63 73 20 6c | 69 62 72 61 72 79 20 70 | emacs l|ibrary p|
|00003980| 61 74 68 29 20 66 6f 72 | 20 63 6f 6d 70 6c 65 74 |ath) for| complet|
|00003990| 69 6f 6e 0a 63 61 6e 64 | 69 64 61 74 65 73 2e 20 |ion.cand|idates. |
|000039a0| 20 4e 6f 74 65 20 74 68 | 61 74 20 74 68 69 73 20 | Note th|at this |
|000039b0| 6d 61 79 20 6e 6f 74 20 | 62 65 20 74 68 65 20 73 |may not |be the s|
|000039c0| 61 6d 65 20 61 73 20 74 | 68 65 20 73 68 65 6c 6c |ame as t|he shell|
|000039d0| 27 73 20 69 64 65 61 20 | 6f 66 20 74 68 65 0a 70 |'s idea |of the.p|
|000039e0| 61 74 68 2e 0a 0a 43 6f | 6d 70 6c 65 74 69 6f 6e |ath...Co|mpletion|
|000039f0| 20 69 73 20 64 65 70 65 | 6e 64 65 6e 74 20 6f 6e | is depe|ndent on|
|00003a00| 20 74 68 65 20 76 61 6c | 75 65 20 6f 66 20 60 73 | the val|ue of `s|
|00003a10| 68 65 6c 6c 2d 63 6f 6d | 70 6c 65 74 69 6f 6e 2d |hell-com|pletion-|
|00003a20| 65 78 65 63 6f 6e 6c 79 | 27 2c 20 70 6c 75 73 0a |execonly|', plus.|
|00003a30| 74 68 6f 73 65 20 74 68 | 61 74 20 65 66 66 65 63 |those th|at effec|
|00003a40| 74 20 66 69 6c 65 20 63 | 6f 6d 70 6c 65 74 69 6f |t file c|ompletio|
|00003a50| 6e 2e 20 20 53 65 65 20 | 60 63 6f 6d 69 6e 74 2d |n. See |`comint-|
|00003a60| 64 79 6e 61 6d 69 63 2d | 63 6f 6d 70 6c 65 74 65 |dynamic-|complete|
|00003a70| 2d 66 69 6c 65 6e 61 6d | 65 27 2e 22 20 6e 69 6c |-filenam|e'." nil|
|00003a80| 5d 29 0a 28 70 72 6f 76 | 69 64 65 20 27 73 68 65 |]).(prov|ide 'she|
|00003a90| 6c 6c 29 0a | |ll). | |
+--------+-------------------------+-------------------------+--------+--------+