home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: SHell self-extracting ARchive
(archive/shar).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| SHell self-extracting ARchive (archive/shar)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/329 Shell Archive Format
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 4e 65 77 73 67 72 6f 75 | 70 73 3a 20 63 6f 6d 70 |Newsgrou|ps: comp|
|00000010| 2e 73 6f 75 72 63 65 73 | 2e 6d 69 73 63 0a 46 72 |.sources|.misc.Fr|
|00000020| 6f 6d 3a 20 7a 73 68 2d | 6c 69 73 74 40 63 73 2e |om: zsh-|list@cs.|
|00000030| 75 6f 77 2e 65 64 75 2e | 61 75 20 28 54 68 65 20 |uow.edu.|au (The |
|00000040| 5a 73 68 20 4d 61 69 6c | 69 6e 67 20 4c 69 73 74 |Zsh Mail|ing List|
|00000050| 29 0a 53 75 62 6a 65 63 | 74 3a 20 76 33 35 69 30 |).Subjec|t: v35i0|
|00000060| 36 33 3a 20 20 7a 73 68 | 20 2d 20 54 68 65 20 5a |63: zsh| - The Z|
|00000070| 20 53 68 65 6c 6c 2c 20 | 76 65 72 73 69 6f 6e 20 | Shell, |version |
|00000080| 32 2e 33 2e 31 2c 20 50 | 61 72 74 31 33 2f 32 32 |2.3.1, P|art13/22|
|00000090| 0a 4d 65 73 73 61 67 65 | 2d 49 44 3a 20 3c 31 39 |.Message|-ID: <19|
|000000a0| 39 33 46 65 62 32 30 2e | 32 31 32 35 33 31 2e 32 |93Feb20.|212531.2|
|000000b0| 38 39 37 30 40 73 70 61 | 72 6b 79 2e 69 6d 64 2e |8970@spa|rky.imd.|
|000000c0| 73 74 65 72 6c 69 6e 67 | 2e 63 6f 6d 3e 0a 58 2d |sterling|.com>.X-|
|000000d0| 4d 64 34 2d 53 69 67 6e | 61 74 75 72 65 3a 20 62 |Md4-Sign|ature: b|
|000000e0| 30 30 31 62 38 34 35 38 | 66 64 39 37 65 65 38 36 |001b8458|fd97ee86|
|000000f0| 34 34 61 38 64 31 31 38 | 63 63 61 33 65 65 62 0a |44a8d118|cca3eeb.|
|00000100| 44 61 74 65 3a 20 53 61 | 74 2c 20 32 30 20 46 65 |Date: Sa|t, 20 Fe|
|00000110| 62 20 31 39 39 33 20 32 | 31 3a 32 35 3a 33 31 20 |b 1993 2|1:25:31 |
|00000120| 47 4d 54 0a 41 70 70 72 | 6f 76 65 64 3a 20 6b 65 |GMT.Appr|oved: ke|
|00000130| 6e 74 40 73 70 61 72 6b | 79 2e 69 6d 64 2e 73 74 |nt@spark|y.imd.st|
|00000140| 65 72 6c 69 6e 67 2e 63 | 6f 6d 0a 0a 53 75 62 6d |erling.c|om..Subm|
|00000150| 69 74 74 65 64 2d 62 79 | 3a 20 7a 73 68 2d 6c 69 |itted-by|: zsh-li|
|00000160| 73 74 40 63 73 2e 75 6f | 77 2e 65 64 75 2e 61 75 |st@cs.uo|w.edu.au|
|00000170| 20 28 54 68 65 20 5a 73 | 68 20 4d 61 69 6c 69 6e | (The Zs|h Mailin|
|00000180| 67 20 4c 69 73 74 29 0a | 50 6f 73 74 69 6e 67 2d |g List).|Posting-|
|00000190| 6e 75 6d 62 65 72 3a 20 | 56 6f 6c 75 6d 65 20 33 |number: |Volume 3|
|000001a0| 35 2c 20 49 73 73 75 65 | 20 36 33 0a 41 72 63 68 |5, Issue| 63.Arch|
|000001b0| 69 76 65 2d 6e 61 6d 65 | 3a 20 7a 73 68 2f 70 61 |ive-name|: zsh/pa|
|000001c0| 72 74 31 33 0a 45 6e 76 | 69 72 6f 6e 6d 65 6e 74 |rt13.Env|ironment|
|000001d0| 3a 20 55 4e 49 58 0a 53 | 75 70 65 72 73 65 64 65 |: UNIX.S|upersede|
|000001e0| 73 3a 20 7a 73 68 32 2e | 32 3a 20 56 6f 6c 75 6d |s: zsh2.|2: Volum|
|000001f0| 65 20 32 39 2c 20 49 73 | 73 75 65 20 39 37 2d 31 |e 29, Is|sue 97-1|
|00000200| 31 33 0a 0a 23 21 20 2f | 62 69 6e 2f 73 68 0a 23 |13..#! /|bin/sh.#|
|00000210| 20 54 68 69 73 20 69 73 | 20 61 20 73 68 65 6c 6c | This is| a shell|
|00000220| 20 61 72 63 68 69 76 65 | 2e 20 20 52 65 6d 6f 76 | archive|. Remov|
|00000230| 65 20 61 6e 79 74 68 69 | 6e 67 20 62 65 66 6f 72 |e anythi|ng befor|
|00000240| 65 20 74 68 69 73 20 6c | 69 6e 65 2c 20 74 68 65 |e this l|ine, the|
|00000250| 6e 20 66 65 65 64 20 69 | 74 0a 23 20 69 6e 74 6f |n feed i|t.# into|
|00000260| 20 61 20 73 68 65 6c 6c | 20 76 69 61 20 22 73 68 | a shell| via "sh|
|00000270| 20 66 69 6c 65 22 20 6f | 72 20 73 69 6d 69 6c 61 | file" o|r simila|
|00000280| 72 2e 20 20 54 6f 20 6f | 76 65 72 77 72 69 74 65 |r. To o|verwrite|
|00000290| 20 65 78 69 73 74 69 6e | 67 20 66 69 6c 65 73 2c | existin|g files,|
|000002a0| 0a 23 20 74 79 70 65 20 | 22 73 68 20 66 69 6c 65 |.# type |"sh file|
|000002b0| 20 2d 63 22 2e 0a 23 20 | 54 68 65 20 74 6f 6f 6c | -c"..# |The tool|
|000002c0| 20 74 68 61 74 20 67 65 | 6e 65 72 61 74 65 64 20 | that ge|nerated |
|000002d0| 74 68 69 73 20 61 70 70 | 65 61 72 65 64 20 69 6e |this app|eared in|
|000002e0| 20 74 68 65 20 63 6f 6d | 70 2e 73 6f 75 72 63 65 | the com|p.source|
|000002f0| 73 2e 75 6e 69 78 20 6e | 65 77 73 67 72 6f 75 70 |s.unix n|ewsgroup|
|00000300| 3b 0a 23 20 73 65 6e 64 | 20 6d 61 69 6c 20 74 6f |;.# send| mail to|
|00000310| 20 63 6f 6d 70 2d 73 6f | 75 72 63 65 73 2d 75 6e | comp-so|urces-un|
|00000320| 69 78 40 75 75 6e 65 74 | 2e 75 75 2e 6e 65 74 20 |ix@uunet|.uu.net |
|00000330| 69 66 20 79 6f 75 20 77 | 61 6e 74 20 74 68 61 74 |if you w|ant that|
|00000340| 20 74 6f 6f 6c 2e 0a 23 | 20 43 6f 6e 74 65 6e 74 | tool..#| Content|
|00000350| 73 3a 20 20 46 41 51 20 | 68 65 6c 70 2f 70 75 73 |s: FAQ |help/pus|
|00000360| 68 64 20 73 72 63 2f 7a | 6c 65 5f 74 72 69 63 6b |hd src/z|le_trick|
|00000370| 79 2e 63 0a 23 20 57 72 | 61 70 70 65 64 20 62 79 |y.c.# Wr|apped by|
|00000380| 20 6d 61 74 74 73 6f 6e | 40 6f 64 69 6e 20 6f 6e | mattson|@odin on|
|00000390| 20 53 61 74 20 46 65 62 | 20 20 36 20 31 34 3a 34 | Sat Feb| 6 14:4|
|000003a0| 31 3a 35 34 20 31 39 39 | 33 0a 50 41 54 48 3d 2f |1:54 199|3.PATH=/|
|000003b0| 62 69 6e 3a 2f 75 73 72 | 2f 62 69 6e 3a 2f 75 73 |bin:/usr|/bin:/us|
|000003c0| 72 2f 75 63 62 20 3b 20 | 65 78 70 6f 72 74 20 50 |r/ucb ; |export P|
|000003d0| 41 54 48 0a 65 63 68 6f | 20 49 66 20 74 68 69 73 |ATH.echo| If this|
|000003e0| 20 61 72 63 68 69 76 65 | 20 69 73 20 63 6f 6d 70 | archive| is comp|
|000003f0| 6c 65 74 65 2c 20 79 6f | 75 20 77 69 6c 6c 20 73 |lete, yo|u will s|
|00000400| 65 65 20 74 68 65 20 66 | 6f 6c 6c 6f 77 69 6e 67 |ee the f|ollowing|
|00000410| 20 6d 65 73 73 61 67 65 | 3a 0a 65 63 68 6f 20 27 | message|:.echo '|
|00000420| 20 20 20 20 20 20 20 20 | 20 20 22 73 68 61 72 3a | | "shar:|
|00000430| 20 45 6e 64 20 6f 66 20 | 61 72 63 68 69 76 65 20 | End of |archive |
|00000440| 31 33 20 28 6f 66 20 32 | 32 29 2e 22 27 0a 69 66 |13 (of 2|2)."'.if|
|00000450| 20 74 65 73 74 20 2d 66 | 20 27 46 41 51 27 20 2d | test -f| 'FAQ' -|
|00000460| 61 20 22 24 7b 31 7d 22 | 20 21 3d 20 22 2d 63 22 |a "${1}"| != "-c"|
|00000470| 20 3b 20 74 68 65 6e 20 | 0a 20 20 65 63 68 6f 20 | ; then |. echo |
|00000480| 73 68 61 72 3a 20 57 69 | 6c 6c 20 6e 6f 74 20 63 |shar: Wi|ll not c|
|00000490| 6c 6f 62 62 65 72 20 65 | 78 69 73 74 69 6e 67 20 |lobber e|xisting |
|000004a0| 66 69 6c 65 20 5c 22 27 | 46 41 51 27 5c 22 0a 65 |file \"'|FAQ'\".e|
|000004b0| 6c 73 65 0a 20 20 65 63 | 68 6f 20 73 68 61 72 3a |lse. ec|ho shar:|
|000004c0| 20 45 78 74 72 61 63 74 | 69 6e 67 20 5c 22 27 46 | Extract|ing \"'F|
|000004d0| 41 51 27 5c 22 20 5c 28 | 32 31 35 37 38 20 63 68 |AQ'\" \(|21578 ch|
|000004e0| 61 72 61 63 74 65 72 73 | 5c 29 0a 20 20 73 65 64 |aracters|\). sed|
|000004f0| 20 22 73 2f 5e 58 2f 2f | 22 20 3e 27 46 41 51 27 | "s/^X//|" >'FAQ'|
|00000500| 20 3c 3c 27 45 4e 44 5f | 4f 46 5f 46 49 4c 45 27 | <<'END_|OF_FILE'|
|00000510| 0a 58 41 72 63 68 69 76 | 65 2d 4e 61 6d 65 3a 20 |.XArchiv|e-Name: |
|00000520| 7a 73 68 2e 46 41 51 0a | 58 53 75 62 6d 69 74 74 |zsh.FAQ.|XSubmitt|
|00000530| 65 64 2d 42 79 3a 20 70 | 77 73 40 73 2d 61 2e 61 |ed-By: p|ws@s-a.a|
|00000540| 6d 74 70 2e 6c 69 76 2e | 61 63 2e 75 6b 20 28 50 |mtp.liv.|ac.uk (P|
|00000550| 65 74 65 72 20 53 74 65 | 70 68 65 6e 73 6f 6e 29 |eter Ste|phenson)|
|00000560| 0a 58 0a 58 24 49 64 3a | 20 46 41 51 2c 76 20 31 |.X.X$Id:| FAQ,v 1|
|00000570| 2e 33 20 31 39 39 33 2f | 30 32 2f 30 34 20 31 30 |.3 1993/|02/04 10|
|00000580| 3a 31 37 3a 35 35 20 70 | 77 73 20 45 78 70 20 70 |:17:55 p|ws Exp p|
|00000590| 77 73 20 24 0a 58 0a 58 | 54 68 69 73 20 64 6f 63 |ws $.X.X|This doc|
|000005a0| 75 6d 65 6e 74 20 63 6f | 6e 74 61 69 6e 73 20 61 |ument co|ntains a|
|000005b0| 20 6c 69 73 74 20 6f 66 | 20 66 72 65 71 75 65 6e | list of| frequen|
|000005c0| 74 6c 79 2d 61 73 6b 65 | 64 20 28 6f 72 20 6f 74 |tly-aske|d (or ot|
|000005d0| 68 65 72 77 69 73 65 0a | 58 73 69 67 6e 69 66 69 |herwise.|Xsignifi|
|000005e0| 63 61 6e 74 29 20 71 75 | 65 73 74 69 6f 6e 73 20 |cant) qu|estions |
|000005f0| 63 6f 6e 63 65 72 6e 69 | 6e 67 20 74 68 65 20 5a |concerni|ng the Z|
|00000600| 2d 73 68 65 6c 6c 2c 20 | 61 20 70 6f 77 65 72 66 |-shell, |a powerf|
|00000610| 75 6c 20 63 6f 6d 6d 61 | 6e 64 0a 58 69 6e 74 65 |ul comma|nd.Xinte|
|00000620| 72 70 72 65 74 65 72 20 | 66 6f 72 20 6d 61 6e 79 |rpreter |for many|
|00000630| 20 55 4e 49 58 20 73 79 | 73 74 65 6d 73 2e 0a 58 | UNIX sy|stems..X|
|00000640| 0a 58 49 66 20 79 6f 75 | 20 68 61 76 65 20 6e 65 |.XIf you| have ne|
|00000650| 76 65 72 20 68 65 61 72 | 64 20 6f 66 20 60 73 68 |ver hear|d of `sh|
|00000660| 27 2c 20 60 63 73 68 27 | 20 6f 72 20 60 6b 73 68 |', `csh'| or `ksh|
|00000670| 27 2c 20 74 68 65 6e 20 | 79 6f 75 20 61 72 65 20 |', then |you are |
|00000680| 70 72 6f 62 61 62 6c 79 | 0a 58 62 65 74 74 65 72 |probably|.Xbetter|
|00000690| 20 6f 66 66 20 74 6f 20 | 73 74 61 72 74 20 62 79 | off to |start by|
|000006a0| 20 72 65 61 64 69 6e 67 | 20 61 20 67 65 6e 65 72 | reading| a gener|
|000006b0| 61 6c 20 69 6e 74 72 6f | 64 75 63 74 69 6f 6e 20 |al intro|duction |
|000006c0| 74 6f 20 55 4e 49 58 20 | 72 61 74 68 65 72 0a 58 |to UNIX |rather.X|
|000006d0| 74 68 61 6e 20 74 68 69 | 73 20 64 6f 63 75 6d 65 |than thi|s docume|
|000006e0| 6e 74 2e 0a 58 0a 58 41 | 6e 6f 74 68 65 72 20 75 |nt..X.XA|nother u|
|000006f0| 73 65 66 75 6c 20 73 6f | 75 72 63 65 20 6f 66 20 |seful so|urce of |
|00000700| 69 6e 66 6f 72 6d 61 74 | 69 6f 6e 20 69 73 20 74 |informat|ion is t|
|00000710| 68 65 20 63 6f 6c 6c 65 | 63 74 69 6f 6e 20 6f 66 |he colle|ction of|
|00000720| 20 46 41 51 20 61 72 74 | 69 63 6c 65 73 0a 58 70 | FAQ art|icles.Xp|
|00000730| 6f 73 74 65 64 20 62 69 | 2d 77 65 65 6b 6c 79 20 |osted bi|-weekly |
|00000740| 74 6f 20 74 68 65 20 55 | 73 65 6e 65 74 20 6e 65 |to the U|senet ne|
|00000750| 77 73 20 67 72 6f 75 70 | 73 20 63 6f 6d 70 2e 75 |ws group|s comp.u|
|00000760| 6e 69 78 2e 71 75 65 73 | 74 69 6f 6e 73 2c 0a 58 |nix.ques|tions,.X|
|00000770| 63 6f 6d 70 2e 75 6e 69 | 78 2e 73 68 65 6c 6c 73 |comp.uni|x.shells|
|00000780| 20 61 6e 64 20 6e 65 77 | 73 2e 61 6e 73 77 65 72 | and new|s.answer|
|00000790| 73 20 77 69 74 68 20 61 | 6e 73 77 65 72 73 20 74 |s with a|nswers t|
|000007a0| 6f 20 67 65 6e 65 72 61 | 6c 20 71 75 65 73 74 69 |o genera|l questi|
|000007b0| 6f 6e 73 0a 58 61 62 6f | 75 74 20 55 4e 49 58 2e |ons.Xabo|ut UNIX.|
|000007c0| 20 20 54 68 65 20 66 69 | 66 74 68 20 6f 66 20 74 | The fi|fth of t|
|000007d0| 68 65 20 73 65 76 65 6e | 20 61 72 74 69 63 6c 65 |he seven| article|
|000007e0| 73 20 64 65 61 6c 73 20 | 77 69 74 68 20 73 68 65 |s deals |with she|
|000007f0| 6c 6c 73 2c 0a 58 69 6e | 63 6c 75 64 69 6e 67 20 |lls,.Xin|cluding |
|00000800| 7a 73 68 2c 20 77 69 74 | 68 20 61 20 62 72 69 65 |zsh, wit|h a brie|
|00000810| 66 20 64 65 73 63 72 69 | 70 74 69 6f 6e 20 6f 66 |f descri|ption of|
|00000820| 20 64 69 66 66 65 72 65 | 6e 63 65 73 2e 20 20 28 | differe|nces. (|
|00000830| 54 68 69 73 20 61 72 74 | 69 63 6c 65 0a 58 61 6c |This art|icle.Xal|
|00000840| 73 6f 20 74 61 6c 6b 73 | 20 61 62 6f 75 74 20 73 |so talks| about s|
|00000850| 68 65 6c 6c 20 73 74 61 | 72 74 75 70 20 66 69 6c |hell sta|rtup fil|
|00000860| 65 73 20 77 68 69 63 68 | 20 77 6f 75 6c 64 20 6f |es which| would o|
|00000870| 74 68 65 72 77 69 73 65 | 20 72 61 74 65 20 61 0a |therwise| rate a.|
|00000880| 58 6d 65 6e 74 69 6f 6e | 20 68 65 72 65 2e 29 0a |Xmention| here.).|
|00000890| 58 0a 58 49 66 20 79 6f | 75 20 6a 75 73 74 20 77 |X.XIf yo|u just w|
|000008a0| 61 6e 74 20 74 6f 20 6b | 6e 6f 77 20 68 6f 77 20 |ant to k|now how |
|000008b0| 74 6f 20 67 65 74 20 79 | 6f 75 72 20 68 61 6e 64 |to get y|our hand|
|000008c0| 73 20 6f 6e 20 74 68 65 | 20 6c 61 74 65 73 74 20 |s on the| latest |
|000008d0| 76 65 72 73 69 6f 6e 2c | 0a 58 73 6b 69 70 20 74 |version,|.Xskip t|
|000008e0| 6f 20 71 75 65 73 74 69 | 6f 6e 20 34 3b 20 69 66 |o questi|on 4; if|
|000008f0| 20 79 6f 75 20 77 61 6e | 74 20 74 6f 20 6b 6e 6f | you wan|t to kno|
|00000900| 77 20 77 68 61 74 20 74 | 6f 20 64 6f 20 77 69 74 |w what t|o do wit|
|00000910| 68 20 69 6e 73 6f 6c 75 | 62 6c 65 0a 58 70 72 6f |h insolu|ble.Xpro|
|00000920| 62 6c 65 6d 73 2c 20 67 | 6f 20 74 6f 20 31 37 2e |blems, g|o to 17.|
|00000930| 0a 58 0a 58 4e 6f 74 61 | 74 69 6f 6e 3a 20 51 75 |.X.XNota|tion: Qu|
|00000940| 6f 74 65 73 20 60 6c 69 | 6b 65 20 74 68 69 73 27 |otes `li|ke this'|
|00000950| 20 61 72 65 20 6f 72 64 | 69 6e 61 72 79 20 74 65 | are ord|inary te|
|00000960| 78 74 75 61 6c 20 71 75 | 6f 74 61 74 69 6f 6e 0a |xtual qu|otation.|
|00000970| 58 6d 61 72 6b 73 2e 20 | 20 4f 74 68 65 72 20 75 |Xmarks. | Other u|
|00000980| 73 65 73 20 6f 66 20 71 | 75 6f 74 61 74 69 6f 6e |ses of q|uotation|
|00000990| 20 6d 61 72 6b 73 20 61 | 72 65 20 69 6e 70 75 74 | marks a|re input|
|000009a0| 20 74 6f 20 74 68 65 20 | 73 68 65 6c 6c 2e 0a 58 | to the |shell..X|
|000009b0| 0a 58 43 6f 6e 74 65 6e | 74 73 3a 0a 58 31 29 20 |.XConten|ts:.X1) |
|000009c0| 57 68 61 74 20 69 73 20 | 69 74 3f 0a 58 32 29 20 |What is |it?.X2) |
|000009d0| 4f 6e 20 77 68 61 74 20 | 6d 61 63 68 69 6e 65 73 |On what |machines|
|000009e0| 20 77 69 6c 6c 20 69 74 | 20 72 75 6e 3f 0a 58 33 | will it| run?.X3|
|000009f0| 29 20 57 68 61 74 27 73 | 20 74 68 65 20 6c 61 74 |) What's| the lat|
|00000a00| 65 73 74 20 76 65 72 73 | 69 6f 6e 3f 0a 58 34 29 |est vers|ion?.X4)|
|00000a10| 20 57 68 65 72 65 20 64 | 6f 20 49 20 67 65 74 20 | Where d|o I get |
|00000a20| 69 74 3f 0a 58 35 29 20 | 48 6f 77 20 64 6f 65 73 |it?.X5) |How does|
|00000a30| 20 7a 73 68 20 64 69 66 | 66 65 72 20 66 72 6f 6d | zsh dif|fer from|
|00000a40| 20 73 68 2c 20 6b 73 68 | 2c 20 63 73 68 2c 2e 2e | sh, ksh|, csh,..|
|00000a50| 2e 3f 0a 58 36 29 20 57 | 68 79 20 64 6f 20 6d 79 |.?.X6) W|hy do my|
|00000a60| 20 63 73 68 20 61 6c 69 | 61 73 65 73 20 6e 6f 74 | csh ali|ases not|
|00000a70| 20 77 6f 72 6b 3f 0a 58 | 37 29 20 48 6f 77 20 64 | work?.X|7) How d|
|00000a80| 6f 20 49 20 67 65 74 20 | 74 68 65 20 6d 65 74 61 |o I get |the meta|
|00000a90| 20 6b 65 79 20 74 6f 20 | 77 6f 72 6b 20 6f 6e 20 | key to |work on |
|00000aa0| 6d 79 20 78 74 65 72 6d | 3f 0a 58 38 29 20 57 68 |my xterm|?.X8) Wh|
|00000ab0| 79 20 64 6f 65 73 20 6d | 79 20 74 65 72 6d 69 6e |y does m|y termin|
|00000ac0| 61 6c 20 61 63 74 20 66 | 75 6e 6e 79 20 69 6e 20 |al act f|unny in |
|00000ad0| 77 61 79 20 78 3f 0a 58 | 39 29 20 57 68 79 20 64 |way x?.X|9) Why d|
|00000ae0| 6f 65 73 20 60 24 76 62 | 6c 65 27 20 77 68 65 72 |oes `$vb|le' wher|
|00000af0| 65 20 76 62 6c 65 3d 22 | 66 6f 6f 20 62 61 72 22 |e vble="|foo bar"|
|00000b00| 20 6e 6f 74 20 64 6f 20 | 77 68 61 74 20 49 20 65 | not do |what I e|
|00000b10| 78 70 65 63 74 3f 0a 58 | 31 30 29 20 48 6f 77 20 |xpect?.X|10) How |
|00000b20| 64 6f 65 73 20 62 61 73 | 65 20 61 72 69 74 68 6d |does bas|e arithm|
|00000b30| 65 74 69 63 20 77 6f 72 | 6b 3f 0a 58 31 31 29 20 |etic wor|k?.X11) |
|00000b40| 48 6f 77 20 64 6f 20 49 | 20 67 65 74 20 61 20 6e |How do I| get a n|
|00000b50| 65 77 6c 69 6e 65 20 69 | 6e 20 6d 79 20 70 72 6f |ewline i|n my pro|
|00000b60| 6d 70 74 3f 0a 58 31 32 | 29 20 57 68 79 20 64 6f |mpt?.X12|) Why do|
|00000b70| 65 73 20 60 62 69 6e 64 | 6b 65 79 20 5e 61 20 63 |es `bind|key ^a c|
|00000b80| 6f 6d 6d 61 6e 64 2d 6e | 61 6d 65 27 20 64 6f 20 |ommand-n|ame' do |
|00000b90| 73 6f 6d 65 74 68 69 6e | 67 20 66 75 6e 6e 79 3f |somethin|g funny?|
|00000ba0| 0a 58 31 33 29 20 48 6f | 77 20 64 6f 20 49 20 72 |.X13) Ho|w do I r|
|00000bb0| 65 66 65 72 65 6e 63 65 | 20 63 6f 6d 6d 61 6e 64 |eference| command|
|00000bc0| 20 60 66 6f 6f 27 20 66 | 72 6f 6d 20 77 69 74 68 | `foo' f|rom with|
|00000bd0| 69 6e 20 66 75 6e 63 74 | 69 6f 6e 20 60 66 6f 6f |in funct|ion `foo|
|00000be0| 27 3f 0a 58 31 34 29 20 | 49 20 64 6f 6e 27 74 20 |'?.X14) |I don't |
|00000bf0| 68 61 76 65 20 72 6f 6f | 74 20 61 63 63 65 73 73 |have roo|t access|
|00000c00| 3a 20 68 6f 77 20 64 6f | 20 49 20 6d 61 6b 65 20 |: how do| I make |
|00000c10| 7a 73 68 20 6d 79 20 6c | 6f 67 69 6e 20 73 68 65 |zsh my l|ogin she|
|00000c20| 6c 6c 3f 0a 58 31 35 29 | 20 57 68 61 74 20 62 75 |ll?.X15)| What bu|
|00000c30| 67 73 20 61 72 65 20 63 | 75 72 72 65 6e 74 6c 79 |gs are c|urrently|
|00000c40| 20 6b 6e 6f 77 6e 20 61 | 6e 64 20 75 6e 66 69 78 | known a|nd unfix|
|00000c50| 65 64 3f 0a 58 31 36 29 | 20 57 68 65 72 65 20 64 |ed?.X16)| Where d|
|00000c60| 6f 20 49 20 72 65 70 6f | 72 74 20 62 75 67 73 2c |o I repo|rt bugs,|
|00000c70| 20 67 65 74 20 6d 6f 72 | 65 20 69 6e 66 6f 20 2f | get mor|e info /|
|00000c80| 20 77 68 6f 27 73 20 77 | 6f 72 6b 69 6e 67 20 6f | who's w|orking o|
|00000c90| 6e 20 7a 73 68 3f 0a 58 | 31 37 29 20 57 68 61 74 |n zsh?.X|17) What|
|00000ca0| 27 73 20 6f 6e 20 74 68 | 65 20 77 69 73 68 2d 6c |'s on th|e wish-l|
|00000cb0| 69 73 74 3f 0a 58 0a 58 | 0a 58 31 29 20 57 68 61 |ist?.X.X|.X1) Wha|
|00000cc0| 74 20 69 73 20 69 74 3f | 0a 58 0a 58 20 20 5a 73 |t is it?|.X.X Zs|
|00000cd0| 68 20 69 73 20 61 20 55 | 4e 49 58 20 63 6f 6d 6d |h is a U|NIX comm|
|00000ce0| 61 6e 64 20 69 6e 74 65 | 72 70 72 65 74 65 72 20 |and inte|rpreter |
|00000cf0| 28 73 68 65 6c 6c 29 20 | 77 68 69 63 68 20 6f 66 |(shell) |which of|
|00000d00| 20 74 68 65 20 73 74 61 | 6e 64 61 72 64 20 73 68 | the sta|ndard sh|
|00000d10| 65 6c 6c 73 0a 58 20 20 | 6d 6f 73 74 20 72 65 73 |ells.X |most res|
|00000d20| 65 6d 62 6c 65 73 20 74 | 68 65 20 4b 6f 72 6e 20 |embles t|he Korn |
|00000d30| 73 68 65 6c 6c 20 28 6b | 73 68 29 2c 20 61 6c 74 |shell (k|sh), alt|
|00000d40| 68 6f 75 67 68 20 69 74 | 20 69 73 20 6e 6f 74 20 |hough it| is not |
|00000d50| 63 6f 6d 70 6c 65 74 65 | 6c 79 0a 58 20 20 63 6f |complete|ly.X co|
|00000d60| 6d 70 61 74 69 62 6c 65 | 2e 20 20 49 74 20 69 6e |mpatible|. It in|
|00000d70| 63 6c 75 64 65 73 20 65 | 6e 68 61 6e 63 65 6d 65 |cludes e|nhanceme|
|00000d80| 6e 74 73 20 6f 66 20 6d | 61 6e 79 20 74 79 70 65 |nts of m|any type|
|00000d90| 73 2c 20 6e 6f 74 61 62 | 6c 79 20 69 6e 20 74 68 |s, notab|ly in th|
|00000da0| 65 0a 58 20 20 63 6f 6d | 6d 61 6e 64 2d 6c 69 6e |e.X com|mand-lin|
|00000db0| 65 20 65 64 69 74 6f 72 | 2c 20 6f 70 74 69 6f 6e |e editor|, option|
|00000dc0| 73 20 66 6f 72 20 63 75 | 73 74 6f 6d 69 73 69 6e |s for cu|stomisin|
|00000dd0| 67 20 69 74 73 20 62 65 | 68 61 76 69 6f 75 72 2c |g its be|haviour,|
|00000de0| 20 66 69 6c 65 6e 61 6d | 65 0a 58 20 20 67 6c 6f | filenam|e.X glo|
|00000df0| 62 62 69 6e 67 2c 20 66 | 65 61 74 75 72 65 73 20 |bbing, f|eatures |
|00000e00| 74 6f 20 6d 61 6b 65 20 | 43 2d 73 68 65 6c 6c 20 |to make |C-shell |
|00000e10| 28 63 73 68 29 20 75 73 | 65 72 73 20 66 65 65 6c |(csh) us|ers feel|
|00000e20| 20 6d 6f 72 65 20 61 74 | 20 68 6f 6d 65 20 61 6e | more at| home an|
|00000e30| 64 0a 58 20 20 65 78 74 | 72 61 20 66 65 61 74 75 |d.X ext|ra featu|
|00000e40| 72 65 73 20 64 72 61 77 | 6e 20 66 72 6f 6d 20 74 |res draw|n from t|
|00000e50| 63 73 68 20 28 61 6e 6f | 74 68 65 72 20 60 63 75 |csh (ano|ther `cu|
|00000e60| 73 74 6f 6d 27 20 73 68 | 65 6c 6c 29 2e 0a 58 0a |stom' sh|ell)..X.|
|00000e70| 58 20 20 49 74 20 77 61 | 73 20 77 72 69 74 74 65 |X It wa|s writte|
|00000e80| 6e 20 62 79 20 50 61 75 | 6c 20 46 61 6c 73 74 61 |n by Pau|l Falsta|
|00000e90| 64 20 3c 70 66 40 74 74 | 69 73 6d 73 2e 63 6f 6d |d <pf@tt|isms.com|
|00000ea0| 3e 20 77 68 65 6e 20 61 | 20 73 74 75 64 65 6e 74 |> when a| student|
|00000eb0| 20 61 74 0a 58 20 20 50 | 72 69 6e 63 65 74 6f 6e | at.X P|rinceton|
|00000ec0| 3b 20 68 6f 77 65 76 65 | 72 2c 20 50 61 75 6c 20 |; howeve|r, Paul |
|00000ed0| 64 6f 65 73 6e 27 74 20 | 6d 61 69 6e 74 61 69 6e |doesn't |maintain|
|00000ee0| 20 69 74 20 61 6e 79 20 | 6d 6f 72 65 20 61 6e 64 | it any |more and|
|00000ef0| 20 65 6e 71 75 69 72 69 | 65 73 0a 58 20 20 73 68 | enquiri|es.X sh|
|00000f00| 6f 75 6c 64 20 62 65 20 | 73 65 6e 74 20 74 6f 20 |ould be |sent to |
|00000f10| 74 68 65 20 6d 61 69 6c | 69 6e 67 20 6c 69 73 74 |the mail|ing list|
|00000f20| 20 28 73 65 65 20 71 75 | 65 73 74 69 6f 6e 20 31 | (see qu|estion 1|
|00000f30| 37 29 2e 20 20 49 74 20 | 69 73 20 66 72 65 65 6c |7). It |is freel|
|00000f40| 79 0a 58 20 20 61 76 61 | 69 6c 61 62 6c 65 20 74 |y.X ava|ilable t|
|00000f50| 6f 20 61 6e 79 6f 6e 65 | 20 75 6e 64 65 72 20 75 |o anyone| under u|
|00000f60| 6e 72 65 73 74 72 69 63 | 74 69 76 65 20 63 6f 6e |nrestric|tive con|
|00000f70| 64 69 74 69 6f 6e 73 2e | 0a 58 0a 58 20 20 46 6f |ditions.|.X.X Fo|
|00000f80| 72 20 6d 6f 72 65 20 69 | 6e 66 6f 72 6d 61 74 69 |r more i|nformati|
|00000f90| 6f 6e 2c 20 74 68 65 20 | 66 69 6c 65 73 20 64 6f |on, the |files do|
|00000fa0| 63 2f 69 6e 74 72 6f 2e | 74 78 74 20 6f 72 20 64 |c/intro.|txt or d|
|00000fb0| 6f 63 2f 69 6e 74 72 6f | 2e 74 72 6f 66 66 0a 58 |oc/intro|.troff.X|
|00000fc0| 20 20 69 6e 63 6c 75 64 | 65 64 20 77 69 74 68 20 | includ|ed with |
|00000fd0| 74 68 65 20 73 6f 75 72 | 63 65 20 64 69 73 74 72 |the sour|ce distr|
|00000fe0| 69 62 75 74 69 6f 6e 20 | 61 72 65 20 68 69 67 68 |ibution |are high|
|00000ff0| 6c 79 20 72 65 63 6f 6d | 6d 65 6e 64 65 64 2e 20 |ly recom|mended. |
|00001000| 20 54 68 65 0a 58 20 20 | 66 69 6c 65 73 20 69 6e | The.X |files in|
|00001010| 74 72 6f 2e 70 73 2e 5a | 20 61 6e 64 20 69 6e 74 |tro.ps.Z| and int|
|00001020| 72 6f 2e 74 78 74 2e 5a | 20 63 61 6e 20 61 6c 73 |ro.txt.Z| can als|
|00001030| 6f 20 62 65 20 46 54 50 | 27 64 20 73 65 70 61 72 |o be FTP|'d separ|
|00001040| 61 74 65 6c 79 20 66 72 | 6f 6d 20 74 68 65 0a 58 |ately fr|om the.X|
|00001050| 20 20 61 72 63 68 69 76 | 65 20 28 73 65 65 20 34 | archiv|e (see 4|
|00001060| 29 2e 20 20 41 20 6c 69 | 73 74 20 6f 66 20 66 65 |). A li|st of fe|
|00001070| 61 74 75 72 65 73 20 69 | 73 20 67 69 76 65 6e 20 |atures i|s given |
|00001080| 69 6e 20 46 45 41 54 55 | 52 45 53 2c 20 61 6c 73 |in FEATU|RES, als|
|00001090| 6f 20 77 69 74 68 0a 58 | 20 20 74 68 65 20 73 6f |o with.X| the so|
|000010a0| 75 72 63 65 2e 0a 58 0a | 58 0a 58 32 29 20 4f 6e |urce..X.|X.X2) On|
|000010b0| 20 77 68 61 74 20 6d 61 | 63 68 69 6e 65 73 20 77 | what ma|chines w|
|000010c0| 69 6c 6c 20 69 74 20 72 | 75 6e 3f 0a 58 0a 58 20 |ill it r|un?.X.X |
|000010d0| 20 5a 73 68 20 77 61 73 | 20 77 72 69 74 74 65 6e | Zsh was| written|
|000010e0| 20 66 6f 72 20 6d 61 63 | 68 69 6e 65 73 20 6f 66 | for mac|hines of|
|000010f0| 20 74 68 65 20 42 65 72 | 6b 65 6c 65 79 20 55 4e | the Ber|keley UN|
|00001100| 49 58 20 66 61 6d 69 6c | 79 3b 20 6d 6f 73 74 20 |IX famil|y; most |
|00001110| 73 75 63 68 0a 58 20 20 | 6d 61 63 68 69 6e 65 73 |such.X |machines|
|00001120| 20 28 61 6e 64 20 61 6c | 6c 20 74 68 65 20 6d 6f | (and al|l the mo|
|00001130| 73 74 20 70 6f 70 75 6c | 61 72 29 20 77 69 6c 6c |st popul|ar) will|
|00001140| 20 72 75 6e 20 69 74 20 | 77 69 74 68 6f 75 74 20 | run it |without |
|00001150| 6d 61 6a 6f 72 20 73 75 | 72 67 65 72 79 2e 0a 58 |major su|rgery..X|
|00001160| 20 20 4d 6f 64 69 66 69 | 63 61 74 69 6f 6e 73 20 | Modifi|cations |
|00001170| 68 61 76 65 20 62 65 65 | 6e 20 6d 61 64 65 20 73 |have bee|n made s|
|00001180| 6f 20 74 68 61 74 20 69 | 74 20 73 68 6f 75 6c 64 |o that i|t should|
|00001190| 20 77 6f 72 6b 20 75 6e | 64 65 72 20 53 59 53 56 | work un|der SYSV|
|000011a0| 52 34 2d 62 61 73 65 64 | 0a 58 20 20 6f 70 65 72 |R4-based|.X oper|
|000011b0| 61 74 69 6e 67 20 73 79 | 73 74 65 6d 73 20 73 75 |ating sy|stems su|
|000011c0| 63 68 20 61 73 20 53 6f | 6c 61 72 69 73 20 32 2e |ch as So|laris 2.|
|000011d0| 78 2e 20 20 54 68 69 73 | 20 62 65 73 74 20 74 68 |x. This| best th|
|000011e0| 69 6e 67 20 69 73 20 74 | 6f 20 73 75 63 6b 20 69 |ing is t|o suck i|
|000011f0| 74 0a 58 20 20 61 6e 64 | 20 73 65 65 2e 20 20 59 |t.X and| see. Y|
|00001200| 6f 75 20 6d 61 79 20 6e | 6f 74 20 68 61 76 65 20 |ou may n|ot have |
|00001210| 74 6f 20 63 68 61 6e 67 | 65 20 74 6f 6f 20 6d 75 |to chang|e too mu|
|00001220| 63 68 3a 20 20 69 66 20 | 79 6f 75 20 64 6f 20 63 |ch: if |you do c|
|00001230| 68 61 6e 67 65 0a 58 20 | 20 61 6e 79 74 68 69 6e |hange.X | anythin|
|00001240| 67 2c 20 20 61 72 72 61 | 6e 67 65 20 66 6f 72 20 |g, arra|nge for |
|00001250| 74 68 65 20 73 68 65 6c | 6c 20 73 63 72 69 70 74 |the shel|l script|
|00001260| 20 60 62 75 69 6c 64 7a | 73 68 27 20 74 6f 20 73 | `buildz|sh' to s|
|00001270| 65 74 20 74 68 65 0a 58 | 20 20 6e 65 63 65 73 73 |et the.X| necess|
|00001280| 61 72 79 20 23 64 65 66 | 69 6e 65 27 73 2c 20 65 |ary #def|ine's, e|
|00001290| 74 63 2e 2c 20 77 69 74 | 68 6f 75 74 20 68 75 6d |tc., wit|hout hum|
|000012a0| 61 6e 20 69 6e 74 65 72 | 76 65 6e 74 69 6f 6e 2e |an inter|vention.|
|000012b0| 0a 58 0a 58 0a 58 33 29 | 20 57 68 61 74 27 73 20 |.X.X.X3)| What's |
|000012c0| 74 68 65 20 6c 61 74 65 | 73 74 20 76 65 72 73 69 |the late|st versi|
|000012d0| 6f 6e 3f 0a 58 20 20 0a | 58 20 20 54 68 65 20 6c |on?.X .|X The l|
|000012e0| 61 74 65 73 74 20 70 72 | 6f 64 75 63 74 69 6f 6e |atest pr|oduction|
|000012f0| 20 76 65 72 73 69 6f 6e | 20 69 73 20 32 2e 33 2e | version| is 2.3.|
|00001300| 31 2c 20 77 68 69 63 68 | 20 68 61 73 20 6a 75 73 |1, which| has jus|
|00001310| 74 20 62 65 65 6e 20 72 | 65 6c 65 61 73 65 64 2e |t been r|eleased.|
|00001320| 0a 58 20 20 4e 65 77 20 | 70 61 74 63 68 65 73 20 |.X New |patches |
|00001330| 6f 63 63 75 72 20 66 72 | 65 71 75 65 6e 74 6c 79 |occur fr|equently|
|00001340| 20 61 6e 64 20 61 72 65 | 20 61 64 64 65 64 20 74 | and are| added t|
|00001350| 6f 20 74 68 65 20 61 72 | 63 68 69 76 65 20 28 6e |o the ar|chive (n|
|00001360| 65 78 74 0a 58 20 20 71 | 75 65 73 74 69 6f 6e 29 |ext.X q|uestion)|
|00001370| 2e 0a 58 0a 58 0a 58 34 | 29 20 57 68 65 72 65 20 |..X.X.X4|) Where |
|00001380| 64 6f 20 49 20 67 65 74 | 20 69 74 3f 0a 58 0a 58 |do I get| it?.X.X|
|00001390| 20 20 54 68 65 20 63 75 | 72 72 65 6e 74 20 72 65 | The cu|rrent re|
|000013a0| 6c 65 61 73 65 20 69 73 | 20 61 76 61 69 6c 61 62 |lease is| availab|
|000013b0| 6c 65 20 66 6f 72 20 61 | 6e 6f 6e 79 6d 6f 75 73 |le for a|nonymous|
|000013c0| 20 46 54 50 20 66 72 6f | 6d 0a 58 09 63 73 2e 75 | FTP fro|m.X.cs.u|
|000013d0| 63 73 64 2e 65 64 75 20 | 28 31 33 32 2e 32 33 39 |csd.edu |(132.239|
|000013e0| 2e 35 31 2e 33 29 3a 70 | 75 62 2f 7a 73 68 2f 7a |.51.3):p|ub/zsh/z|
|000013f0| 73 68 32 2e 33 2e 31 2e | 74 61 72 2e 5a 0a 58 20 |sh2.3.1.|tar.Z.X |
|00001400| 20 54 68 65 20 61 72 63 | 68 69 76 65 20 6d 61 69 | The arc|hive mai|
|00001410| 6e 74 61 69 6e 65 72 20 | 63 75 72 72 65 6e 74 6c |ntainer |currentl|
|00001420| 79 20 69 73 20 4a 69 6d | 20 4d 61 74 74 73 6f 6e |y is Jim| Mattson|
|00001430| 20 3c 6d 61 74 74 73 6f | 6e 40 63 73 2e 55 43 53 | <mattso|n@cs.UCS|
|00001440| 44 2e 45 44 55 3e 2c 0a | 58 20 20 77 68 6f 20 61 |D.EDU>,.|X who a|
|00001450| 6c 73 6f 20 72 65 61 64 | 73 20 74 68 65 20 6d 61 |lso read|s the ma|
|00001460| 69 6c 69 6e 67 20 6c 69 | 73 74 2e 0a 58 0a 58 20 |iling li|st..X.X |
|00001470| 20 42 61 73 20 64 65 20 | 42 61 6b 6b 65 72 20 28 | Bas de |Bakker (|
|00001480| 62 61 73 40 70 68 79 73 | 2e 75 76 61 2e 6e 6c 29 |bas@phys|.uva.nl)|
|00001490| 20 77 69 6c 6c 20 73 68 | 6f 72 74 6c 79 20 62 65 | will sh|ortly be|
|000014a0| 20 74 61 6b 69 6e 67 20 | 6f 76 65 72 20 74 68 65 | taking |over the|
|000014b0| 20 61 72 63 68 69 76 65 | 0a 58 20 20 61 6e 64 20 | archive|.X and |
|000014c0| 6e 65 77 20 70 61 74 63 | 68 65 73 20 61 72 65 20 |new patc|hes are |
|000014d0| 6c 69 6b 65 6c 79 20 74 | 6f 20 62 65 20 61 76 61 |likely t|o be ava|
|000014e0| 69 6c 61 62 6c 65 20 66 | 72 6f 6d 3a 0a 58 09 63 |ilable f|rom:.X.c|
|000014f0| 61 72 6c 6f 2e 70 68 79 | 73 2e 75 76 61 2e 6e 6c |arlo.phy|s.uva.nl|
|00001500| 20 28 31 34 35 2e 31 38 | 2e 32 32 30 2e 32 35 29 | (145.18|.220.25)|
|00001510| 3a 2f 70 75 62 2f 62 61 | 73 2f 7a 73 68 0a 58 20 |:/pub/ba|s/zsh.X |
|00001520| 20 0a 58 20 20 52 69 63 | 68 61 72 64 20 4f 68 6e | .X Ric|hard Ohn|
|00001530| 65 6d 75 73 20 77 69 6c | 6c 20 70 72 6f 62 61 62 |emus wil|l probab|
|00001540| 6c 79 20 68 61 76 65 20 | 61 20 4e 6f 72 74 68 20 |ly have |a North |
|00001550| 41 6d 65 72 69 63 61 6e | 20 72 65 66 6c 65 63 74 |American| reflect|
|00001560| 6f 72 20 61 74 0a 58 20 | 20 66 74 70 2e 73 74 65 |or at.X | ftp.ste|
|00001570| 72 6c 69 6e 67 2e 63 6f | 6d 2e 0a 58 0a 58 0a 58 |rling.co|m..X.X.X|
|00001580| 35 29 20 48 6f 77 20 64 | 6f 65 73 20 7a 73 68 20 |5) How d|oes zsh |
|00001590| 64 69 66 66 65 72 20 66 | 72 6f 6d 20 73 68 2c 20 |differ f|rom sh, |
|000015a0| 6b 73 68 2c 20 63 73 68 | 2c 2e 2e 2e 3f 0a 58 0a |ksh, csh|,...?.X.|
|000015b0| 58 20 20 41 73 20 6d 65 | 6e 74 69 6f 6e 65 64 2c |X As me|ntioned,|
|000015c0| 20 7a 73 68 20 69 73 20 | 6d 6f 73 74 20 73 69 6d | zsh is |most sim|
|000015d0| 69 6c 61 72 20 74 6f 20 | 6b 73 68 2c 20 77 68 69 |ilar to |ksh, whi|
|000015e0| 6c 65 20 6d 61 6e 79 20 | 6f 66 20 74 68 65 20 61 |le many |of the a|
|000015f0| 64 64 69 74 69 6f 6e 73 | 20 61 72 65 0a 58 20 20 |dditions| are.X |
|00001600| 74 6f 20 70 6c 65 61 73 | 65 20 63 73 68 20 75 73 |to pleas|e csh us|
|00001610| 65 72 73 2e 0a 58 0a 58 | 20 20 69 29 20 6b 73 68 |ers..X.X| i) ksh|
|00001620| 3a 0a 58 20 20 4d 6f 73 | 74 20 66 65 61 74 75 72 |:.X Mos|t featur|
|00001630| 65 73 20 6f 66 20 6b 73 | 68 20 61 72 65 20 69 6d |es of ks|h are im|
|00001640| 70 6c 65 6d 65 6e 74 65 | 64 20 69 6e 20 7a 73 68 |plemente|d in zsh|
|00001650| 3b 20 70 72 6f 62 6c 65 | 6d 73 20 63 61 6e 20 61 |; proble|ms can a|
|00001660| 72 69 73 65 0a 58 20 20 | 62 65 63 61 75 73 65 20 |rise.X |because |
|00001670| 74 68 65 20 69 6d 70 6c | 65 6d 65 6e 74 61 74 69 |the impl|ementati|
|00001680| 6f 6e 20 69 73 20 73 6c | 69 67 68 74 6c 79 20 64 |on is sl|ightly d|
|00001690| 69 66 66 65 72 65 6e 74 | 2e 20 20 4e 6f 74 65 20 |ifferent|. Note |
|000016a0| 61 6c 73 6f 20 6e 6f 74 | 20 61 6c 6c 0a 58 20 20 |also not| all.X |
|000016b0| 6b 73 68 27 73 20 61 72 | 65 20 74 68 65 20 73 61 |ksh's ar|e the sa|
|000016c0| 6d 65 20 65 69 74 68 65 | 72 2e 20 20 49 20 68 61 |me eithe|r. I ha|
|000016d0| 76 65 20 62 61 73 65 64 | 20 74 68 69 73 20 6f 6e |ve based| this on|
|000016e0| 20 53 75 6e 4f 53 20 34 | 2c 20 77 68 69 63 68 20 | SunOS 4|, which |
|000016f0| 69 73 0a 58 20 20 65 73 | 73 65 6e 74 69 61 6c 6c |is.X es|sentiall|
|00001700| 79 20 74 68 65 20 31 31 | 2f 31 36 2f 38 38 20 76 |y the 11|/16/88 v|
|00001710| 65 72 73 69 6f 6e 20 6f | 66 20 6b 73 68 2e 0a 58 |ersion o|f ksh..X|
|00001720| 0a 58 20 20 44 69 66 66 | 65 72 65 6e 63 65 73 20 |.X Diff|erences |
|00001730| 66 72 6f 6d 20 6b 73 68 | 20 77 68 69 63 68 20 6d |from ksh| which m|
|00001740| 69 67 68 74 20 70 72 6f | 76 65 20 73 69 67 6e 69 |ight pro|ve signi|
|00001750| 66 69 63 61 6e 74 20 66 | 6f 72 20 6b 73 68 0a 58 |ficant f|or ksh.X|
|00001760| 20 20 70 72 6f 67 72 61 | 6d 6d 65 72 73 2c 20 73 | progra|mmers, s|
|00001770| 6f 6d 65 20 6f 66 20 77 | 68 69 63 68 20 6d 61 79 |ome of w|hich may|
|00001780| 20 62 65 20 69 6e 74 65 | 72 70 72 65 74 65 64 20 | be inte|rpreted |
|00001790| 61 73 20 62 75 67 73 20 | 28 74 68 65 72 65 20 6d |as bugs |(there m|
|000017a0| 75 73 74 20 62 65 0a 58 | 20 20 6d 6f 72 65 29 20 |ust be.X| more) |
|000017b0| 69 6e 63 6c 75 64 65 3a | 0a 58 20 20 20 20 53 68 |include:|.X Sh|
|000017c0| 65 6c 6c 20 77 6f 72 64 | 20 73 70 6c 69 74 74 69 |ell word| splitti|
|000017d0| 6e 67 3a 20 73 65 65 20 | 71 75 65 73 74 69 6f 6e |ng: see |question|
|000017e0| 20 31 34 2e 0a 58 20 20 | 20 20 41 72 72 61 79 73 | 14..X | Arrays|
|000017f0| 20 61 72 65 20 6d 6f 72 | 65 20 63 73 68 2d 6c 69 | are mor|e csh-li|
|00001800| 6b 65 20 74 68 61 6e 20 | 6b 73 68 2d 6c 69 6b 65 |ke than |ksh-like|
|00001810| 3a 0a 58 20 20 20 20 20 | 20 73 75 62 73 63 72 69 |:.X | subscri|
|00001820| 70 74 73 20 73 74 61 72 | 74 20 61 74 20 31 2c 20 |pts star|t at 1, |
|00001830| 6e 6f 74 20 30 3b 20 61 | 72 72 61 79 5b 30 5d 20 |not 0; a|rray[0] |
|00001840| 72 65 66 65 72 73 20 74 | 6f 20 61 72 72 61 79 5b |refers t|o array[|
|00001850| 31 5d 3b 0a 58 20 20 20 | 20 20 20 60 24 61 72 72 |1];.X | `$arr|
|00001860| 61 79 27 20 72 65 66 65 | 72 73 20 74 6f 20 74 68 |ay' refe|rs to th|
|00001870| 65 20 77 68 6f 6c 65 20 | 61 72 72 61 79 2c 20 6e |e whole |array, n|
|00001880| 6f 74 20 24 61 72 72 61 | 79 5b 30 5d 3b 0a 58 20 |ot $arra|y[0];.X |
|00001890| 20 20 20 20 20 62 72 61 | 63 65 73 20 61 72 65 20 | bra|ces are |
|000018a0| 75 6e 6e 65 63 65 73 73 | 61 72 79 3a 20 24 61 5b |unnecess|ary: $a[|
|000018b0| 31 5d 20 3d 3d 20 24 7b | 61 5b 31 5d 7d 2c 20 65 |1] == ${|a[1]}, e|
|000018c0| 74 63 2e 0a 58 20 20 20 | 20 50 61 74 68 20 6e 6f |tc..X | Path no|
|000018d0| 74 20 73 65 61 72 63 68 | 65 64 20 66 6f 72 20 63 |t search|ed for c|
|000018e0| 6f 6d 6d 61 6e 64 73 20 | 73 70 65 63 69 66 69 65 |ommands |specifie|
|000018f0| 64 20 61 74 20 69 6e 76 | 6f 63 61 74 69 6f 6e 20 |d at inv|ocation |
|00001900| 77 69 74 68 6f 75 74 20 | 2d 63 2e 0a 58 20 20 20 |without |-c..X |
|00001910| 20 4d 61 6e 61 67 65 6d | 65 6e 74 20 6f 66 20 68 | Managem|ent of h|
|00001920| 69 73 74 6f 72 69 65 73 | 20 69 6e 20 6d 75 6c 74 |istories| in mult|
|00001930| 69 70 6c 65 20 73 68 65 | 6c 6c 73 20 6d 61 79 20 |iple she|lls may |
|00001940| 62 65 20 64 69 66 66 65 | 72 65 6e 74 2e 0a 58 20 |be diffe|rent..X |
|00001950| 20 20 20 43 6f 70 72 6f | 63 65 73 73 65 73 20 61 | Copro|cesses a|
|00001960| 72 65 20 65 73 74 61 62 | 6c 69 73 68 65 64 20 62 |re estab|lished b|
|00001970| 79 20 60 63 6f 70 72 6f | 63 27 3b 20 60 7c 26 27 |y `copro|c'; `|&'|
|00001980| 20 62 65 68 61 76 65 73 | 20 6c 69 6b 65 20 63 73 | behaves| like cs|
|00001990| 68 2e 0a 58 20 20 20 20 | 50 53 31 20 64 6f 65 73 |h..X |PS1 does|
|000019a0| 20 6e 6f 74 20 64 6f 20 | 70 61 72 61 6d 65 74 65 | not do |paramete|
|000019b0| 72 20 73 75 62 73 74 69 | 74 75 74 69 6f 6e 2e 0a |r substi|tution..|
|000019c0| 58 20 20 20 20 47 6c 6f | 62 62 69 6e 67 20 64 6f |X Glo|bbing do|
|000019d0| 65 73 20 6e 6f 74 20 61 | 6c 6c 6f 77 20 6b 73 68 |es not a|llow ksh|
|000019e0| 2d 73 74 79 6c 65 20 60 | 70 61 74 74 65 72 6e 2d |-style `|pattern-|
|000019f0| 6c 69 73 74 73 27 2e 0a | 58 20 20 20 20 54 68 65 |lists'..|X The|
|00001a00| 20 6f 70 74 69 6f 6e 73 | 20 65 6d 61 63 73 2c 20 | options| emacs, |
|00001a10| 67 6d 61 63 73 2c 20 70 | 72 69 76 69 6c 65 67 65 |gmacs, p|rivilege|
|00001a20| 64 2c 20 74 72 61 63 6b | 61 6c 6c 2c 20 76 69 72 |d, track|all, vir|
|00001a30| 61 77 20 61 72 65 20 6e | 6f 74 20 73 75 70 70 6f |aw are n|ot suppo|
|00001a40| 72 74 65 64 2e 0a 58 20 | 20 20 20 54 68 65 20 60 |rted..X | The `|
|00001a50| 6b 65 79 77 6f 72 64 27 | 20 6f 70 74 69 6f 6e 20 |keyword'| option |
|00001a60| 64 6f 65 73 20 6e 6f 74 | 20 65 78 69 73 74 20 61 |does not| exist a|
|00001a70| 6e 64 20 2d 6b 20 69 73 | 20 69 6e 73 74 65 61 64 |nd -k is| instead|
|00001a80| 20 69 6e 74 65 72 61 63 | 74 69 76 65 63 6f 6d 6d | interac|tivecomm|
|00001a90| 65 6e 74 73 2e 0a 58 20 | 20 20 20 5b 20 5d 20 69 |ents..X | [ ] i|
|00001aa0| 73 20 61 20 73 68 65 6c | 6c 20 62 75 69 6c 74 2d |s a shel|l built-|
|00001ab0| 69 6e 2c 20 72 61 74 68 | 65 72 20 74 68 61 6e 20 |in, rath|er than |
|00001ac0| 61 20 63 61 6c 6c 20 74 | 6f 20 2f 62 69 6e 2f 74 |a call t|o /bin/t|
|00001ad0| 65 73 74 2e 0a 58 20 20 | 20 20 54 68 65 72 65 20 |est..X | There |
|00001ae0| 69 73 20 6e 6f 20 62 75 | 69 6c 74 2d 69 6e 20 63 |is no bu|ilt-in c|
|00001af0| 6f 6d 6d 61 6e 64 20 6e | 65 77 67 72 70 3a 20 75 |ommand n|ewgrp: u|
|00001b00| 73 65 20 61 20 73 68 65 | 6c 6c 20 66 75 6e 63 74 |se a she|ll funct|
|00001b10| 69 6f 6e 2e 0a 58 20 20 | 20 20 54 68 65 20 6f 72 |ion..X | The or|
|00001b20| 64 65 72 20 69 6e 20 77 | 68 69 63 68 20 61 6c 69 |der in w|hich ali|
|00001b30| 61 73 65 73 20 61 6e 64 | 20 66 75 6e 63 74 69 6f |ases and| functio|
|00001b40| 6e 73 20 61 72 65 20 64 | 65 66 69 6e 65 64 20 69 |ns are d|efined i|
|00001b50| 73 20 73 69 67 6e 69 66 | 69 63 61 6e 74 2e 0a 58 |s signif|icant..X|
|00001b60| 20 20 20 20 53 6f 6d 65 | 20 62 75 69 6c 74 2d 69 | Some| built-i|
|00001b70| 6e 73 20 28 74 72 75 65 | 2c 20 66 61 6c 73 65 2c |ns (true|, false,|
|00001b80| 20 72 2c 20 2e 2e 2e 29 | 20 77 65 72 65 20 61 6c | r, ...)| were al|
|00001b90| 69 61 73 65 73 20 69 6e | 20 6b 73 68 2e 0a 58 20 |iases in| ksh..X |
|00001ba0| 20 20 20 41 6c 69 61 73 | 65 73 20 61 6e 64 20 66 | Alias|es and f|
|00001bb0| 75 6e 63 74 69 6f 6e 73 | 20 63 61 6e 6e 6f 74 20 |unctions| cannot |
|00001bc0| 62 65 20 65 78 70 6f 72 | 74 65 64 2e 0a 58 20 20 |be expor|ted..X |
|00001bd0| 20 20 54 68 65 72 65 20 | 61 72 65 20 6e 6f 20 74 | There |are no t|
|00001be0| 72 61 63 6b 65 64 20 61 | 6c 69 61 73 65 73 2e 0a |racked a|liases..|
|00001bf0| 58 20 20 20 20 54 68 65 | 72 65 20 69 73 20 6e 6f |X The|re is no|
|00001c00| 20 45 4e 56 20 76 61 72 | 69 61 62 6c 65 2e 0a 58 | ENV var|iable..X|
|00001c10| 20 20 20 20 4e 6f 20 62 | 75 69 6c 74 2d 69 6e 20 | No b|uilt-in |
|00001c20| 63 6f 6d 6d 61 6e 64 73 | 20 63 61 75 73 65 20 61 |commands| cause a|
|00001c30| 75 74 6f 6d 61 74 69 63 | 20 74 65 72 6d 69 6e 61 |utomatic| termina|
|00001c40| 74 69 6f 6e 20 6f 66 20 | 61 20 73 63 72 69 70 74 |tion of |a script|
|00001c50| 2e 0a 58 20 20 20 20 54 | 68 65 20 2d 2d 20 66 6c |..X T|he -- fl|
|00001c60| 61 67 20 74 6f 20 74 65 | 72 6d 69 6e 61 74 65 20 |ag to te|rminate |
|00001c70| 6f 70 74 69 6f 6e 20 70 | 72 6f 63 65 73 73 69 6e |option p|rocessin|
|00001c80| 67 20 69 73 20 6e 6f 74 | 20 72 65 63 6f 67 6e 69 |g is not| recogni|
|00001c90| 73 65 64 0a 58 20 20 20 | 20 20 20 20 61 73 20 61 |sed.X | as a|
|00001ca0| 6e 20 61 72 67 75 6d 65 | 6e 74 20 74 6f 20 74 68 |n argume|nt to th|
|00001cb0| 65 20 73 68 65 6c 6c 20 | 28 69 74 20 69 73 20 72 |e shell |(it is r|
|00001cc0| 65 63 6f 67 6e 69 73 65 | 64 20 62 79 20 73 65 74 |ecognise|d by set|
|00001cd0| 29 2e 0a 58 20 20 20 20 | 60 6a 6f 62 73 27 20 68 |)..X |`jobs' h|
|00001ce0| 61 73 20 6e 6f 20 60 2d | 6e 27 20 66 6c 61 67 2e |as no `-|n' flag.|
|00001cf0| 0a 58 20 20 20 20 54 72 | 65 61 74 6d 65 6e 74 20 |.X Tr|eatment |
|00001d00| 6f 66 20 62 61 63 6b 73 | 6c 61 73 68 65 73 20 77 |of backs|lashes w|
|00001d10| 69 74 68 69 6e 20 62 61 | 63 6b 71 75 6f 74 65 73 |ithin ba|ckquotes|
|00001d20| 20 69 73 20 64 69 66 66 | 65 72 65 6e 74 2e 0a 58 | is diff|erent..X|
|00001d30| 20 20 20 20 56 61 72 69 | 61 62 6c 65 20 61 73 73 | Vari|able ass|
|00001d40| 69 67 6e 6d 65 6e 74 73 | 20 77 69 74 68 20 74 69 |ignments| with ti|
|00001d50| 6c 64 65 20 65 78 70 61 | 6e 73 69 6f 6e 73 20 61 |lde expa|nsions a|
|00001d60| 72 65 20 73 70 65 63 69 | 61 6c 2d 63 61 73 65 64 |re speci|al-cased|
|00001d70| 2e 0a 58 20 20 20 20 45 | 64 69 74 69 6e 67 3a 0a |..X E|diting:.|
|00001d80| 58 20 20 20 20 20 20 5c | 20 64 6f 65 73 20 6e 6f |X \| does no|
|00001d90| 74 20 65 73 63 61 70 65 | 20 65 64 69 74 69 6e 67 |t escape| editing|
|00001da0| 20 63 68 61 72 73 20 28 | 75 73 65 20 5e 56 29 2e | chars (|use ^V).|
|00001db0| 0a 58 20 20 20 20 20 20 | 4e 6f 74 20 61 6c 6c 20 |.X |Not all |
|00001dc0| 6b 73 68 20 62 69 6e 64 | 69 6e 67 73 20 61 72 65 |ksh bind|ings are|
|00001dd0| 20 73 65 74 20 28 65 2e | 67 2e 20 60 3c 45 53 43 | set (e.|g. `<ESC|
|00001de0| 3e 23 27 29 2e 0a 58 20 | 20 54 68 65 20 66 6f 6c |>#')..X | The fol|
|00001df0| 6c 6f 77 69 6e 67 20 69 | 73 20 70 61 72 74 69 63 |lowing i|s partic|
|00001e00| 75 6c 61 72 6c 79 20 6e | 65 61 72 20 74 68 65 20 |ularly n|ear the |
|00001e10| 66 65 61 74 75 72 65 2f | 62 75 67 20 62 6f 72 64 |feature/|bug bord|
|00001e20| 65 72 6c 69 6e 65 3a 0a | 58 20 20 20 20 54 6f 20 |erline:.|X To |
|00001e30| 74 75 72 6e 20 6f 66 66 | 20 73 69 67 6e 61 6c 20 |turn off| signal |
|00001e40| 74 72 61 70 73 2c 20 75 | 73 65 20 60 74 72 61 70 |traps, u|se `trap|
|00001e50| 20 2d 20 3c 73 69 67 6e | 6f 3e 27 2c 20 6e 6f 74 | - <sign|o>', not|
|00001e60| 20 60 74 72 61 70 20 3c | 73 69 67 6e 6f 3e 27 2e | `trap <|signo>'.|
|00001e70| 0a 58 20 20 20 20 22 24 | 40 22 20 61 6c 77 61 79 |.X "$|@" alway|
|00001e80| 73 20 69 6e 64 69 63 61 | 74 65 73 20 61 74 20 6c |s indica|tes at l|
|00001e90| 65 61 73 74 20 6f 6e 65 | 20 61 72 67 75 6d 65 6e |east one| argumen|
|00001ea0| 74 20 28 6f 6c 64 65 72 | 20 73 68 27 73 20 64 6f |t (older| sh's do|
|00001eb0| 20 74 68 69 73 20 74 6f | 6f 29 2e 0a 58 0a 58 20 | this to|o)..X.X |
|00001ec0| 20 69 69 29 20 63 73 68 | 3a 0a 58 0a 58 20 20 41 | ii) csh|:.X.X A|
|00001ed0| 6c 74 68 6f 75 67 68 20 | 63 65 72 74 61 69 6e 20 |lthough |certain |
|00001ee0| 66 65 61 74 75 72 65 73 | 20 61 69 6d 20 74 6f 20 |features| aim to |
|00001ef0| 65 61 73 65 20 74 68 65 | 20 77 69 74 68 64 72 61 |ease the| withdra|
|00001f00| 77 61 6c 20 73 79 6d 70 | 74 6f 6d 73 20 6f 66 20 |wal symp|toms of |
|00001f10| 43 73 68 0a 58 20 20 28 | 61 62 29 75 73 65 72 73 |Csh.X (|ab)users|
|00001f20| 2c 20 74 68 65 20 73 79 | 6e 74 61 78 20 69 73 20 |, the sy|ntax is |
|00001f30| 69 6e 20 67 65 6e 65 72 | 61 6c 20 72 61 74 68 65 |in gener|al rathe|
|00001f40| 72 20 64 69 66 66 65 72 | 65 6e 74 20 61 6e 64 20 |r differ|ent and |
|00001f50| 79 6f 75 20 73 68 6f 75 | 6c 64 0a 58 20 20 63 65 |you shou|ld.X ce|
|00001f60| 72 74 61 69 6e 6c 79 20 | 6e 6f 74 20 74 72 79 20 |rtainly |not try |
|00001f70| 74 6f 20 72 75 6e 20 73 | 63 72 69 70 74 73 20 77 |to run s|cripts w|
|00001f80| 69 74 68 6f 75 74 20 6d | 6f 64 69 66 69 63 61 74 |ithout m|odificat|
|00001f90| 69 6f 6e 2e 20 20 54 68 | 65 20 63 32 7a 20 73 63 |ion. Th|e c2z sc|
|00001fa0| 72 69 70 74 0a 58 20 20 | 69 73 20 70 72 6f 76 69 |ript.X |is provi|
|00001fb0| 64 65 64 20 77 69 74 68 | 20 74 68 65 20 73 6f 75 |ded with| the sou|
|00001fc0| 72 63 65 20 28 69 6e 20 | 73 63 72 69 70 74 73 2f |rce (in |scripts/|
|00001fd0| 63 32 7a 29 20 74 6f 20 | 68 65 6c 70 20 63 6f 6e |c2z) to |help con|
|00001fe0| 76 65 72 74 20 2e 63 73 | 68 72 63 0a 58 20 20 61 |vert .cs|hrc.X a|
|00001ff0| 6e 64 20 2e 6c 6f 67 69 | 6e 20 66 69 6c 65 73 3b |nd .logi|n files;|
|00002000| 20 73 65 65 20 61 6c 73 | 6f 20 74 68 65 20 6e 65 | see als|o the ne|
|00002010| 78 74 20 71 75 65 73 74 | 69 6f 6e 20 63 6f 6e 63 |xt quest|ion conc|
|00002020| 65 72 6e 69 6e 67 20 61 | 6c 69 61 73 65 73 2e 0a |erning a|liases..|
|00002030| 58 0a 58 20 20 43 73 68 | 2d 63 6f 6d 70 61 74 69 |X.X Csh|-compati|
|00002040| 62 69 6c 69 74 79 20 61 | 64 64 69 74 69 6f 6e 73 |bility a|dditions|
|00002050| 20 69 6e 63 6c 75 64 65 | 3a 0a 58 20 20 20 20 4c | include|:.X L|
|00002060| 6f 67 6f 75 74 2c 20 72 | 65 68 61 73 68 2c 20 73 |ogout, r|ehash, s|
|00002070| 6f 75 72 63 65 2c 20 28 | 75 6e 29 6c 69 6d 69 74 |ource, (|un)limit|
|00002080| 20 62 75 69 6c 74 2d 69 | 6e 20 63 6f 6d 6d 61 6e | built-i|n comman|
|00002090| 64 73 2e 0a 58 20 20 20 | 20 2a 72 63 20 66 69 6c |ds..X | *rc fil|
|000020a0| 65 20 66 6f 72 20 69 6e | 74 65 72 61 63 74 69 76 |e for in|teractiv|
|000020b0| 65 20 73 68 65 6c 6c 73 | 2e 0a 58 20 20 20 20 44 |e shells|..X D|
|000020c0| 69 72 65 63 74 6f 72 79 | 20 73 74 61 63 6b 73 2e |irectory| stacks.|
|000020d0| 0a 58 20 20 20 20 43 73 | 68 6a 75 6e 6b 69 65 2a |.X Cs|hjunkie*|
|000020e0| 2c 20 69 67 6e 6f 72 65 | 65 6f 66 20 6f 70 74 69 |, ignore|eof opti|
|000020f0| 6f 6e 73 2e 0a 58 20 20 | 20 20 54 68 65 20 6e 6f |ons..X | The no|
|00002100| 6e 6f 6d 61 74 63 68 20 | 6f 70 74 69 6f 6e 2e 0a |nomatch |option..|
|00002110| 58 20 20 20 20 3e 26 2c | 20 7c 26 20 65 74 63 2e |X >&,| |& etc.|
|00002120| 20 72 65 64 69 72 65 63 | 74 69 6f 6e 2e 0a 58 20 | redirec|tion..X |
|00002130| 20 20 20 66 6f 72 65 61 | 63 68 20 2e 2e 2e 20 6c | forea|ch ... l|
|00002140| 6f 6f 70 73 2e 0a 58 20 | 20 20 20 24 50 52 4f 4d |oops..X | $PROM|
|00002150| 50 54 20 61 73 20 77 65 | 6c 6c 20 61 73 20 24 50 |PT as we|ll as $P|
|00002160| 53 31 2c 20 24 73 74 61 | 74 75 73 20 61 73 20 77 |S1, $sta|tus as w|
|00002170| 65 6c 6c 20 61 73 20 24 | 3f 2c 20 24 23 61 72 67 |ell as $|?, $#arg|
|00002180| 76 20 61 73 20 77 65 6c | 6c 20 61 73 20 24 23 2c |v as wel|l as $#,|
|00002190| 20 2e 2e 2e 2e 0a 58 20 | 20 20 20 45 73 63 61 70 | .....X | Escap|
|000021a0| 65 20 73 65 71 75 65 6e | 63 65 73 20 76 69 61 20 |e sequen|ces via |
|000021b0| 25 20 66 6f 72 20 70 72 | 6f 6d 70 74 73 2e 0a 58 |% for pr|ompts..X|
|000021c0| 20 20 20 20 53 70 65 63 | 69 61 6c 20 61 72 72 61 | Spec|ial arra|
|000021d0| 79 20 76 61 72 69 61 62 | 6c 65 73 20 24 50 41 54 |y variab|les $PAT|
|000021e0| 48 20 65 74 63 2e 20 61 | 72 65 20 63 6f 6c 6f 6e |H etc. a|re colon|
|000021f0| 2d 73 65 70 61 72 61 74 | 65 64 2c 20 24 70 61 74 |-separat|ed, $pat|
|00002200| 68 20 61 72 65 20 61 72 | 72 61 79 73 2e 0a 58 20 |h are ar|rays..X |
|00002210| 20 20 20 21 2d 74 79 70 | 65 20 68 69 73 74 6f 72 | !-typ|e histor|
|00002220| 79 20 28 77 68 69 63 68 | 20 6d 61 79 20 62 65 20 |y (which| may be |
|00002230| 74 75 72 6e 65 64 20 6f | 66 66 29 2e 0a 58 20 20 |turned o|ff)..X |
|00002240| 20 20 41 72 72 61 79 73 | 20 68 61 76 65 20 63 73 | Arrays| have cs|
|00002250| 68 2d 6c 69 6b 65 20 66 | 65 61 74 75 72 65 73 20 |h-like f|eatures |
|00002260| 28 73 65 65 20 69 29 29 | 2e 0a 58 0a 58 20 20 69 |(see i))|..X.X i|
|00002270| 69 69 29 20 74 63 73 68 | 3a 0a 58 0a 58 20 20 43 |ii) tcsh|:.X.X C|
|00002280| 65 72 74 61 69 6e 20 66 | 65 61 74 75 72 65 73 20 |ertain f|eatures |
|00002290| 68 61 76 65 20 62 65 65 | 6e 20 62 6f 72 72 6f 77 |have bee|n borrow|
|000022a0| 65 64 20 66 72 6f 6d 20 | 74 63 73 68 2c 20 69 6e |ed from |tcsh, in|
|000022b0| 63 6c 75 64 69 6e 67 20 | 24 77 61 74 63 68 2c 0a |cluding |$watch,.|
|000022c0| 58 20 20 72 75 6e 2d 68 | 65 6c 70 2c 20 24 73 61 |X run-h|elp, $sa|
|000022d0| 76 65 68 69 73 74 2c 20 | 24 68 69 73 74 6c 69 74 |vehist, |$histlit|
|000022e0| 2c 20 70 65 72 69 6f 64 | 69 63 20 63 6f 6d 6d 61 |, period|ic comma|
|000022f0| 6e 64 73 20 65 74 63 2e | 2c 20 65 78 74 65 6e 64 |nds etc.|, extend|
|00002300| 65 64 0a 58 20 20 70 72 | 6f 6d 70 74 73 2c 20 73 |ed.X pr|ompts, s|
|00002310| 63 68 65 64 20 61 6e 64 | 20 77 68 69 63 68 2f 77 |ched and| which/w|
|00002320| 68 65 72 65 20 62 75 69 | 6c 74 2d 69 6e 73 2e 20 |here bui|lt-ins. |
|00002330| 20 54 68 69 73 20 6c 69 | 73 74 20 69 73 20 6e 6f | This li|st is no|
|00002340| 74 0a 58 20 20 64 65 66 | 69 6e 69 74 69 76 65 3a |t.X def|initive:|
|00002350| 20 73 6f 6d 65 20 66 65 | 61 74 75 72 65 73 20 68 | some fe|atures h|
|00002360| 61 76 65 20 67 6f 6e 65 | 20 69 6e 20 74 68 65 20 |ave gone| in the |
|00002370| 6f 74 68 65 72 20 64 69 | 72 65 63 74 69 6f 6e 2e |other di|rection.|
|00002380| 0a 58 0a 58 20 20 69 76 | 29 20 73 70 65 63 69 66 |.X.X iv|) specif|
|00002390| 69 63 20 66 65 61 74 75 | 72 65 73 3a 0a 58 0a 58 |ic featu|res:.X.X|
|000023a0| 20 20 54 68 69 6e 67 73 | 20 74 68 61 74 20 7a 73 | Things| that zs|
|000023b0| 68 20 69 73 20 70 61 72 | 74 69 63 75 6c 61 72 6c |h is par|ticularl|
|000023c0| 79 20 67 6f 6f 64 20 61 | 74 20 28 6e 6f 20 63 6c |y good a|t (no cl|
|000023d0| 61 69 6d 20 6f 66 20 65 | 78 63 6c 75 73 69 76 69 |aim of e|xclusivi|
|000023e0| 74 79 20 69 73 20 6d 61 | 64 65 2c 0a 58 20 20 65 |ty is ma|de,.X e|
|000023f0| 73 70 65 63 69 61 6c 6c | 79 20 61 73 20 73 68 65 |speciall|y as she|
|00002400| 6c 6c 73 20 63 6f 70 79 | 20 6f 6e 65 20 61 6e 6f |lls copy| one ano|
|00002410| 74 68 65 72 29 20 69 6e | 63 6c 75 64 65 3a 0a 58 |ther) in|clude:.X|
|00002420| 20 20 20 20 43 6f 6d 6d | 61 6e 64 20 6c 69 6e 65 | Comm|and line|
|00002430| 20 65 64 69 74 69 6e 67 | 3a 0a 58 20 20 20 20 20 | editing|:.X |
|00002440| 20 6d 75 6c 74 69 2d 6c | 69 6e 65 20 63 6f 6d 6d | multi-l|ine comm|
|00002450| 61 6e 64 73 2c 0a 58 20 | 20 20 20 20 20 76 61 72 |ands,.X | var|
|00002460| 69 61 62 6c 65 20 65 64 | 69 74 69 6e 67 2c 0a 58 |iable ed|iting,.X|
|00002470| 20 20 20 20 20 20 63 6f | 6d 6d 61 6e 64 20 62 75 | co|mmand bu|
|00002480| 66 66 65 72 20 73 74 61 | 63 6b 2c 0a 58 20 20 20 |ffer sta|ck,.X |
|00002490| 20 20 20 65 78 65 63 75 | 74 69 6f 6e 20 6f 66 20 | execu|tion of |
|000024a0| 75 6e 62 6f 75 6e 64 20 | 63 6f 6d 6d 61 6e 64 73 |unbound |commands|
|000024b0| 2c 0a 58 20 20 20 20 20 | 20 6d 65 6e 75 20 63 6f |,.X | menu co|
|000024c0| 6d 70 6c 65 74 69 6f 6e | 2c 0a 58 20 20 20 20 20 |mpletion|,.X |
|000024d0| 20 76 61 72 69 61 62 6c | 65 2c 20 68 6f 73 74 2c | variabl|e, host,|
|000024e0| 20 65 64 69 74 69 6e 67 | 20 66 75 6e 63 74 69 6f | editing| functio|
|000024f0| 6e 20 61 6e 64 20 6f 70 | 74 69 6f 6e 20 6e 61 6d |n and op|tion nam|
|00002500| 65 20 63 6f 6d 70 6c 65 | 74 69 6f 6e 2c 0a 58 20 |e comple|tion,.X |
|00002510| 20 20 20 20 20 69 6e 6c | 69 6e 65 20 65 78 70 61 | inl|ine expa|
|00002520| 6e 73 69 6f 6e 20 6f 66 | 20 76 61 72 69 61 62 6c |nsion of| variabl|
|00002530| 65 73 2c 20 68 69 73 74 | 6f 72 79 20 63 6f 6d 6d |es, hist|ory comm|
|00002540| 61 6e 64 73 2c 0a 58 20 | 20 20 20 20 20 70 61 74 |ands,.X | pat|
|00002550| 68 20 65 78 70 61 6e 73 | 69 6f 6e 20 28 3d 66 6f |h expans|ion (=fo|
|00002560| 6f 29 2e 0a 58 20 20 20 | 20 47 6c 6f 62 62 69 6e |o)..X | Globbin|
|00002570| 67 3a 0a 58 20 20 20 20 | 20 20 72 65 63 75 72 73 |g:.X | recurs|
|00002580| 69 76 65 20 67 6c 6f 62 | 62 69 6e 67 20 28 63 2e |ive glob|bing (c.|
|00002590| 66 20 66 69 6e 64 29 2c | 0a 58 20 20 20 20 20 20 |f find),|.X |
|000025a0| 66 69 6c 65 20 61 74 74 | 72 69 62 75 74 65 20 71 |file att|ribute q|
|000025b0| 75 61 6c 69 66 69 65 72 | 73 2c 0a 58 20 20 20 20 |ualifier|s,.X |
|000025c0| 20 20 66 75 6c 6c 20 61 | 6c 74 65 72 6e 61 74 69 | full a|lternati|
|000025d0| 6f 6e 20 61 6e 64 20 6e | 65 67 61 74 69 6f 6e 20 |on and n|egation |
|000025e0| 6f 66 20 70 61 74 74 65 | 72 6e 73 2e 0a 58 20 20 |of patte|rns..X |
|000025f0| 20 20 4c 61 72 67 65 20 | 6e 75 6d 62 65 72 20 6f | Large |number o|
|00002600| 66 20 6f 70 74 69 6f 6e | 73 20 66 6f 72 20 74 61 |f option|s for ta|
|00002610| 69 6c 6f 72 69 6e 67 2e | 0a 58 20 20 20 20 41 64 |iloring.|.X Ad|
|00002620| 61 70 74 61 62 6c 65 20 | 6d 65 73 73 61 67 65 73 |aptable |messages|
|00002630| 20 66 6f 72 20 73 70 65 | 6c 6c 69 6e 67 2c 20 77 | for spe|lling, w|
|00002640| 61 74 63 68 2c 20 74 69 | 6d 65 20 61 73 20 77 65 |atch, ti|me as we|
|00002650| 6c 6c 20 61 73 20 70 72 | 6f 6d 70 74 2e 0a 58 20 |ll as pr|ompt..X |
|00002660| 20 20 20 4e 61 6d 65 64 | 20 64 69 72 65 63 74 6f | Named| directo|
|00002670| 72 69 65 73 2e 0a 58 20 | 20 20 20 43 6f 6d 70 72 |ries..X | Compr|
|00002680| 65 68 65 6e 73 69 76 65 | 20 69 6e 74 65 67 65 72 |ehensive| integer|
|00002690| 20 61 72 69 74 68 6d 65 | 74 69 63 2e 0a 58 20 20 | arithme|tic..X |
|000026a0| 20 20 4d 61 6e 69 70 75 | 6c 61 74 69 6f 6e 20 6f | Manipu|lation o|
|000026b0| 66 20 61 72 72 61 79 73 | 2e 0a 58 20 20 20 20 53 |f arrays|..X S|
|000026c0| 70 65 6c 6c 69 6e 67 20 | 63 6f 72 72 65 63 74 69 |pelling |correcti|
|000026d0| 6f 6e 2e 0a 58 0a 58 0a | 58 36 29 20 57 68 79 20 |on..X.X.|X6) Why |
|000026e0| 64 6f 20 6d 79 20 63 73 | 68 20 61 6c 69 61 73 65 |do my cs|h aliase|
|000026f0| 73 20 6e 6f 74 20 77 6f | 72 6b 3f 0a 58 0a 58 20 |s not wo|rk?.X.X |
|00002700| 20 46 69 72 73 74 20 6f | 66 20 61 6c 6c 2c 20 63 | First o|f all, c|
|00002710| 68 65 63 6b 20 79 6f 75 | 20 61 72 65 20 75 73 69 |heck you| are usi|
|00002720| 6e 67 20 74 68 65 20 73 | 79 6e 74 61 78 0a 58 09 |ng the s|yntax.X.|
|00002730| 61 6c 69 61 73 20 6e 65 | 77 63 6d 64 3d 27 6c 69 |alias ne|wcmd='li|
|00002740| 73 74 20 6f 66 20 63 6f | 6d 6d 61 6e 64 73 27 0a |st of co|mmands'.|
|00002750| 58 20 20 61 6e 64 20 6e | 6f 74 0a 58 09 61 6c 69 |X and n|ot.X.ali|
|00002760| 61 73 20 6e 65 77 63 6d | 64 20 27 6c 69 73 74 20 |as newcm|d 'list |
|00002770| 6f 66 20 63 6f 6d 6d 61 | 6e 64 73 27 0a 58 20 20 |of comma|nds'.X |
|00002780| 77 68 69 63 68 20 77 6f | 6e 27 74 20 77 6f 72 6b |which wo|n't work|
|00002790| 2e 20 28 49 74 20 74 65 | 6c 6c 73 20 79 6f 75 20 |. (It te|lls you |
|000027a0| 69 66 20 60 6e 65 77 63 | 6d 64 27 20 61 6e 64 20 |if `newc|md' and |
|000027b0| 60 6c 69 73 74 20 6f 66 | 20 63 6f 6d 6d 61 6e 64 |`list of| command|
|000027c0| 73 27 20 61 72 65 0a 58 | 20 20 61 6c 72 65 61 64 |s' are.X| alread|
|000027d0| 79 20 64 65 66 69 6e 65 | 64 20 61 73 20 61 6c 69 |y define|d as ali|
|000027e0| 61 73 65 73 2e 29 0a 58 | 0a 58 20 20 4f 74 68 65 |ases.).X|.X Othe|
|000027f0| 72 77 69 73 65 2c 20 79 | 6f 75 72 20 61 6c 69 61 |rwise, y|our alia|
|00002800| 73 65 73 20 70 72 6f 62 | 61 62 6c 79 20 63 6f 6e |ses prob|ably con|
|00002810| 74 61 69 6e 20 72 65 66 | 65 72 65 6e 63 65 73 20 |tain ref|erences |
|00002820| 74 6f 20 74 68 65 20 63 | 6f 6d 6d 61 6e 64 0a 58 |to the c|ommand.X|
|00002830| 20 20 6c 69 6e 65 20 6f | 66 20 74 68 65 20 66 6f | line o|f the fo|
|00002840| 72 6d 20 60 5c 21 2a 27 | 2c 20 65 74 63 2e 20 20 |rm `\!*'|, etc. |
|00002850| 5a 73 68 20 64 6f 65 73 | 20 6e 6f 74 20 68 61 6e |Zsh does| not han|
|00002860| 64 6c 65 20 74 68 69 73 | 20 62 65 68 61 76 69 6f |dle this| behavio|
|00002870| 75 72 20 61 73 20 69 74 | 0a 58 20 20 68 61 73 20 |ur as it|.X has |
|00002880| 73 68 65 6c 6c 20 66 75 | 6e 63 74 69 6f 6e 73 20 |shell fu|nctions |
|00002890| 77 68 69 63 68 20 70 72 | 6f 76 69 64 65 20 61 20 |which pr|ovide a |
|000028a0| 77 61 79 20 6f 66 20 73 | 6f 6c 76 69 6e 67 20 74 |way of s|olving t|
|000028b0| 68 69 73 20 70 72 6f 62 | 6c 65 6d 20 6d 6f 72 65 |his prob|lem more|
|000028c0| 0a 58 20 20 63 6f 6e 73 | 69 73 74 65 6e 74 20 77 |.X cons|istent w|
|000028d0| 69 74 68 20 6f 74 68 65 | 72 20 66 6f 72 6d 73 20 |ith othe|r forms |
|000028e0| 6f 66 20 61 72 67 75 6d | 65 6e 74 20 68 61 6e 64 |of argum|ent hand|
|000028f0| 6c 69 6e 67 2e 20 20 46 | 6f 72 20 65 78 61 6d 70 |ling. F|or examp|
|00002900| 6c 65 2c 20 74 68 65 0a | 58 20 20 63 73 68 20 61 |le, the.|X csh a|
|00002910| 6c 69 61 73 0a 58 09 61 | 6c 69 61 73 20 63 64 20 |lias.X.a|lias cd |
|00002920| 27 63 64 20 5c 21 2a 3b | 20 65 63 68 6f 20 24 63 |'cd \!*;| echo $c|
|00002930| 77 64 27 0a 58 20 20 63 | 61 6e 20 62 65 20 72 65 |wd'.X c|an be re|
|00002940| 70 6c 61 63 65 64 20 62 | 79 20 74 68 65 20 7a 73 |placed b|y the zs|
|00002950| 68 20 66 75 6e 63 74 69 | 6f 6e 2c 0a 58 09 63 64 |h functi|on,.X.cd|
|00002960| 28 29 20 7b 20 62 75 69 | 6c 74 69 6e 20 63 64 20 |() { bui|ltin cd |
|00002970| 24 2a 3b 20 65 63 68 6f | 20 24 50 57 44 3b 20 7d |$*; echo| $PWD; }|
|00002980| 0a 58 20 20 28 74 68 65 | 20 60 62 75 69 6c 74 69 |.X (the| `builti|
|00002990| 6e 27 20 74 65 6c 6c 73 | 20 7a 73 68 20 74 6f 20 |n' tells| zsh to |
|000029a0| 75 73 65 20 69 74 73 20 | 6f 77 6e 20 60 63 64 27 |use its |own `cd'|
|000029b0| 2c 20 61 76 6f 69 64 69 | 6e 67 20 61 6e 20 69 6e |, avoidi|ng an in|
|000029c0| 66 69 6e 69 74 65 20 6c | 6f 6f 70 29 0a 58 20 20 |finite l|oop).X |
|000029d0| 6f 72 2c 20 70 65 72 68 | 61 70 73 20 62 65 74 74 |or, perh|aps bett|
|000029e0| 65 72 2c 0a 58 09 63 64 | 28 29 20 7b 20 62 75 69 |er,.X.cd|() { bui|
|000029f0| 6c 74 69 6e 20 63 64 20 | 24 2a 3b 20 70 72 69 6e |ltin cd |$*; prin|
|00002a00| 74 20 2d 44 20 24 50 57 | 44 3b 20 7d 0a 58 20 20 |t -D $PW|D; }.X |
|00002a10| 28 77 68 69 63 68 20 63 | 6f 6e 76 65 72 74 73 20 |(which c|onverts |
|00002a20| 79 6f 75 72 20 68 6f 6d | 65 20 64 69 72 65 63 74 |your hom|e direct|
|00002a30| 6f 72 79 20 74 6f 20 61 | 20 7e 29 2e 20 20 49 6e |ory to a| ~). In|
|00002a40| 20 66 61 63 74 2c 20 74 | 68 69 73 20 70 72 6f 62 | fact, t|his prob|
|00002a50| 6c 65 6d 20 69 73 0a 58 | 20 20 62 65 74 74 65 72 |lem is.X| better|
|00002a60| 20 73 6f 6c 76 65 64 20 | 62 79 20 64 65 66 69 6e | solved |by defin|
|00002a70| 69 6e 67 20 74 68 65 20 | 73 70 65 63 69 61 6c 20 |ing the |special |
|00002a80| 66 75 6e 63 74 69 6f 6e | 20 63 68 70 77 64 28 29 |function| chpwd()|
|00002a90| 20 28 73 65 65 20 74 68 | 65 20 6d 61 6e 75 61 6c | (see th|e manual|
|00002aa0| 29 2e 0a 58 0a 58 20 20 | 4e 6f 74 65 20 61 6c 73 |)..X.X |Note als|
|00002ab0| 6f 20 74 68 61 74 20 74 | 68 65 20 60 3b 27 20 61 |o that t|he `;' a|
|00002ac0| 74 20 74 68 65 20 65 6e | 64 20 6f 66 20 74 68 65 |t the en|d of the|
|00002ad0| 20 66 75 6e 63 74 69 6f | 6e 20 69 73 20 6f 70 74 | functio|n is opt|
|00002ae0| 69 6f 6e 61 6c 20 69 6e | 20 7a 73 68 2c 0a 58 20 |ional in| zsh,.X |
|00002af0| 20 62 75 74 20 6e 6f 74 | 20 69 6e 20 6b 73 68 20 | but not| in ksh |
|00002b00| 6f 72 20 73 68 20 28 66 | 6f 72 20 73 68 27 73 20 |or sh (f|or sh's |
|00002b10| 77 68 65 72 65 20 69 74 | 20 65 78 69 73 74 73 29 |where it| exists)|
|00002b20| 2e 0a 58 0a 58 20 20 48 | 65 72 65 20 69 73 20 42 |..X.X H|ere is B|
|00002b30| 61 72 74 20 53 63 68 61 | 65 66 65 72 27 73 20 67 |art Scha|efer's g|
|00002b40| 75 69 64 65 20 74 6f 20 | 63 6f 6e 76 65 72 74 69 |uide to |converti|
|00002b50| 6e 67 20 63 73 68 20 61 | 6c 69 61 73 65 73 20 66 |ng csh a|liases f|
|00002b60| 6f 72 20 7a 73 68 2e 0a | 58 0a 58 20 20 20 20 31 |or zsh..|X.X 1|
|00002b70| 2e 20 20 49 66 20 74 68 | 65 20 63 73 68 20 61 6c |. If th|e csh al|
|00002b80| 69 61 73 20 72 65 66 65 | 72 65 6e 63 65 73 20 22 |ias refe|rences "|
|00002b90| 70 61 72 61 6d 65 74 65 | 72 73 22 20 28 5c 21 3a |paramete|rs" (\!:|
|00002ba0| 31 20 5c 21 2a 20 65 74 | 63 2e 29 2c 0a 58 20 20 |1 \!* et|c.),.X |
|00002bb0| 20 20 20 20 20 20 74 68 | 65 6e 20 69 6e 20 7a 73 | th|en in zs|
|00002bc0| 68 20 79 6f 75 20 6e 65 | 65 64 20 61 20 66 75 6e |h you ne|ed a fun|
|00002bd0| 63 74 69 6f 6e 20 28 72 | 65 66 65 72 65 6e 63 69 |ction (r|eferenci|
|00002be0| 6e 67 20 24 31 20 24 2a | 20 65 74 63 2e 29 2e 0a |ng $1 $*| etc.)..|
|00002bf0| 58 20 20 20 20 20 20 20 | 20 4f 74 68 65 72 77 69 |X | Otherwi|
|00002c00| 73 65 2c 20 79 6f 75 20 | 63 61 6e 20 75 73 65 20 |se, you |can use |
|00002c10| 61 20 7a 73 68 20 61 6c | 69 61 73 2e 0a 58 0a 58 |a zsh al|ias..X.X|
|00002c20| 20 20 20 20 32 2e 20 20 | 49 66 20 79 6f 75 20 75 | 2. |If you u|
|00002c30| 73 65 20 61 20 7a 73 68 | 20 66 75 6e 63 74 69 6f |se a zsh| functio|
|00002c40| 6e 2c 20 79 6f 75 20 6e | 65 65 64 20 74 6f 20 72 |n, you n|eed to r|
|00002c50| 65 66 65 72 20 5f 61 74 | 5f 6c 65 61 73 74 5f 20 |efer _at|_least_ |
|00002c60| 74 6f 0a 58 20 20 20 20 | 20 20 20 20 24 2a 20 69 |to.X | $* i|
|00002c70| 6e 20 74 68 65 20 62 6f | 64 79 20 28 69 6e 73 69 |n the bo|dy (insi|
|00002c80| 64 65 20 74 68 65 20 7b | 20 7d 29 2e 20 20 50 61 |de the {| }). Pa|
|00002c90| 72 61 6d 65 74 65 72 73 | 20 64 6f 6e 27 74 20 6d |rameters| don't m|
|00002ca0| 61 67 69 63 61 6c 6c 79 | 0a 58 20 20 20 20 20 20 |agically|.X |
|00002cb0| 20 20 61 70 70 65 61 72 | 20 69 6e 73 69 64 65 20 | appear| inside |
|00002cc0| 74 68 65 20 7b 20 7d 20 | 74 68 65 20 77 61 79 20 |the { } |the way |
|00002cd0| 74 68 65 79 20 67 65 74 | 20 61 70 70 65 6e 64 65 |they get| appende|
|00002ce0| 64 20 74 6f 20 61 6e 20 | 61 6c 69 61 73 2e 0a 58 |d to an |alias..X|
|00002cf0| 20 20 20 20 0a 58 20 20 | 20 20 33 2e 20 20 49 66 | .X | 3. If|
|00002d00| 20 74 68 65 20 63 73 68 | 20 61 6c 69 61 73 20 72 | the csh| alias r|
|00002d10| 65 66 65 72 65 6e 63 65 | 73 20 69 74 73 20 6f 77 |eference|s its ow|
|00002d20| 6e 20 6e 61 6d 65 20 28 | 61 6c 69 61 73 20 72 6d |n name (|alias rm|
|00002d30| 20 22 72 6d 20 2d 69 22 | 29 2c 0a 58 20 20 20 20 | "rm -i"|),.X |
|00002d40| 20 20 20 20 74 68 65 6e | 20 69 6e 20 61 20 7a 73 | then| in a zs|
|00002d50| 68 20 66 75 6e 63 74 69 | 6f 6e 20 79 6f 75 20 6e |h functi|on you n|
|00002d60| 65 65 64 20 74 68 65 20 | 22 63 6f 6d 6d 61 6e 64 |eed the |"command|
|00002d70| 22 20 6b 65 79 77 6f 72 | 64 0a 58 20 20 20 20 20 |" keywor|d.X |
|00002d80| 20 20 20 28 66 75 6e 63 | 74 69 6f 6e 20 72 6d 28 | (func|tion rm(|
|00002d90| 29 20 7b 20 63 6f 6d 6d | 61 6e 64 20 72 6d 20 2d |) { comm|and rm -|
|00002da0| 69 20 24 2a 20 7d 29 2c | 20 62 75 74 20 69 6e 20 |i $* }),| but in |
|00002db0| 61 20 7a 73 68 20 61 6c | 69 61 73 0a 58 20 20 20 |a zsh al|ias.X |
|00002dc0| 20 20 20 20 20 79 6f 75 | 20 64 6f 6e 27 74 20 28 | you| don't (|
|00002dd0| 61 6c 69 61 73 20 72 6d | 3d 22 72 6d 20 2d 69 22 |alias rm|="rm -i"|
|00002de0| 29 2e 0a 58 0a 58 20 20 | 20 20 34 2e 20 20 49 66 |)..X.X | 4. If|
|00002df0| 20 79 6f 75 20 68 61 76 | 65 20 61 6c 69 61 73 65 | you hav|e aliase|
|00002e00| 73 20 74 68 61 74 20 72 | 65 66 65 72 20 74 6f 20 |s that r|efer to |
|00002e10| 65 61 63 68 20 6f 74 68 | 65 72 20 28 61 6c 69 61 |each oth|er (alia|
|00002e20| 73 20 6c 73 20 22 6c 73 | 20 2d 43 22 3b 0a 58 20 |s ls "ls| -C";.X |
|00002e30| 20 20 20 20 20 20 20 61 | 6c 69 61 73 20 6c 66 20 | a|lias lf |
|00002e40| 22 6c 73 20 2d 46 22 20 | 3d 3d 3e 20 6c 66 20 3d |"ls -F" |==> lf =|
|00002e50| 3d 20 6c 73 20 2d 43 20 | 2d 46 29 20 74 68 65 6e |= ls -C |-F) then|
|00002e60| 20 79 6f 75 20 6d 75 73 | 74 20 65 69 74 68 65 72 | you mus|t either|
|00002e70| 3a 0a 58 20 20 20 20 20 | 20 20 20 61 2e 20 20 63 |:.X | a. c|
|00002e80| 6f 6e 76 65 72 74 20 61 | 6c 6c 20 6f 66 20 74 68 |onvert a|ll of th|
|00002e90| 65 6d 20 74 6f 20 7a 73 | 68 20 66 75 6e 63 74 69 |em to zs|h functi|
|00002ea0| 6f 6e 73 3b 20 6f 72 0a | 58 20 20 20 20 20 20 20 |ons; or.|X |
|00002eb0| 20 62 2e 20 20 61 66 74 | 65 72 20 63 6f 6e 76 65 | b. aft|er conve|
|00002ec0| 72 74 69 6e 67 2c 20 62 | 65 20 73 75 72 65 20 79 |rting, b|e sure y|
|00002ed0| 6f 75 72 20 2e 7a 73 68 | 72 63 20 64 65 66 69 6e |our .zsh|rc defin|
|00002ee0| 65 73 20 61 6c 6c 20 6f | 66 20 79 6f 75 72 0a 58 |es all o|f your.X|
|00002ef0| 20 20 20 20 20 20 20 20 | 20 20 20 20 61 6c 69 61 | | alia|
|00002f00| 73 65 73 20 62 65 66 6f | 72 65 20 69 74 20 64 65 |ses befo|re it de|
|00002f10| 66 69 6e 65 73 20 61 6e | 79 20 6f 66 20 79 6f 75 |fines an|y of you|
|00002f20| 72 20 66 75 6e 63 74 69 | 6f 6e 73 2e 0a 58 0a 58 |r functi|ons..X.X|
|00002f30| 20 20 20 20 54 68 6f 73 | 65 20 66 69 72 73 74 20 | Thos|e first |
|00002f40| 66 6f 75 72 20 61 72 65 | 20 61 6c 6c 20 79 6f 75 |four are| all you|
|00002f50| 20 72 65 61 6c 6c 79 20 | 6e 65 65 64 2c 20 62 75 | really |need, bu|
|00002f60| 74 20 68 65 72 65 20 61 | 72 65 20 66 6f 75 72 20 |t here a|re four |
|00002f70| 6d 6f 72 65 20 66 6f 72 | 0a 58 20 20 20 20 68 65 |more for|.X he|
|00002f80| 61 76 79 20 63 73 68 20 | 61 6c 69 61 73 20 6a 75 |avy csh |alias ju|
|00002f90| 6e 6b 69 65 73 3a 0a 58 | 0a 58 20 20 20 20 35 2e |nkies:.X|.X 5.|
|00002fa0| 20 20 4d 61 70 70 69 6e | 67 20 66 72 6f 6d 20 63 | Mappin|g from c|
|00002fb0| 73 68 20 61 6c 69 61 73 | 20 22 70 61 72 61 6d 65 |sh alias| "parame|
|00002fc0| 74 65 72 20 72 65 66 65 | 72 65 6e 63 69 6e 67 22 |ter refe|rencing"|
|00002fd0| 20 69 6e 74 6f 20 7a 73 | 68 20 66 75 6e 63 74 69 | into zs|h functi|
|00002fe0| 6f 6e 0a 58 20 20 20 20 | 20 20 20 20 28 61 73 73 |on.X | (ass|
|00002ff0| 75 6d 69 6e 67 20 73 68 | 77 6f 72 64 73 70 6c 69 |uming sh|wordspli|
|00003000| 74 20 69 73 20 4e 4f 54 | 20 73 65 74 20 69 6e 20 |t is NOT| set in |
|00003010| 7a 73 68 29 3a 0a 58 20 | 20 20 20 20 20 20 20 20 |zsh):.X | |
|00003020| 20 20 20 20 63 73 68 20 | 20 20 20 20 20 20 20 20 | csh | |
|00003030| 20 20 20 20 20 20 20 20 | 20 20 7a 73 68 0a 58 20 | | zsh.X |
|00003040| 20 20 20 20 20 20 20 20 | 20 20 20 3d 3d 3d 3d 3d | | =====|
|00003050| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 3d | | =|
|00003060| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 0a 58 20 20 20 20 20 |========|=.X |
|00003070| 20 20 20 20 20 20 20 5c | 21 2a 20 20 20 20 20 20 | \|!* |
|00003080| 20 20 20 20 20 20 20 20 | 20 20 20 24 2a 20 20 20 | | $* |
|00003090| 20 20 20 20 20 20 20 20 | 20 20 20 28 6f 72 20 24 | | (or $|
|000030a0| 61 72 67 76 29 0a 58 20 | 20 20 20 20 20 20 20 20 |argv).X | |
|000030b0| 20 20 20 5c 21 5e 20 20 | 20 20 20 20 20 20 20 20 | \!^ | |
|000030c0| 20 20 20 20 20 20 20 24 | 31 20 20 20 20 20 20 20 | $|1 |
|000030d0| 20 20 20 20 20 20 20 28 | 6f 72 20 24 61 72 67 76 | (|or $argv|
|000030e0| 5b 31 5d 29 0a 58 20 20 | 20 20 20 20 20 20 20 20 |[1]).X | |
|000030f0| 20 20 5c 21 3a 31 20 20 | 20 20 20 20 20 20 20 20 | \!:1 | |
|00003100| 20 20 20 20 20 20 24 31 | 0a 58 20 20 20 20 20 20 | $1|.X |
|00003110| 20 20 20 20 20 20 5c 21 | 3a 32 20 20 20 20 20 20 | \!|:2 |
|00003120| 20 20 20 20 20 20 20 20 | 20 20 24 32 20 20 20 20 | | $2 |
|00003130| 20 20 20 20 20 20 20 20 | 20 20 28 6f 72 20 24 61 | | (or $a|
|00003140| 72 67 76 5b 32 5d 2c 20 | 65 74 63 2e 29 0a 58 20 |rgv[2], |etc.).X |
|00003150| 20 20 20 20 20 20 20 20 | 20 20 20 5c 21 24 20 20 | | \!$ |
|00003160| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 24 | | $|
|00003170| 2a 5b 24 23 5d 20 20 20 | 20 20 20 20 20 20 20 28 |*[$#] | (|
|00003180| 6f 72 20 24 61 72 67 76 | 5b 24 23 5d 2c 20 6f 72 |or $argv|[$#], or|
|00003190| 20 24 2a 5b 2d 31 5d 29 | 0a 58 20 20 20 20 20 20 | $*[-1])|.X |
|000031a0| 20 20 20 20 20 20 5c 21 | 3a 31 2d 34 20 20 20 20 | \!|:1-4 |
|000031b0| 20 20 20 20 20 20 20 20 | 20 20 24 2a 5b 31 2c 34 | | $*[1,4|
|000031c0| 5d 0a 58 20 20 20 20 20 | 20 20 20 20 20 20 20 5c |].X | \|
|000031d0| 21 3a 31 2d 20 20 20 20 | 20 20 20 20 20 20 20 20 |!:1- | |
|000031e0| 20 20 20 24 2a 5b 31 2c | 24 23 2d 31 5d 20 20 20 | $*[1,|$#-1] |
|000031f0| 20 20 20 28 6f 72 20 24 | 2a 5b 31 2c 2d 32 5d 29 | (or $|*[1,-2])|
|00003200| 0a 58 20 20 20 20 20 20 | 20 20 20 20 20 20 5c 21 |.X | \!|
|00003210| 5e 2d 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |^- | |
|00003220| 20 20 24 2a 5b 31 2c 24 | 23 2d 31 5d 0a 58 20 20 | $*[1,$|#-1].X |
|00003230| 20 20 20 20 20 20 20 20 | 20 20 5c 21 2a 3a 71 20 | | \!*:q |
|00003240| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 22 24 | | "$|
|00003250| 40 22 20 20 20 20 20 20 | 20 20 20 20 20 20 28 24 |@" | ($|
|00003260| 2a 3a 71 20 64 6f 65 73 | 6e 27 74 20 77 6f 72 6b |*:q does|n't work|
|00003270| 20 28 79 65 74 29 29 0a | 58 20 20 20 20 20 20 20 | (yet)).|X |
|00003280| 20 20 20 20 20 5c 21 2a | 3a 78 20 20 20 20 20 20 | \!*|:x |
|00003290| 20 20 20 20 20 20 20 20 | 20 24 3d 2a 20 20 20 20 | | $=* |
|000032a0| 20 20 20 20 20 20 20 20 | 20 28 24 2a 3a 78 20 64 | | ($*:x d|
|000032b0| 6f 65 73 6e 27 74 20 77 | 6f 72 6b 20 28 79 65 74 |oesn't w|ork (yet|
|000032c0| 29 29 0a 58 0a 58 20 20 | 20 20 36 2e 20 20 52 65 |)).X.X | 6. Re|
|000032d0| 6d 65 6d 62 65 72 20 74 | 68 61 74 20 69 74 20 69 |member t|hat it i|
|000032e0| 73 20 4e 4f 54 20 61 20 | 73 79 6e 74 61 78 20 65 |s NOT a |syntax e|
|000032f0| 72 72 6f 72 20 69 6e 20 | 61 20 7a 73 68 20 66 75 |rror in |a zsh fu|
|00003300| 6e 63 74 69 6f 6e 20 74 | 6f 0a 58 20 20 20 20 20 |nction t|o.X |
|00003310| 20 20 20 72 65 66 65 72 | 20 74 6f 20 61 20 70 6f | refer| to a po|
|00003320| 73 69 74 69 6f 6e 20 28 | 24 31 2c 20 24 32 2c 20 |sition (|$1, $2, |
|00003330| 65 74 63 2e 29 20 67 72 | 65 61 74 65 72 20 74 68 |etc.) gr|eater th|
|00003340| 61 6e 20 74 68 65 20 6e | 75 6d 62 65 72 20 6f 66 |an the n|umber of|
|00003350| 0a 58 20 20 20 20 20 20 | 20 20 70 61 72 61 6d 65 |.X | parame|
|00003360| 74 65 72 73 2e 20 28 45 | 2e 67 2e 2c 20 69 6e 20 |ters. (E|.g., in |
|00003370| 61 20 63 73 68 20 61 6c | 69 61 73 2c 20 61 20 72 |a csh al|ias, a r|
|00003380| 65 66 65 72 65 6e 63 65 | 20 74 6f 20 5c 21 3a 35 |eference| to \!:5|
|00003390| 20 77 69 6c 6c 0a 58 20 | 20 20 20 20 20 20 20 63 | will.X | c|
|000033a0| 61 75 73 65 20 61 6e 20 | 65 72 72 6f 72 20 69 66 |ause an |error if|
|000033b0| 20 34 20 6f 72 20 66 65 | 77 65 72 20 61 72 67 75 | 4 or fe|wer argu|
|000033c0| 6d 65 6e 74 73 20 61 72 | 65 20 67 69 76 65 6e 3b |ments ar|e given;|
|000033d0| 20 69 6e 20 61 20 7a 73 | 68 0a 58 09 66 75 6e 63 | in a zs|h.X.func|
|000033e0| 74 69 6f 6e 2c 20 24 35 | 20 69 73 20 74 68 65 20 |tion, $5| is the |
|000033f0| 65 6d 70 74 79 20 73 74 | 72 69 6e 67 20 69 66 20 |empty st|ring if |
|00003400| 74 68 65 72 65 20 61 72 | 65 20 34 20 6f 72 20 66 |there ar|e 4 or f|
|00003410| 65 77 65 72 0a 58 09 70 | 61 72 61 6d 65 74 65 72 |ewer.X.p|arameter|
|00003420| 73 2e 29 0a 58 0a 58 20 | 20 20 20 37 2e 20 20 54 |s.).X.X | 7. T|
|00003430| 6f 20 62 65 67 69 6e 20 | 61 20 7a 73 68 20 61 6c |o begin |a zsh al|
|00003440| 69 61 73 20 77 69 74 68 | 20 61 20 2d 20 28 64 61 |ias with| a - (da|
|00003450| 73 68 2c 20 68 79 70 68 | 65 6e 29 20 63 68 61 72 |sh, hyph|en) char|
|00003460| 61 63 74 65 72 2c 20 75 | 73 65 0a 58 20 20 20 20 |acter, u|se.X |
|00003470| 20 20 20 20 22 61 6c 69 | 61 73 20 2d 2d 22 3a 0a | "ali|as --":.|
|00003480| 58 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |X | |
|00003490| 20 20 63 73 68 20 20 20 | 20 20 20 20 20 20 20 20 | csh | |
|000034a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000034b0| 20 7a 73 68 0a 58 20 20 | 20 20 20 20 20 20 20 20 | zsh.X | |
|000034c0| 20 20 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d | ======|========|
|000034d0| 3d 20 20 20 20 20 20 20 | 20 20 20 20 20 20 3d 3d |= | ==|
|000034e0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000034f0| 0a 58 20 20 20 20 20 20 | 20 20 20 20 20 20 61 6c |.X | al|
|00003500| 69 61 73 20 2d 20 22 66 | 67 20 25 2d 22 20 20 20 |ias - "f|g %-" |
|00003510| 20 20 20 20 20 20 20 20 | 20 20 61 6c 69 61 73 20 | | alias |
|00003520| 2d 2d 20 2d 3d 22 66 67 | 20 25 2d 22 0a 58 0a 58 |-- -="fg| %-".X.X|
|00003530| 20 20 20 20 38 2e 20 20 | 53 74 61 79 20 61 77 61 | 8. |Stay awa|
|00003540| 79 20 66 72 6f 6d 20 22 | 61 6c 69 61 73 20 2d 67 |y from "|alias -g|
|00003550| 22 20 69 6e 20 7a 73 68 | 20 75 6e 74 69 6c 20 79 |" in zsh| until y|
|00003560| 6f 75 20 52 45 41 4c 4c | 59 20 6b 6e 6f 77 20 77 |ou REALL|Y know w|
|00003570| 68 61 74 0a 58 20 20 20 | 20 20 20 20 20 79 6f 75 |hat.X | you|
|00003580| 27 72 65 20 64 6f 69 6e | 67 2e 0a 58 0a 58 0a 58 |'re doin|g..X.X.X|
|00003590| 37 29 20 48 6f 77 20 64 | 6f 20 49 20 67 65 74 20 |7) How d|o I get |
|000035a0| 74 68 65 20 6d 65 74 61 | 20 6b 65 79 20 74 6f 20 |the meta| key to |
|000035b0| 77 6f 72 6b 20 6f 6e 20 | 6d 79 20 78 74 65 72 6d |work on |my xterm|
|000035c0| 3f 0a 58 0a 58 20 20 41 | 73 20 73 74 61 74 65 64 |?.X.X A|s stated|
|000035d0| 20 69 6e 20 74 68 65 20 | 6d 61 6e 75 61 6c 2c 20 | in the |manual, |
|000035e0| 7a 73 68 20 6e 65 65 64 | 73 20 74 6f 20 62 65 20 |zsh need|s to be |
|000035f0| 74 6f 6c 64 20 61 62 6f | 75 74 20 74 68 65 20 6d |told abo|ut the m|
|00003600| 65 74 61 20 6b 65 79 20 | 62 79 0a 58 20 20 75 73 |eta key |by.X us|
|00003610| 69 6e 67 20 60 62 69 6e | 64 6b 65 79 20 2d 6d 65 |ing `bin|dkey -me|
|00003620| 27 20 6f 72 20 60 62 69 | 6e 64 6b 65 79 20 2d 6d |' or `bi|ndkey -m|
|00003630| 76 27 20 69 6e 20 79 6f | 75 72 20 2e 7a 73 68 72 |v' in yo|ur .zshr|
|00003640| 63 20 6f 72 20 6f 6e 20 | 74 68 65 20 63 6f 6d 6d |c or on |the comm|
|00003650| 61 6e 64 0a 58 20 20 6c | 69 6e 65 2e 20 20 59 6f |and.X l|ine. Yo|
|00003660| 75 20 70 72 6f 62 61 62 | 6c 79 20 61 6c 73 6f 20 |u probab|ly also |
|00003670| 6e 65 65 64 20 74 6f 20 | 74 65 6c 6c 20 74 68 65 |need to |tell the|
|00003680| 20 74 65 72 6d 69 6e 61 | 6c 20 64 72 69 76 65 72 | termina|l driver|
|00003690| 20 74 6f 20 61 6c 6c 6f | 77 20 74 68 65 0a 58 20 | to allo|w the.X |
|000036a0| 20 60 6d 65 74 61 27 20 | 62 69 74 20 6f 66 20 74 | `meta' |bit of t|
|000036b0| 68 65 20 63 68 61 72 61 | 63 74 65 72 20 74 68 72 |he chara|cter thr|
|000036c0| 6f 75 67 68 3b 20 60 73 | 74 74 79 20 70 61 73 73 |ough; `s|tty pass|
|000036d0| 38 27 20 69 73 20 74 68 | 65 20 75 73 75 61 6c 0a |8' is th|e usual.|
|000036e0| 58 20 20 69 6e 63 61 6e | 74 61 74 69 6f 6e 2e 20 |X incan|tation. |
|000036f0| 20 53 61 6d 70 6c 65 20 | 2e 7a 73 68 72 63 20 65 | Sample |.zshrc e|
|00003700| 6e 74 72 79 3a 0a 58 09 | 5b 5b 20 24 54 45 52 4d |ntry:.X.|[[ $TERM|
|00003710| 20 3d 20 22 78 74 65 72 | 6d 22 20 5d 5d 20 26 26 | = "xter|m" ]] &&|
|00003720| 20 73 74 74 79 20 70 61 | 73 73 38 20 26 26 20 62 | stty pa|ss8 && b|
|00003730| 69 6e 64 6b 65 79 20 2d | 6d 65 0a 58 20 20 4d 61 |indkey -|me.X Ma|
|00003740| 6b 65 20 73 75 72 65 20 | 74 68 69 73 20 63 6f 6d |ke sure |this com|
|00003750| 65 73 20 2a 62 65 66 6f | 72 65 2a 20 61 6e 79 20 |es *befo|re* any |
|00003760| 62 69 6e 64 6b 65 79 20 | 65 6e 74 72 69 65 73 20 |bindkey |entries |
|00003770| 69 6e 20 79 6f 75 72 20 | 2e 7a 73 68 72 63 20 77 |in your |.zshrc w|
|00003780| 68 69 63 68 0a 58 20 20 | 72 65 64 65 66 69 6e 65 |hich.X |redefine|
|00003790| 20 6b 65 79 73 20 6e 6f | 72 6d 61 6c 6c 79 20 64 | keys no|rmally d|
|000037a0| 65 66 69 6e 65 64 20 69 | 6e 20 74 68 65 20 65 6d |efined i|n the em|
|000037b0| 61 63 73 2f 76 69 20 6b | 65 79 6d 61 70 2e 0a 58 |acs/vi k|eymap..X|
|000037c0| 0a 58 0a 58 38 29 20 57 | 68 79 20 64 6f 65 73 20 |.X.X8) W|hy does |
|000037d0| 6d 79 20 74 65 72 6d 69 | 6e 61 6c 20 61 63 74 20 |my termi|nal act |
|000037e0| 66 75 6e 6e 79 20 69 6e | 20 77 61 79 20 78 3f 0a |funny in| way x?.|
|000037f0| 58 0a 58 20 20 49 66 20 | 79 6f 75 20 61 72 65 20 |X.X If |you are |
|00003800| 75 73 69 6e 67 20 61 6e | 20 4f 70 65 6e 57 69 6e |using an| OpenWin|
|00003810| 64 6f 77 73 20 63 6d 64 | 74 6f 6f 6c 20 61 73 20 |dows cmd|tool as |
|00003820| 79 6f 75 72 20 74 65 72 | 6d 69 6e 61 6c 2c 20 61 |your ter|minal, a|
|00003830| 6e 79 0a 58 20 20 65 73 | 63 61 70 65 20 73 65 71 |ny.X es|cape seq|
|00003840| 75 65 6e 63 65 73 20 28 | 73 75 63 68 20 61 73 20 |uences (|such as |
|00003850| 74 68 6f 73 65 20 70 72 | 6f 64 75 63 65 64 20 62 |those pr|oduced b|
|00003860| 79 20 63 75 72 73 6f 72 | 20 6b 65 79 73 29 20 77 |y cursor| keys) w|
|00003870| 69 6c 6c 20 62 65 0a 58 | 20 20 73 77 61 6c 6c 6f |ill be.X| swallo|
|00003880| 77 65 64 20 75 70 20 61 | 6e 64 20 6e 65 76 65 72 |wed up a|nd never|
|00003890| 20 72 65 61 63 68 20 7a | 73 68 2e 20 20 45 69 74 | reach z|sh. Eit|
|000038a0| 68 65 72 20 75 73 65 20 | 73 68 65 6c 6c 74 6f 6f |her use |shelltoo|
|000038b0| 6c 20 6f 72 20 61 76 6f | 69 64 0a 58 20 20 63 6f |l or avo|id.X co|
|000038c0| 6d 6d 61 6e 64 73 20 77 | 69 74 68 20 65 73 63 61 |mmands w|ith esca|
|000038d0| 70 65 20 73 65 71 75 65 | 6e 63 65 73 2e 20 20 59 |pe seque|nces. Y|
|000038e0| 6f 75 20 63 61 6e 20 61 | 6c 73 6f 20 64 69 73 61 |ou can a|lso disa|
|000038f0| 62 6c 65 20 73 63 72 6f | 6c 6c 69 6e 67 20 66 72 |ble scro|lling fr|
|00003900| 6f 6d 0a 58 20 20 74 68 | 65 20 63 6d 64 74 6f 6f |om.X th|e cmdtoo|
|00003910| 6c 20 70 61 6e 65 20 6d | 65 6e 75 20 28 77 68 69 |l pane m|enu (whi|
|00003920| 63 68 20 65 66 66 65 63 | 74 69 76 65 6c 79 20 74 |ch effec|tively t|
|00003930| 75 72 6e 73 20 69 74 20 | 69 6e 74 6f 20 61 20 73 |urns it |into a s|
|00003940| 68 65 6c 6c 74 6f 6f 6c | 29 2e 0a 58 20 20 49 66 |helltool|)..X If|
|00003950| 20 79 6f 75 20 73 74 69 | 6c 6c 20 77 61 6e 74 20 | you sti|ll want |
|00003960| 73 63 72 6f 6c 6c 69 6e | 67 2c 20 74 72 79 20 75 |scrollin|g, try u|
|00003970| 73 69 6e 67 20 61 6e 20 | 78 74 65 72 6d 20 77 69 |sing an |xterm wi|
|00003980| 74 68 20 74 68 65 20 73 | 63 72 6f 6c 6c 62 61 72 |th the s|crollbar|
|00003990| 0a 58 20 20 61 63 74 69 | 76 61 74 65 64 2e 0a 58 |.X acti|vated..X|
|000039a0| 0a 58 20 20 49 66 20 74 | 68 61 74 27 73 20 6e 6f |.X If t|hat's no|
|000039b0| 74 20 74 68 65 20 70 72 | 6f 62 6c 65 6d 2c 20 61 |t the pr|oblem, a|
|000039c0| 6e 64 20 79 6f 75 20 61 | 72 65 20 75 73 69 6e 67 |nd you a|re using|
|000039d0| 20 73 74 74 79 20 74 6f | 20 63 68 61 6e 67 65 20 | stty to| change |
|000039e0| 73 6f 6d 65 20 74 74 79 | 0a 58 20 20 73 65 74 74 |some tty|.X sett|
|000039f0| 69 6e 67 73 2c 20 6d 61 | 6b 65 20 73 75 72 65 20 |ings, ma|ke sure |
|00003a00| 79 6f 75 20 68 61 76 65 | 6e 27 74 20 61 73 6b 65 |you have|n't aske|
|00003a10| 64 20 7a 73 68 20 74 6f | 20 66 72 65 65 7a 65 20 |d zsh to| freeze |
|00003a20| 74 68 65 20 74 74 79 20 | 73 65 74 74 69 6e 67 73 |the tty |settings|
|00003a30| 3a 0a 58 20 20 74 79 70 | 65 0a 58 09 74 74 79 63 |:.X typ|e.X.ttyc|
|00003a40| 74 6c 20 2d 75 0a 58 20 | 20 62 65 66 6f 72 65 20 |tl -u.X | before |
|00003a50| 61 6e 79 20 73 74 74 79 | 20 63 6f 6d 6d 61 6e 64 |any stty| command|
|00003a60| 73 20 79 6f 75 20 75 73 | 65 2e 0a 58 0a 58 20 20 |s you us|e..X.X |
|00003a70| 49 66 20 5f 74 68 61 74 | 27 73 5f 20 6e 6f 74 20 |If _that|'s_ not |
|00003a80| 74 68 65 20 70 72 6f 62 | 6c 65 6d 2c 20 61 6e 64 |the prob|lem, and|
|00003a90| 20 79 6f 75 20 61 72 65 | 20 68 61 76 69 6e 67 20 | you are| having |
|00003aa0| 64 69 66 66 69 63 75 6c | 74 69 65 73 20 77 69 74 |difficul|ties wit|
|00003ab0| 68 0a 58 20 20 65 78 74 | 65 72 6e 61 6c 20 63 6f |h.X ext|ernal co|
|00003ac0| 6d 6d 61 6e 64 73 20 28 | 6e 6f 74 20 70 61 72 74 |mmands (|not part|
|00003ad0| 20 6f 66 20 7a 73 68 29 | 2c 20 61 6e 64 20 79 6f | of zsh)|, and yo|
|00003ae0| 75 20 74 68 69 6e 6b 20 | 73 6f 6d 65 20 74 65 72 |u think |some ter|
|00003af0| 6d 69 6e 61 6c 0a 58 20 | 20 73 65 74 74 69 6e 67 |minal.X | setting|
|00003b00| 20 69 73 20 77 72 6f 6e | 67 20 28 65 2e 67 2e 20 | is wron|g (e.g. |
|00003b10| 69 67 6e 70 61 72 20 73 | 68 6f 75 6c 64 20 62 65 |ignpar s|hould be|
|00003b20| 20 2d 69 67 6e 70 61 72 | 3a 20 73 65 65 20 74 68 | -ignpar|: see th|
|00003b30| 65 20 73 74 74 79 28 31 | 29 0a 58 20 20 6d 61 6e |e stty(1|).X man|
|00003b40| 75 61 6c 20 70 61 67 65 | 29 2c 20 74 72 79 3a 0a |ual page|), try:.|
|00003b50| 58 09 74 74 79 63 74 6c | 20 2d 75 0a 58 09 53 54 |X.ttyctl| -u.X.ST|
|00003b60| 54 59 3d 27 2d 69 67 6e | 70 61 72 27 20 63 6f 6d |TY='-ign|par' com|
|00003b70| 6d 61 6e 64 6e 61 6d 65 | 0a 58 20 20 28 69 6e 20 |mandname|.X (in |
|00003b80| 74 68 69 73 20 6e 6f 74 | 2d 76 65 72 79 2d 75 73 |this not|-very-us|
|00003b90| 65 66 75 6c 20 65 78 61 | 6d 70 6c 65 29 2e 20 20 |eful exa|mple). |
|00003ba0| 4e 6f 74 65 20 74 68 61 | 74 20 7a 73 68 20 64 6f |Note tha|t zsh do|
|00003bb0| 65 73 6e 27 74 20 72 65 | 73 65 74 20 74 68 65 0a |esn't re|set the.|
|00003bc0| 58 20 20 74 65 72 6d 69 | 6e 61 6c 20 63 6f 6d 70 |X termi|nal comp|
|00003bd0| 6c 65 74 65 6c 79 20 61 | 66 74 65 72 77 61 72 64 |letely a|fterward|
|00003be0| 73 3a 20 6a 75 73 74 20 | 74 68 65 20 6d 6f 64 65 |s: just |the mode|
|00003bf0| 73 20 69 74 20 75 73 65 | 73 20 69 74 73 65 6c 66 |s it use|s itself|
|00003c00| 2e 0a 58 0a 58 0a 58 39 | 29 20 57 68 79 20 64 6f |..X.X.X9|) Why do|
|00003c10| 65 73 20 60 24 76 61 72 | 27 20 77 68 65 72 65 20 |es `$var|' where |
|00003c20| 76 61 72 3d 22 66 6f 6f | 20 62 61 72 22 20 6e 6f |var="foo| bar" no|
|00003c30| 74 20 64 6f 20 77 68 61 | 74 20 49 20 65 78 70 65 |t do wha|t I expe|
|00003c40| 63 74 3f 0a 58 0a 58 20 | 20 49 6e 20 6d 6f 73 74 |ct?.X.X | In most|
|00003c50| 20 42 6f 75 72 6e 65 2d | 73 68 65 6c 6c 20 64 65 | Bourne-|shell de|
|00003c60| 72 69 76 61 74 69 76 65 | 73 2c 20 6d 75 6c 74 69 |rivative|s, multi|
|00003c70| 2d 77 6f 72 64 20 76 61 | 72 69 61 62 6c 65 73 20 |-word va|riables |
|00003c80| 73 75 63 68 20 61 73 0a | 58 09 76 61 72 3d 22 66 |such as.|X.var="f|
|00003c90| 6f 6f 20 62 61 72 22 0a | 58 20 20 61 72 65 20 73 |oo bar".|X are s|
|00003ca0| 70 6c 69 74 20 69 6e 74 | 6f 20 77 6f 72 64 73 20 |plit int|o words |
|00003cb0| 77 68 65 6e 20 70 61 73 | 73 65 64 20 74 6f 20 61 |when pas|sed to a|
|00003cc0| 20 63 6f 6d 6d 61 6e 64 | 20 6f 72 20 75 73 65 64 | command| or used|
|00003cd0| 20 69 6e 20 61 20 60 66 | 6f 72 20 66 6f 6f 20 69 | in a `f|or foo i|
|00003ce0| 6e 20 24 76 61 72 27 0a | 58 20 20 6c 6f 6f 70 2e |n $var'.|X loop.|
|00003cf0| 20 20 42 79 20 64 65 66 | 61 75 6c 74 2c 20 7a 73 | By def|ault, zs|
|00003d00| 68 20 64 6f 65 73 20 6e | 6f 74 20 68 61 76 65 20 |h does n|ot have |
|00003d10| 74 68 61 74 20 62 65 68 | 61 76 69 6f 75 72 3a 20 |that beh|aviour: |
|00003d20| 20 74 68 65 20 76 61 72 | 69 61 62 6c 65 20 72 65 | the var|iable re|
|00003d30| 6d 61 69 6e 73 0a 58 20 | 20 69 6e 74 61 63 74 2e |mains.X | intact.|
|00003d40| 20 20 41 6e 20 6f 70 74 | 69 6f 6e 20 28 73 68 77 | An opt|ion (shw|
|00003d50| 6f 72 64 73 70 6c 69 74 | 29 20 65 78 69 73 74 73 |ordsplit|) exists|
|00003d60| 20 74 6f 20 70 72 6f 76 | 69 64 65 20 63 6f 6d 70 | to prov|ide comp|
|00003d70| 61 74 69 62 69 6c 69 74 | 79 2e 0a 58 20 20 0a 58 |atibilit|y..X .X|
|00003d80| 20 20 46 6f 72 20 65 78 | 61 6d 70 6c 65 2c 20 64 | For ex|ample, d|
|00003d90| 65 66 69 6e 69 6e 67 20 | 74 68 65 20 66 75 6e 63 |efining |the func|
|00003da0| 74 69 6f 6e 20 61 72 67 | 73 20 74 6f 20 73 68 6f |tion arg|s to sho|
|00003db0| 77 20 74 68 65 20 6e 75 | 6d 62 65 72 20 6f 66 20 |w the nu|mber of |
|00003dc0| 69 74 73 0a 58 20 20 61 | 72 67 75 6d 65 6e 74 73 |its.X a|rguments|
|00003dd0| 3a 0a 58 09 61 72 67 73 | 28 29 20 7b 20 65 63 68 |:.X.args|() { ech|
|00003de0| 6f 20 24 23 3b 20 7d 0a | 58 20 20 61 6e 64 20 77 |o $#; }.|X and w|
|00003df0| 69 74 68 20 6f 75 72 20 | 64 65 66 69 6e 69 74 69 |ith our |definiti|
|00003e00| 6f 6e 20 6f 66 20 76 62 | 6c 65 2c 0a 58 09 61 72 |on of vb|le,.X.ar|
|00003e10| 67 73 20 24 76 62 6c 65 | 0a 58 20 20 70 72 6f 64 |gs $vble|.X prod|
|00003e20| 75 63 65 73 20 74 68 65 | 20 6f 75 74 70 75 74 20 |uces the| output |
|00003e30| 60 31 27 2e 20 20 41 66 | 74 65 72 0a 58 09 73 65 |`1'. Af|ter.X.se|
|00003e40| 74 6f 70 74 20 73 68 77 | 6f 72 64 73 70 6c 69 74 |topt shw|ordsplit|
|00003e50| 0a 58 20 20 74 68 65 20 | 73 61 6d 65 20 66 75 6e |.X the |same fun|
|00003e60| 63 74 69 6f 6e 20 70 72 | 6f 64 75 63 65 73 20 74 |ction pr|oduces t|
|00003e70| 68 65 20 6f 75 74 70 75 | 74 20 60 32 27 2c 20 6c |he outpu|t `2', l|
|00003e80| 69 6b 65 20 73 68 20 61 | 6e 64 20 6b 73 68 2e 0a |ike sh a|nd ksh..|
|00003e90| 58 20 20 0a 58 20 20 55 | 6e 6c 65 73 73 20 79 6f |X .X U|nless yo|
|00003ea0| 75 20 6e 65 65 64 20 73 | 74 72 69 63 74 20 73 68 |u need s|trict sh|
|00003eb0| 2f 6b 73 68 20 63 6f 6d | 70 61 74 69 62 69 6c 69 |/ksh com|patibili|
|00003ec0| 74 79 2c 20 79 6f 75 20 | 73 68 6f 75 6c 64 20 61 |ty, you |should a|
|00003ed0| 73 6b 20 79 6f 75 72 73 | 65 6c 66 0a 58 20 20 77 |sk yours|elf.X w|
|00003ee0| 68 65 74 68 65 72 20 79 | 6f 75 20 72 65 61 6c 6c |hether y|ou reall|
|00003ef0| 79 20 77 61 6e 74 20 74 | 68 69 73 20 62 65 68 61 |y want t|his beha|
|00003f00| 76 69 6f 75 72 2c 20 61 | 73 20 69 74 20 63 61 6e |viour, a|s it can|
|00003f10| 20 70 72 6f 64 75 63 65 | 20 75 6e 65 78 70 65 63 | produce| unexpec|
|00003f20| 74 65 64 0a 58 20 20 65 | 66 66 65 63 74 73 20 66 |ted.X e|ffects f|
|00003f30| 6f 72 20 76 61 72 69 61 | 62 6c 65 73 20 77 69 74 |or varia|bles wit|
|00003f40| 68 20 65 6e 74 69 72 65 | 6c 79 20 69 6e 6e 6f 63 |h entire|ly innoc|
|00003f50| 75 6f 75 73 20 65 6d 62 | 65 64 64 65 64 20 73 70 |uous emb|edded sp|
|00003f60| 61 63 65 73 2e 20 20 54 | 68 65 0a 58 20 20 6e 61 |aces. T|he.X na|
|00003f70| 74 75 72 61 6c 20 77 61 | 79 20 74 6f 20 70 72 6f |tural wa|y to pro|
|00003f80| 64 75 63 65 20 77 6f 72 | 64 2d 73 70 6c 69 74 74 |duce wor|d-splitt|
|00003f90| 69 6e 67 20 62 65 68 61 | 76 69 6f 75 72 20 69 6e |ing beha|viour in|
|00003fa0| 20 7a 73 68 20 69 73 20 | 76 69 61 20 61 72 72 61 | zsh is |via arra|
|00003fb0| 79 73 2e 0a 58 20 20 46 | 6f 72 20 65 78 61 6d 70 |ys..X F|or examp|
|00003fc0| 6c 65 2c 0a 58 09 73 65 | 74 20 2d 41 20 61 72 72 |le,.X.se|t -A arr|
|00003fd0| 61 79 20 6f 6e 65 20 74 | 77 6f 20 74 68 72 65 65 |ay one t|wo three|
|00003fe0| 20 74 77 65 6e 74 79 0a | 58 20 20 28 6f 72 0a 58 | twenty.|X (or.X|
|00003ff0| 20 20 20 20 20 20 20 20 | 61 72 72 61 79 3d 28 6f | |array=(o|
|00004000| 6e 65 20 74 77 6f 20 74 | 68 72 65 65 20 74 77 65 |ne two t|hree twe|
|00004010| 6e 74 79 29 0a 58 20 20 | 69 66 20 79 6f 75 20 70 |nty).X |if you p|
|00004020| 72 65 66 65 72 29 2c 20 | 66 6f 6c 6c 6f 77 65 64 |refer), |followed|
|00004030| 20 62 79 0a 58 09 61 72 | 67 73 20 24 61 72 72 61 | by.X.ar|gs $arra|
|00004040| 79 0a 58 20 20 70 72 6f | 64 75 63 65 73 20 74 68 |y.X pro|duces th|
|00004050| 65 20 6f 75 74 70 75 74 | 20 60 34 27 2c 20 72 65 |e output| `4', re|
|00004060| 67 61 72 64 6c 65 73 73 | 20 6f 66 20 74 68 65 20 |gardless| of the |
|00004070| 73 65 74 74 69 6e 67 20 | 6f 66 20 73 68 77 6f 72 |setting |of shwor|
|00004080| 64 73 70 6c 69 74 2e 0a | 58 20 20 41 72 72 61 79 |dsplit..|X Array|
|00004090| 73 20 61 72 65 20 61 6c | 73 6f 20 6d 75 63 68 20 |s are al|so much |
|000040a0| 6d 6f 72 65 20 76 65 72 | 73 61 74 69 6c 65 20 74 |more ver|satile t|
|000040b0| 68 61 6e 20 73 69 6e 67 | 6c 65 20 73 74 72 69 6e |han sing|le strin|
|000040c0| 67 73 2e 0a 58 20 20 0a | 58 20 20 4e 6f 74 65 20 |gs..X .|X Note |
|000040d0| 61 6c 73 6f 20 74 68 65 | 20 22 24 40 22 20 6d 65 |also the| "$@" me|
|000040e0| 74 68 6f 64 20 6f 66 20 | 77 6f 72 64 20 73 70 6c |thod of |word spl|
|000040f0| 69 74 74 69 6e 67 20 69 | 73 20 61 6c 77 61 79 73 |itting i|s always|
|00004100| 20 61 76 61 69 6c 61 62 | 6c 65 20 69 6e 20 7a 73 | availab|le in zs|
|00004110| 68 0a 58 20 20 66 75 6e | 63 74 69 6f 6e 73 20 61 |h.X fun|ctions a|
|00004120| 6e 64 20 73 63 72 69 70 | 74 73 20 28 74 68 6f 75 |nd scrip|ts (thou|
|00004130| 67 68 20 73 74 72 69 63 | 74 6c 79 20 74 68 69 73 |gh stric|tly this|
|00004140| 20 64 6f 65 73 20 61 72 | 72 61 79 20 73 70 6c 69 | does ar|ray spli|
|00004150| 74 74 69 6e 67 2c 20 6e | 6f 74 0a 58 20 20 77 6f |tting, n|ot.X wo|
|00004160| 72 64 20 73 70 6c 69 74 | 74 69 6e 67 29 2c 20 61 |rd split|ting), a|
|00004170| 6c 73 6f 20 74 68 65 20 | 73 75 62 73 74 69 74 75 |lso the |substitu|
|00004180| 74 69 6f 6e 20 24 7b 3d | 66 6f 6f 7d 20 74 6f 20 |tion ${=|foo} to |
|00004190| 74 6f 67 67 6c 65 20 77 | 6f 72 64 0a 58 20 20 73 |toggle w|ord.X s|
|000041a0| 70 6c 69 74 74 69 6e 67 | 20 6f 6e 20 76 61 72 69 |plitting| on vari|
|000041b0| 61 62 6c 65 20 60 66 6f | 6f 27 2e 0a 58 0a 58 0a |able `fo|o'..X.X.|
|000041c0| 58 31 30 29 20 48 6f 77 | 20 64 6f 65 73 20 62 61 |X10) How| does ba|
|000041d0| 73 65 20 61 72 69 74 68 | 6d 65 74 69 63 20 77 6f |se arith|metic wo|
|000041e0| 72 6b 3f 0a 58 0a 58 20 | 20 54 68 65 20 73 79 6e |rk?.X.X | The syn|
|000041f0| 74 61 78 20 28 65 2e 67 | 2e 20 75 73 69 6e 67 20 |tax (e.g|. using |
|00004200| 74 68 65 20 60 6c 65 74 | 27 20 62 75 69 6c 74 69 |the `let|' builti|
|00004210| 6e 20 69 73 29 0a 58 09 | 6c 65 74 20 27 66 6f 6f |n is).X.|let 'foo|
|00004220| 20 3d 20 5b 31 36 5d 66 | 66 27 0a 58 20 20 6f 72 | = [16]f|f'.X or|
|00004230| 20 65 71 75 69 76 61 6c | 65 6e 74 6c 79 0a 58 09 | equival|ently.X.|
|00004240| 28 28 20 66 6f 6f 20 3d | 20 5b 31 36 5d 66 66 20 |(( foo =| [16]ff |
|00004250| 29 29 0a 58 20 20 54 68 | 65 6e 0a 58 09 65 63 68 |)).X Th|en.X.ech|
|00004260| 6f 20 24 66 6f 6f 0a 58 | 20 20 67 69 76 65 73 20 |o $foo.X| gives |
|00004270| 74 68 65 20 61 6e 73 77 | 65 72 20 60 32 35 35 27 |the answ|er `255'|
|00004280| 2e 20 20 49 74 20 69 73 | 20 70 6f 73 73 69 62 6c |. It is| possibl|
|00004290| 65 20 74 6f 20 64 65 63 | 6c 61 72 65 20 76 61 72 |e to dec|lare var|
|000042a0| 69 61 62 6c 65 73 20 65 | 78 70 6c 69 63 69 74 6c |iables e|xplicitl|
|000042b0| 79 0a 58 20 20 74 6f 20 | 62 65 20 69 6e 74 65 67 |y.X to |be integ|
|000042c0| 65 72 73 2c 20 76 69 61 | 0a 58 09 74 79 70 65 73 |ers, via|.X.types|
|000042d0| 65 74 20 2d 69 20 66 6f | 6f 0a 58 20 20 77 68 69 |et -i fo|o.X whi|
|000042e0| 63 68 20 68 61 73 20 61 | 20 64 69 66 66 65 72 65 |ch has a| differe|
|000042f0| 6e 74 20 65 66 66 65 63 | 74 3a 20 6e 61 6d 65 6c |nt effec|t: namel|
|00004300| 79 20 74 68 65 20 62 61 | 73 65 20 75 73 65 64 20 |y the ba|se used |
|00004310| 69 6e 20 74 68 65 20 66 | 69 72 73 74 0a 58 20 20 |in the f|irst.X |
|00004320| 61 73 73 69 67 6e 6d 65 | 6e 74 20 28 68 65 78 61 |assignme|nt (hexa|
|00004330| 64 65 63 69 6d 61 6c 20 | 69 6e 20 74 68 65 20 65 |decimal |in the e|
|00004340| 78 61 6d 70 6c 65 29 20 | 69 73 20 73 75 62 73 65 |xample) |is subse|
|00004350| 71 75 65 6e 74 6c 79 20 | 75 73 65 64 20 77 68 65 |quently |used whe|
|00004360| 6e 65 76 65 72 0a 58 20 | 20 60 66 6f 6f 27 20 69 |never.X | `foo' i|
|00004370| 73 20 64 69 73 70 6c 61 | 79 65 64 20 28 61 6c 74 |s displa|yed (alt|
|00004380| 68 6f 75 67 68 20 74 68 | 65 20 69 6e 74 65 72 6e |hough th|e intern|
|00004390| 61 6c 20 72 65 70 72 65 | 73 65 6e 74 61 74 69 6f |al repre|sentatio|
|000043a0| 6e 20 69 73 20 75 6e 63 | 68 61 6e 67 65 64 29 2e |n is unc|hanged).|
|000043b0| 0a 58 20 20 54 6f 20 65 | 6e 73 75 72 65 20 66 6f |.X To e|nsure fo|
|000043c0| 6f 20 69 73 20 61 6c 77 | 61 79 73 20 64 69 73 70 |o is alw|ays disp|
|000043d0| 6c 61 79 65 64 20 69 6e | 20 64 65 63 69 6d 61 6c |layed in| decimal|
|000043e0| 2c 20 64 65 63 6c 61 72 | 65 20 69 74 20 61 73 0a |, declar|e it as.|
|000043f0| 58 09 74 79 70 65 73 65 | 74 20 2d 69 20 31 30 20 |X.typese|t -i 10 |
|00004400| 66 6f 6f 0a 58 20 20 77 | 68 69 63 68 20 72 65 71 |foo.X w|hich req|
|00004410| 75 65 73 74 73 20 62 61 | 73 65 20 31 30 20 66 6f |uests ba|se 10 fo|
|00004420| 72 20 6f 75 74 70 75 74 | 2e 20 20 59 6f 75 20 63 |r output|. You c|
|00004430| 61 6e 20 63 68 61 6e 67 | 65 20 74 68 65 20 6f 75 |an chang|e the ou|
|00004440| 74 70 75 74 20 62 61 73 | 65 20 6f 66 20 61 6e 0a |tput bas|e of an.|
|00004450| 58 20 20 65 78 69 73 74 | 69 6e 67 20 76 61 72 69 |X exist|ing vari|
|00004460| 61 62 6c 65 20 69 6e 20 | 74 68 69 73 20 66 61 73 |able in |this fas|
|00004470| 68 69 6f 6e 2e 20 20 55 | 73 69 6e 67 20 74 68 65 |hion. U|sing the|
|00004480| 20 60 24 5b 20 2e 2e 2e | 20 5d 27 20 6d 65 74 68 | `$[ ...| ]' meth|
|00004490| 6f 64 20 77 69 6c 6c 0a | 58 20 20 61 6c 77 61 79 |od will.|X alway|
|000044a0| 73 20 64 69 73 70 6c 61 | 79 20 69 6e 20 64 65 63 |s displa|y in dec|
|000044b0| 69 6d 61 6c 2e 0a 58 0a | 58 0a 58 31 31 29 20 48 |imal..X.|X.X11) H|
|000044c0| 6f 77 20 64 6f 20 49 20 | 67 65 74 20 61 20 6e 65 |ow do I |get a ne|
|000044d0| 77 6c 69 6e 65 20 69 6e | 20 6d 79 20 70 72 6f 6d |wline in| my prom|
|000044e0| 70 74 3f 0a 58 0a 58 20 | 20 59 6f 75 20 63 61 6e |pt?.X.X | You can|
|000044f0| 20 70 6c 61 63 65 20 61 | 20 6c 69 74 65 72 61 6c | place a| literal|
|00004500| 20 6e 65 77 6c 69 6e 65 | 20 69 6e 20 71 75 6f 74 | newline| in quot|
|00004510| 65 73 2c 20 69 2e 65 2e | 0a 58 09 50 52 4f 4d 50 |es, i.e.|.X.PROMP|
|00004520| 54 3d 22 48 69 20 4a 6f | 65 2c 0a 58 09 77 68 61 |T="Hi Jo|e,.X.wha|
|00004530| 74 20 6e 6f 77 3f 25 23 | 20 22 0a 58 20 20 49 66 |t now?%#| ".X If|
|00004540| 20 79 6f 75 20 68 61 76 | 65 20 74 68 65 20 62 61 | you hav|e the ba|
|00004550| 64 20 74 61 73 74 65 20 | 74 6f 20 73 65 74 20 74 |d taste |to set t|
|00004560| 68 65 20 6f 70 74 69 6f | 6e 20 63 73 68 6a 75 6e |he optio|n cshjun|
|00004570| 6b 69 65 71 75 6f 74 65 | 73 2c 20 77 68 69 63 68 |kiequote|s, which|
|00004580| 0a 58 20 20 69 6e 68 69 | 62 69 74 73 20 73 75 63 |.X inhi|bits suc|
|00004590| 68 20 62 65 68 61 76 69 | 6f 75 72 2c 20 79 6f 75 |h behavi|our, you|
|000045a0| 20 77 69 6c 6c 20 68 61 | 76 65 20 74 6f 20 62 72 | will ha|ve to br|
|000045b0| 61 63 6b 65 74 20 74 68 | 69 73 20 77 69 74 68 20 |acket th|is with |
|000045c0| 0a 58 20 20 60 75 6e 73 | 65 74 6f 70 74 20 63 73 |.X `uns|etopt cs|
|000045d0| 68 6a 75 6e 6b 69 65 71 | 75 6f 74 65 73 27 20 61 |hjunkieq|uotes' a|
|000045e0| 6e 64 20 60 73 65 74 6f | 70 74 20 63 73 68 6a 75 |nd `seto|pt cshju|
|000045f0| 6e 6b 69 65 71 75 6f 74 | 65 73 27 2c 20 6f 72 20 |nkiequot|es', or |
|00004600| 70 75 74 20 69 74 20 69 | 6e 0a 58 20 20 79 6f 75 |put it i|n.X you|
|00004610| 72 20 2e 7a 73 68 72 63 | 20 62 65 66 6f 72 65 20 |r .zshrc| before |
|00004620| 74 68 65 20 6f 70 74 69 | 6f 6e 20 69 73 20 73 65 |the opti|on is se|
|00004630| 74 2e 0a 58 0a 58 0a 58 | 31 32 29 20 57 68 79 20 |t..X.X.X|12) Why |
|00004640| 64 6f 65 73 20 60 62 69 | 6e 64 6b 65 79 20 5e 61 |does `bi|ndkey ^a|
|00004650| 20 63 6f 6d 6d 61 6e 64 | 2d 6e 61 6d 65 27 20 64 | command|-name' d|
|00004660| 6f 20 73 6f 6d 65 74 68 | 69 6e 67 20 66 75 6e 6e |o someth|ing funn|
|00004670| 79 3f 0a 58 0a 58 20 20 | 59 6f 75 20 70 72 6f 62 |y?.X.X |You prob|
|00004680| 61 62 6c 79 20 68 61 76 | 65 20 74 68 65 20 65 78 |ably hav|e the ex|
|00004690| 74 65 6e 64 65 64 67 6c | 6f 62 20 6f 70 74 69 6f |tendedgl|ob optio|
|000046a0| 6e 20 73 65 74 20 69 6e | 20 77 68 69 63 68 20 63 |n set in| which c|
|000046b0| 61 73 65 20 5e 20 61 6e | 64 20 23 0a 58 20 20 61 |ase ^ an|d #.X a|
|000046c0| 72 65 20 6d 65 74 61 63 | 68 61 72 61 63 74 65 72 |re metac|haracter|
|000046d0| 73 2e 20 20 5e 61 20 6d | 61 74 63 68 65 73 20 61 |s. ^a m|atches a|
|000046e0| 6e 79 20 66 69 6c 65 20 | 65 78 63 65 70 74 20 6f |ny file |except o|
|000046f0| 6e 65 20 63 61 6c 6c 65 | 64 20 61 2c 20 73 6f 20 |ne calle|d a, so |
|00004700| 74 68 65 0a 58 20 20 6c | 69 6e 65 20 69 73 20 69 |the.X l|ine is i|
|00004710| 6e 74 65 72 70 72 65 74 | 65 64 20 61 73 20 62 69 |nterpret|ed as bi|
|00004720| 6e 64 6b 65 79 20 66 6f | 6c 6c 6f 77 65 64 20 62 |ndkey fo|llowed b|
|00004730| 79 20 61 20 6c 69 73 74 | 20 6f 66 20 66 69 6c 65 |y a list| of file|
|00004740| 73 2e 20 20 51 75 6f 74 | 65 20 74 68 65 0a 58 20 |s. Quot|e the.X |
|00004750| 20 5e 20 77 69 74 68 20 | 61 20 62 61 63 6b 73 6c | ^ with |a backsl|
|00004760| 61 73 68 20 6f 72 20 70 | 75 74 20 71 75 6f 74 61 |ash or p|ut quota|
|00004770| 74 69 6f 6e 20 6d 61 72 | 6b 73 20 61 72 6f 75 6e |tion mar|ks aroun|
|00004780| 64 20 5e 61 2e 0a 58 0a | 58 0a 58 31 33 29 20 48 |d ^a..X.|X.X13) H|
|00004790| 6f 77 20 64 6f 20 49 20 | 72 65 66 65 72 65 6e 63 |ow do I |referenc|
|000047a0| 65 20 63 6f 6d 6d 61 6e | 64 20 60 66 6f 6f 27 20 |e comman|d `foo' |
|000047b0| 66 72 6f 6d 20 77 69 74 | 68 69 6e 20 66 75 6e 63 |from wit|hin func|
|000047c0| 74 69 6f 6e 20 60 66 6f | 6f 27 3f 0a 58 0a 58 20 |tion `fo|o'?.X.X |
|000047d0| 20 54 68 65 20 63 6f 6d | 6d 61 6e 64 20 60 63 6f | The com|mand `co|
|000047e0| 6d 6d 61 6e 64 20 66 6f | 6f 27 20 64 6f 65 73 20 |mmand fo|o' does |
|000047f0| 6a 75 73 74 20 74 68 61 | 74 2e 20 20 59 6f 75 20 |just tha|t. You |
|00004800| 64 6f 6e 27 74 20 6e 65 | 65 64 20 74 68 69 73 20 |don't ne|ed this |
|00004810| 77 69 74 68 0a 58 20 20 | 61 6c 69 61 73 65 73 2c |with.X |aliases,|
|00004820| 20 62 75 74 20 79 6f 75 | 20 64 6f 20 77 69 74 68 | but you| do with|
|00004830| 20 66 75 6e 63 74 69 6f | 6e 73 2e 20 20 4e 6f 74 | functio|ns. Not|
|00004840| 65 20 74 68 61 74 20 74 | 68 65 20 65 72 72 6f 72 |e that t|he error|
|00004850| 20 6d 65 73 73 61 67 65 | 0a 58 20 20 20 20 20 20 | message|.X |
|00004860| 20 20 7a 73 68 3a 20 6a | 6f 62 20 74 61 62 6c 65 | zsh: j|ob table|
|00004870| 20 66 75 6c 6c 20 6f 72 | 20 72 65 63 75 72 73 69 | full or| recursi|
|00004880| 6f 6e 20 6c 69 6d 69 74 | 20 65 78 63 65 65 64 65 |on limit| exceede|
|00004890| 64 0a 58 20 20 69 73 20 | 61 20 67 6f 6f 64 20 73 |d.X is |a good s|
|000048a0| 69 67 6e 20 74 68 61 74 | 20 79 6f 75 20 74 72 69 |ign that| you tri|
|000048b0| 65 64 20 63 61 6c 6c 69 | 6e 67 20 60 66 6f 6f 27 |ed calli|ng `foo'|
|000048c0| 20 69 6e 20 66 75 6e 63 | 74 69 6f 6e 20 60 66 6f | in func|tion `fo|
|000048d0| 6f 27 20 77 69 74 68 6f | 75 74 0a 58 20 20 75 73 |o' witho|ut.X us|
|000048e0| 69 6e 67 20 60 63 6f 6d | 6d 61 6e 64 27 2e 0a 58 |ing `com|mand'..X|
|000048f0| 0a 58 0a 58 31 34 29 20 | 49 20 64 6f 6e 27 74 20 |.X.X14) |I don't |
|00004900| 68 61 76 65 20 72 6f 6f | 74 20 61 63 63 65 73 73 |have roo|t access|
|00004910| 3a 20 68 6f 77 20 64 6f | 20 49 20 6d 61 6b 65 20 |: how do| I make |
|00004920| 7a 73 68 20 6d 79 20 6c | 6f 67 69 6e 20 73 68 65 |zsh my l|ogin she|
|00004930| 6c 6c 3f 0a 58 0a 58 20 | 20 55 6e 66 6f 72 74 75 |ll?.X.X | Unfortu|
|00004940| 6e 61 74 65 6c 79 2c 20 | 6f 6e 20 6d 61 6e 79 20 |nately, |on many |
|00004950| 6d 61 63 68 69 6e 65 73 | 20 79 6f 75 20 63 61 6e |machines| you can|
|00004960| 27 74 20 75 73 65 20 60 | 63 68 73 68 27 20 74 6f |'t use `|chsh' to|
|00004970| 20 63 68 61 6e 67 65 20 | 79 6f 75 72 0a 58 20 20 | change |your.X |
|00004980| 73 68 65 6c 6c 20 75 6e | 6c 65 73 73 20 74 68 65 |shell un|less the|
|00004990| 20 6e 61 6d 65 20 6f 66 | 20 74 68 65 20 73 68 65 | name of| the she|
|000049a0| 6c 6c 20 69 73 20 63 6f | 6e 74 61 69 6e 65 64 20 |ll is co|ntained |
|000049b0| 69 6e 20 2f 65 74 63 2f | 73 68 65 6c 6c 73 2c 20 |in /etc/|shells, |
|000049c0| 73 6f 20 69 66 0a 58 20 | 20 79 6f 75 20 68 61 76 |so if.X | you hav|
|000049d0| 65 20 79 6f 75 72 20 6f | 77 6e 20 63 6f 70 79 20 |e your o|wn copy |
|000049e0| 6f 66 20 7a 73 68 20 79 | 6f 75 20 6e 65 65 64 20 |of zsh y|ou need |
|000049f0| 73 6f 6d 65 20 73 6c 65 | 69 67 68 74 2d 6f 66 2d |some sle|ight-of-|
|00004a00| 68 61 6e 64 20 74 6f 20 | 75 73 65 20 69 74 0a 58 |hand to |use it.X|
|00004a10| 20 20 77 68 65 6e 20 79 | 6f 75 20 6c 6f 67 20 6f | when y|ou log o|
|00004a20| 6e 2e 20 20 28 53 69 6d | 70 6c 79 20 74 79 70 69 |n. (Sim|ply typi|
|00004a30| 6e 67 20 60 7a 73 68 27 | 20 69 73 20 6e 6f 74 20 |ng `zsh'| is not |
|00004a40| 72 65 61 6c 6c 79 20 61 | 20 73 6f 6c 75 74 69 6f |really a| solutio|
|00004a50| 6e 20 73 69 6e 63 65 0a | 58 20 20 79 6f 75 20 73 |n since.|X you s|
|00004a60| 74 69 6c 6c 20 68 61 76 | 65 20 79 6f 75 72 20 6f |till hav|e your o|
|00004a70| 72 69 67 69 6e 61 6c 20 | 6c 6f 67 69 6e 20 73 68 |riginal |login sh|
|00004a80| 65 6c 6c 20 77 61 69 74 | 69 6e 67 20 66 6f 72 20 |ell wait|ing for |
|00004a90| 77 68 65 6e 20 79 6f 75 | 20 65 78 69 74 2e 29 0a |when you| exit.).|
|00004aa0| 58 20 20 0a 58 20 20 54 | 68 65 20 62 61 73 69 63 |X .X T|he basic|
|00004ab0| 20 69 64 65 61 20 69 73 | 20 74 6f 20 75 73 65 20 | idea is| to use |
|00004ac0| 60 65 78 65 63 20 3c 7a | 73 68 2d 70 61 74 68 3e |`exec <z|sh-path>|
|00004ad0| 27 20 74 6f 20 72 65 70 | 6c 61 63 65 20 74 68 65 |' to rep|lace the|
|00004ae0| 20 63 75 72 72 65 6e 74 | 0a 58 20 20 73 68 65 6c | current|.X shel|
|00004af0| 6c 20 77 69 74 68 20 7a | 73 68 2e 20 20 4f 66 74 |l with z|sh. Oft|
|00004b00| 65 6e 20 79 6f 75 20 63 | 61 6e 20 64 6f 20 74 68 |en you c|an do th|
|00004b10| 69 73 20 69 6e 20 61 20 | 6c 6f 67 69 6e 20 66 69 |is in a |login fi|
|00004b20| 6c 65 20 73 75 63 68 20 | 61 73 0a 58 20 20 2e 70 |le such |as.X .p|
|00004b30| 72 6f 66 69 6c 65 20 28 | 69 66 20 79 6f 75 72 20 |rofile (|if your |
|00004b40| 73 68 65 6c 6c 20 69 73 | 20 73 68 20 6f 72 20 6b |shell is| sh or k|
|00004b50| 73 68 29 20 6f 72 20 2e | 6c 6f 67 69 6e 20 28 69 |sh) or .|login (i|
|00004b60| 66 20 69 74 27 73 20 63 | 73 68 29 2e 20 20 4d 61 |f it's c|sh). Ma|
|00004b70| 6b 65 0a 58 20 20 73 75 | 72 65 20 79 6f 75 20 68 |ke.X su|re you h|
|00004b80| 61 76 65 20 73 6f 6d 65 | 20 77 61 79 20 6f 66 20 |ave some| way of |
|00004b90| 61 6c 74 65 72 69 6e 67 | 20 74 68 65 20 66 69 6c |altering| the fil|
|00004ba0| 65 20 28 65 2e 67 2e 20 | 76 69 61 20 46 54 50 29 |e (e.g. |via FTP)|
|00004bb0| 20 62 65 66 6f 72 65 20 | 79 6f 75 0a 58 20 20 74 | before |you.X t|
|00004bc0| 72 79 20 74 68 69 73 20 | 61 73 20 60 65 78 65 63 |ry this |as `exec|
|00004bd0| 27 20 69 73 20 6f 66 74 | 65 6e 20 72 61 74 68 65 |' is oft|en rathe|
|00004be0| 72 20 75 6e 66 6f 72 67 | 69 76 69 6e 67 2e 0a 58 |r unforg|iving..X|
|00004bf0| 0a 58 20 20 49 6e 20 2e | 70 72 6f 66 69 6c 65 2c |.X In .|profile,|
|00004c00| 20 74 72 79 20 73 6f 6d | 65 74 68 69 6e 67 20 6c | try som|ething l|
|00004c10| 69 6b 65 0a 58 09 5b 20 | 2d 66 20 24 48 4f 4d 45 |ike.X.[ |-f $HOME|
|00004c20| 2f 62 69 6e 2f 7a 73 68 | 20 5d 20 26 26 20 65 78 |/bin/zsh| ] && ex|
|00004c30| 65 63 20 24 48 4f 4d 45 | 2f 62 69 6e 2f 7a 73 68 |ec $HOME|/bin/zsh|
|00004c40| 20 2d 6c 0a 58 20 20 61 | 6e 64 20 69 6e 20 2e 6c | -l.X a|nd in .l|
|00004c50| 6f 67 69 6e 2c 20 74 72 | 79 20 73 6f 6d 65 74 68 |ogin, tr|y someth|
|00004c60| 69 6e 67 20 6c 69 6b 65 | 0a 58 09 69 66 20 28 20 |ing like|.X.if ( |
|00004c70| 2d 66 20 7e 2f 62 69 6e | 2f 7a 73 68 20 29 20 65 |-f ~/bin|/zsh ) e|
|00004c80| 78 65 63 20 7e 2f 62 69 | 6e 2f 7a 73 68 20 2d 6c |xec ~/bi|n/zsh -l|
|00004c90| 0a 58 20 20 28 69 6e 20 | 65 61 63 68 20 63 61 73 |.X (in |each cas|
|00004ca0| 65 20 74 68 65 20 2d 6c | 20 74 65 6c 6c 73 20 7a |e the -l| tells z|
|00004cb0| 73 68 20 69 74 20 69 73 | 20 61 20 6c 6f 67 69 6e |sh it is| a login|
|00004cc0| 20 73 68 65 6c 6c 29 2e | 20 20 0a 58 0a 58 20 20 | shell).| .X.X |
|00004cd0| 49 74 27 73 20 6e 6f 74 | 20 61 20 67 6f 6f 64 20 |It's not| a good |
|00004ce0| 69 64 65 61 20 74 6f 20 | 70 75 74 20 74 68 69 73 |idea to |put this|
|00004cf0| 20 28 65 76 65 6e 20 77 | 69 74 68 6f 75 74 20 74 | (even w|ithout t|
|00004d00| 68 65 20 2d 6c 29 20 69 | 6e 74 6f 20 2e 63 73 68 |he -l) i|nto .csh|
|00004d10| 72 63 2c 20 61 74 0a 58 | 20 20 6c 65 61 73 74 20 |rc, at.X| least |
|00004d20| 77 69 74 68 6f 75 74 20 | 73 6f 6d 65 20 74 65 73 |without |some tes|
|00004d30| 74 73 20 6f 6e 20 77 68 | 61 74 20 74 68 65 20 63 |ts on wh|at the c|
|00004d40| 73 68 20 69 73 20 73 75 | 70 70 6f 73 65 64 20 74 |sh is su|pposed t|
|00004d50| 6f 20 62 65 20 64 6f 69 | 6e 67 2c 20 61 73 0a 58 |o be doi|ng, as.X|
|00004d60| 20 20 74 68 61 74 20 77 | 69 6c 6c 20 63 61 75 73 | that w|ill caus|
|00004d70| 65 20 5f 65 76 65 72 79 | 5f 20 69 6e 73 74 61 6e |e _every|_ instan|
|00004d80| 63 65 20 6f 66 20 63 73 | 68 20 74 6f 20 74 75 72 |ce of cs|h to tur|
|00004d90| 6e 20 69 6e 74 6f 20 61 | 20 7a 73 68 20 61 6e 64 |n into a| zsh and|
|00004da0| 20 77 69 6c 6c 0a 58 20 | 20 63 61 75 73 65 20 63 | will.X | cause c|
|00004db0| 73 68 20 73 63 72 69 70 | 74 73 20 28 79 65 73 2c |sh scrip|ts (yes,|
|00004dc0| 20 73 6f 6d 65 20 70 65 | 6f 70 6c 65 20 77 72 69 | some pe|ople wri|
|00004dd0| 74 65 20 74 68 65 73 65 | 29 20 74 6f 20 66 61 69 |te these|) to fai|
|00004de0| 6c 2e 20 20 49 66 20 79 | 6f 75 20 77 61 6e 74 0a |l. If y|ou want.|
|00004df0| 58 20 20 74 6f 20 74 65 | 6c 6c 20 78 74 65 72 6d |X to te|ll xterm|
|00004e00| 20 74 6f 20 72 75 6e 20 | 7a 73 68 2c 20 63 68 61 | to run |zsh, cha|
|00004e10| 6e 67 65 20 74 68 65 20 | 53 48 45 4c 4c 20 65 6e |nge the |SHELL en|
|00004e20| 76 69 72 6f 6e 6d 65 6e | 74 20 76 61 72 69 61 62 |vironmen|t variab|
|00004e30| 6c 65 20 74 6f 20 74 68 | 65 0a 58 20 20 66 75 6c |le to th|e.X ful|
|00004e40| 6c 20 70 61 74 68 20 6f | 66 20 7a 73 68 2e 0a 58 |l path o|f zsh..X|
|00004e50| 0a 58 20 20 49 66 20 79 | 6f 75 20 6c 69 6b 65 20 |.X If y|ou like |
|00004e60| 79 6f 75 72 20 6c 6f 67 | 69 6e 20 73 68 65 6c 6c |your log|in shell|
|00004e70| 20 74 6f 20 61 70 70 65 | 61 72 20 69 6e 20 74 68 | to appe|ar in th|
|00004e80| 65 20 70 72 6f 63 65 73 | 73 20 6c 69 73 74 20 61 |e proces|s list a|
|00004e90| 73 20 27 2d 7a 73 68 27 | 2c 0a 58 20 20 79 6f 75 |s '-zsh'|,.X you|
|00004ea0| 20 63 61 6e 20 6c 69 6e | 6b 20 7a 73 68 20 74 6f | can lin|k zsh to|
|00004eb0| 20 2d 7a 73 68 20 28 65 | 2e 67 2e 20 62 79 20 60 | -zsh (e|.g. by `|
|00004ec0| 6c 6e 20 2d 73 20 7e 2f | 62 69 6e 2f 7a 73 68 20 |ln -s ~/|bin/zsh |
|00004ed0| 7e 2f 62 69 6e 2f 2d 7a | 73 68 27 29 20 61 6e 64 |~/bin/-z|sh') and|
|00004ee0| 0a 58 20 20 63 68 61 6e | 67 65 20 74 68 65 20 65 |.X chan|ge the e|
|00004ef0| 78 65 63 20 74 6f 20 60 | 65 78 65 63 20 2d 7a 73 |xec to `|exec -zs|
|00004f00| 68 27 2e 20 20 28 4d 61 | 6b 65 20 73 75 72 65 20 |h'. (Ma|ke sure |
|00004f10| 2d 7a 73 68 20 69 73 20 | 69 6e 20 79 6f 75 72 20 |-zsh is |in your |
|00004f20| 70 61 74 68 2e 29 0a 58 | 20 20 54 68 69 73 20 68 |path.).X| This h|
|00004f30| 61 73 20 74 68 65 20 73 | 61 6d 65 20 65 66 66 65 |as the s|ame effe|
|00004f40| 63 74 20 61 73 20 74 68 | 65 20 60 2d 6c 27 20 6f |ct as th|e `-l' o|
|00004f50| 70 74 69 6f 6e 2e 0a 58 | 0a 58 0a 58 31 35 29 20 |ption..X|.X.X15) |
|00004f60| 57 68 61 74 20 62 75 67 | 73 20 61 72 65 20 63 75 |What bug|s are cu|
|00004f70| 72 72 65 6e 74 6c 79 20 | 6b 6e 6f 77 6e 20 61 6e |rrently |known an|
|00004f80| 64 20 75 6e 66 69 78 65 | 64 3f 0a 58 0a 58 20 20 |d unfixe|d?.X.X |
|00004f90| 48 65 72 65 20 61 72 65 | 20 73 6f 6d 65 20 6f 66 |Here are| some of|
|00004fa0| 20 74 68 65 20 6d 6f 72 | 65 20 77 65 6c 6c 2d 6b | the mor|e well-k|
|00004fb0| 6e 6f 77 6e 20 6f 6e 65 | 73 2c 20 76 65 72 79 20 |nown one|s, very |
|00004fc0| 72 6f 75 67 68 6c 79 20 | 69 6e 20 64 65 63 72 65 |roughly |in decre|
|00004fd0| 61 73 69 6e 67 0a 58 20 | 20 6f 72 64 65 72 20 6f |asing.X | order o|
|00004fe0| 66 20 73 69 67 6e 69 66 | 69 63 61 6e 63 65 2e 20 |f signif|icance. |
|00004ff0| 20 41 20 66 75 6c 6c 65 | 72 20 62 75 67 20 6c 69 | A fulle|r bug li|
|00005000| 73 74 20 69 73 20 6e 6f | 77 20 6d 61 69 6e 74 61 |st is no|w mainta|
|00005010| 69 6e 65 64 20 62 79 20 | 43 61 72 6c 6f 73 0a 58 |ined by |Carlos.X|
|00005020| 20 20 43 61 72 76 61 6c | 68 6f 20 3c 63 61 72 6c | Carval|ho <carl|
|00005030| 6f 73 40 73 6e 66 65 70 | 31 2e 69 66 2e 75 73 70 |os@snfep|1.if.usp|
|00005040| 2e 62 72 3e 2e 20 4d 61 | 6e 79 20 6f 66 20 74 68 |.br>. Ma|ny of th|
|00005050| 65 73 65 20 63 61 6e 20 | 61 6c 73 6f 20 62 65 20 |ese can |also be |
|00005060| 63 6f 75 6e 74 65 64 0a | 58 20 20 61 67 61 69 6e |counted.|X again|
|00005070| 73 74 20 64 69 66 66 65 | 72 65 6e 63 65 73 20 66 |st diffe|rences f|
|00005080| 72 6f 6d 20 6b 73 68 20 | 69 6e 20 71 75 65 73 74 |rom ksh |in quest|
|00005090| 69 6f 6e 20 35 29 2e 20 | 20 42 75 67 73 20 6d 61 |ion 5). | Bugs ma|
|000050a0| 72 6b 65 64 20 5b 32 2e | 34 5d 20 61 72 65 0a 58 |rked [2.|4] are.X|
|000050b0| 20 20 66 69 78 65 64 20 | 69 6e 20 70 61 74 63 68 | fixed |in patch|
|000050c0| 65 73 20 77 68 69 63 68 | 20 73 68 6f 75 6c 64 20 |es which| should |
|000050d0| 61 70 70 65 61 72 20 69 | 6e 20 65 61 72 6c 79 20 |appear i|n early |
|000050e0| 76 65 72 73 69 6f 6e 73 | 20 6f 66 20 74 68 65 20 |versions| of the |
|000050f0| 6e 65 78 74 0a 58 20 20 | 72 65 6c 65 61 73 65 2e |next.X |release.|
|00005100| 0a 58 0a 58 20 20 55 6e | 73 65 74 74 69 6e 67 20 |.X.X Un|setting |
|00005110| 6d 75 6c 74 69 70 6c 79 | 2d 6e 61 6d 65 64 20 66 |multiply|-named f|
|00005120| 75 6e 63 74 69 6f 6e 73 | 20 76 69 61 20 61 20 6e |unctions| via a n|
|00005130| 61 6d 65 20 6f 74 68 65 | 72 20 74 68 61 6e 20 74 |ame othe|r than t|
|00005140| 68 65 20 66 69 72 73 74 | 0a 58 20 20 20 20 63 72 |he first|.X cr|
|00005150| 61 73 68 65 73 20 74 68 | 65 20 73 68 65 6c 6c 2e |ashes th|e shell.|
|00005160| 20 5b 32 2e 34 5d 0a 58 | 20 20 46 75 6e 63 74 69 | [2.4].X| Functi|
|00005170| 6f 6e 73 20 61 72 65 20 | 61 20 62 69 74 20 68 61 |ons are |a bit ha|
|00005180| 6c 66 2d 68 65 61 72 74 | 65 64 20 61 62 6f 75 74 |lf-heart|ed about|
|00005190| 20 6c 6f 63 61 6c 20 76 | 61 72 69 61 62 6c 65 73 | local v|ariables|
|000051a0| 2e 20 5b 32 2e 34 5d 0a | 58 20 20 60 72 65 74 75 |. [2.4].|X `retu|
|000051b0| 72 6e 27 20 69 6e 20 61 | 20 74 72 61 70 20 73 69 |rn' in a| trap si|
|000051c0| 6d 70 6c 79 20 72 65 74 | 75 72 6e 73 20 66 72 6f |mply ret|urns fro|
|000051d0| 6d 20 74 68 65 20 74 72 | 61 70 2e 20 5b 32 2e 34 |m the tr|ap. [2.4|
|000051e0| 5d 0a 58 20 20 60 72 65 | 74 75 72 6e 27 20 69 6e |].X `re|turn' in|
|000051f0| 20 61 20 73 68 65 6c 6c | 20 73 63 72 69 70 74 20 | a shell| script |
|00005200| 73 68 6f 75 6c 64 20 61 | 63 74 20 61 73 20 60 65 |should a|ct as `e|
|00005210| 78 69 74 27 2e 0a 58 20 | 20 50 69 70 65 6c 69 6e |xit'..X | Pipelin|
|00005220| 65 73 20 65 6e 64 69 6e | 67 20 69 6e 20 61 20 77 |es endin|g in a w|
|00005230| 68 69 6c 65 2f 75 6e 74 | 69 6c 2f 66 6f 72 20 6c |hile/unt|il/for l|
|00005240| 6f 6f 70 20 61 72 65 20 | 75 6e 69 6e 74 65 72 72 |oop are |uninterr|
|00005250| 75 70 74 69 62 6c 65 2e | 0a 58 20 20 43 65 72 74 |uptible.|.X Cert|
|00005260| 61 69 6e 20 62 75 69 6c | 74 2d 69 6e 73 20 77 6f |ain buil|t-ins wo|
|00005270| 6e 27 74 20 61 6c 6c 6f | 77 20 74 68 65 20 60 56 |n't allo|w the `V|
|00005280| 41 52 3d 76 61 6c 75 65 | 20 63 6f 6d 6d 61 6e 64 |AR=value| command|
|00005290| 20 2e 2e 2e 27 20 61 73 | 73 69 67 6e 6d 65 6e 74 | ...' as|signment|
|000052a0| 2e 0a 58 20 20 54 68 65 | 20 6f 6e 65 73 20 74 68 |..X The| ones th|
|000052b0| 61 74 20 64 6f 20 64 6f | 6e 27 74 20 75 6e 73 65 |at do do|n't unse|
|000052c0| 74 20 56 41 52 20 61 66 | 74 65 72 20 75 73 65 2e |t VAR af|ter use.|
|000052d0| 0a 58 20 20 4b 69 6c 6c | 69 6e 67 20 61 20 63 6f |.X Kill|ing a co|
|000052e0| 6d 6d 61 6e 64 20 73 75 | 62 73 74 69 74 75 74 69 |mmand su|bstituti|
|000052f0| 6f 6e 20 69 6e 20 61 20 | 6c 6f 6f 70 20 64 6f 65 |on in a |loop doe|
|00005300| 73 6e 27 74 20 6b 69 6c | 6c 20 74 68 65 20 6c 6f |sn't kil|l the lo|
|00005310| 6f 70 2e 20 5b 32 2e 34 | 5d 0a 58 20 20 41 73 73 |op. [2.4|].X Ass|
|00005320| 69 67 6d 65 6e 74 73 20 | 69 6e 20 61 20 74 79 70 |igments |in a typ|
|00005330| 65 73 65 74 20 61 72 65 | 20 6f 76 65 72 65 6e 74 |eset are| overent|
|00005340| 68 75 73 69 61 73 74 69 | 63 20 61 62 6f 75 74 20 |husiasti|c about |
|00005350| 74 69 6c 64 65 73 2e 0a | 58 20 20 60 62 69 6e 64 |tildes..|X `bind|
|00005360| 6b 65 79 20 2d 61 20 2d | 5b 65 64 5d 27 20 6d 6f |key -a -|[ed]' mo|
|00005370| 64 69 66 69 65 73 20 74 | 68 65 20 61 6c 74 65 72 |difies t|he alter|
|00005380| 6e 61 74 65 20 6b 65 79 | 6d 61 70 2e 0a 58 20 20 |nate key|map..X |
|00005390| 60 65 63 68 6f 20 20 21 | 2d 32 3a 24 20 21 24 27 |`echo !|-2:$ !$'|
|000053a0| 20 73 75 62 73 74 69 74 | 75 74 65 73 20 21 2d 32 | substit|utes !-2|
|000053b0| 3a 24 20 74 77 69 63 65 | 2e 0a 58 20 20 54 68 65 |:$ twice|..X The|
|000053c0| 20 3a 71 20 6d 6f 64 69 | 66 69 65 72 20 64 6f 65 | :q modi|fier doe|
|000053d0| 73 6e 27 74 20 73 70 6c | 69 74 20 77 6f 72 64 73 |sn't spl|it words|
|000053e0| 20 61 6e 64 20 2d 71 20 | 61 6e 64 20 2d 78 20 64 | and -q |and -x d|
|000053f0| 6f 6e 27 74 20 77 6f 72 | 6b 20 66 6f 72 20 76 61 |on't wor|k for va|
|00005400| 72 69 61 62 6c 65 73 2e | 0a 58 20 20 60 65 63 68 |riables.|.X `ech|
|00005410| 6f 20 2d 6e 20 5e 56 5e | 4a 21 3c 72 65 74 75 72 |o -n ^V^|J!<retur|
|00005420| 6e 3e 27 20 63 61 75 73 | 65 73 20 61 20 73 68 65 |n>' caus|es a she|
|00005430| 6c 6c 20 63 72 61 73 68 | 20 5b 32 2e 34 5d 0a 58 |ll crash| [2.4].X|
|00005440| 20 20 43 6f 6d 6d 61 6e | 64 20 6c 69 6e 65 20 65 | Comman|d line e|
|00005450| 64 69 74 69 6e 67 20 69 | 6e 20 76 69 20 6d 6f 64 |diting i|n vi mod|
|00005460| 65 3a 0a 58 20 20 20 20 | 60 2e 27 20 64 6f 65 73 |e:.X |`.' does|
|00005470| 6e 27 74 20 72 65 70 65 | 61 74 20 60 78 27 20 28 |n't repe|at `x' (|
|00005480| 72 65 70 65 61 74 73 20 | 63 6f 6d 6d 61 6e 64 20 |repeats |command |
|00005490| 62 65 66 6f 72 65 20 60 | 78 27 29 2e 0a 58 20 20 |before `|x')..X |
|000054a0| 20 20 60 75 27 20 63 61 | 6e 20 67 6f 20 70 61 73 | `u' ca|n go pas|
|000054b0| 74 20 6f 72 69 67 69 6e | 61 6c 20 6d 6f 64 69 66 |t origin|al modif|
|000054c0| 69 63 61 74 69 6f 6e 20 | 70 6f 69 6e 74 2e 0a 58 |ication |point..X|
|000054d0| 20 20 20 20 60 2e 27 20 | 64 6f 65 73 6e 27 74 20 | `.' |doesn't |
|000054e0| 72 65 70 65 61 74 20 63 | 6f 75 6e 74 20 66 6f 72 |repeat c|ount for|
|000054f0| 20 60 73 27 2c 20 60 63 | 77 27 2c 20 60 64 77 27 | `s', `c|w', `dw'|
|00005500| 2c 20 60 72 27 20 28 61 | 6e 64 20 6f 74 68 65 72 |, `r' (a|nd other|
|00005510| 73 3f 29 2e 0a 58 20 20 | 49 66 20 61 20 63 6f 6d |s?)..X |If a com|
|00005520| 6d 61 6e 64 20 68 61 73 | 20 62 6f 74 68 20 66 69 |mand has| both fi|
|00005530| 6c 65 20 61 6e 64 20 63 | 6f 6d 6d 61 6e 64 20 63 |le and c|ommand c|
|00005540| 6f 6d 70 6c 65 74 69 6f | 6e 20 65 6e 61 62 6c 65 |ompletio|n enable|
|00005550| 64 2c 0a 58 20 20 20 20 | 63 6f 6d 70 6c 65 74 69 |d,.X |completi|
|00005560| 6f 6e 20 6f 66 20 61 20 | 77 6f 72 64 20 74 68 61 |on of a |word tha|
|00005570| 74 20 69 73 20 61 20 64 | 69 72 65 63 74 6f 72 79 |t is a d|irectory|
|00005580| 20 66 69 6e 64 73 20 6f | 6e 6c 79 20 63 6f 6d 6d | finds o|nly comm|
|00005590| 61 6e 64 73 20 69 6e 0a | 58 20 20 20 20 74 68 65 |ands in.|X the|
|000055a0| 20 64 69 72 65 63 74 6f | 72 79 2c 20 6e 6f 74 20 | directo|ry, not |
|000055b0| 66 69 6c 65 73 20 61 6e | 64 20 63 6f 6d 6d 61 6e |files an|d comman|
|000055c0| 64 73 2e 0a 58 20 20 24 | 5f 20 72 65 74 75 72 6e |ds..X $|_ return|
|000055d0| 73 20 74 68 65 20 6c 61 | 73 74 20 75 6e 65 78 70 |s the la|st unexp|
|000055e0| 61 6e 64 65 64 20 77 6f | 72 64 20 66 72 6f 6d 20 |anded wo|rd from |
|000055f0| 74 68 65 20 70 72 65 76 | 69 6f 75 73 20 6c 69 6e |the prev|ious lin|
|00005600| 65 20 28 6e 6f 74 20 63 | 6f 6d 6d 61 6e 64 29 2e |e (not c|ommand).|
|00005610| 0a 58 20 20 41 75 74 6f | 63 64 20 77 6f 6e 27 74 |.X Auto|cd won't|
|00005620| 20 75 73 65 20 67 6c 6f | 62 62 65 64 20 66 69 6c | use glo|bbed fil|
|00005630| 65 6e 61 6d 65 73 20 61 | 6e 64 20 73 6f 6d 65 74 |enames a|nd somet|
|00005640| 69 6d 65 73 20 72 65 66 | 75 73 65 73 20 74 6f 20 |imes ref|uses to |
|00005650| 77 6f 72 6b 2e 0a 58 20 | 20 60 69 66 20 28 28 20 |work..X | `if (( |
|00005660| 31 20 29 29 20 63 6f 6d | 6d 61 6e 64 27 20 61 6e |1 )) com|mand' an|
|00005670| 64 20 60 69 66 20 28 28 | 20 31 20 29 29 20 7b 20 |d `if ((| 1 )) { |
|00005680| 2e 2e 2e 27 20 64 6f 20 | 6e 6f 74 20 77 6f 72 6b |...' do |not work|
|00005690| 0a 58 20 20 20 20 28 61 | 6e 64 20 72 65 6c 61 74 |.X (a|nd relat|
|000056a0| 65 64 20 73 79 6e 74 61 | 78 20 70 72 6f 62 6c 65 |ed synta|x proble|
|000056b0| 6d 73 29 2e 0a 58 20 20 | 54 68 65 20 72 6d 73 74 |ms)..X |The rmst|
|000056c0| 61 72 20 66 65 61 74 75 | 72 65 20 64 6f 65 73 6e |ar featu|re doesn|
|000056d0| 27 74 20 68 61 6e 64 6c | 65 20 73 68 65 6c 6c 20 |'t handl|e shell |
|000056e0| 76 61 72 69 61 62 6c 65 | 73 20 70 72 6f 70 65 72 |variable|s proper|
|000056f0| 6c 79 2e 0a 58 0a 58 0a | 58 31 36 29 20 57 68 65 |ly..X.X.|X16) Whe|
|00005700| 72 65 20 64 6f 20 49 20 | 72 65 70 6f 72 74 20 62 |re do I |report b|
|00005710| 75 67 73 2c 20 67 65 74 | 20 6d 6f 72 65 20 69 6e |ugs, get| more in|
|00005720| 66 6f 20 2f 20 77 68 6f | 27 73 20 77 6f 72 6b 69 |fo / who|'s worki|
|00005730| 6e 67 20 6f 6e 20 7a 73 | 68 3f 0a 58 0a 58 20 20 |ng on zs|h?.X.X |
|00005740| 5a 73 68 20 69 73 20 6e | 6f 77 20 6d 61 69 6e 74 |Zsh is n|ow maint|
|00005750| 61 69 6e 65 64 20 62 79 | 20 61 20 6d 6f 74 6c 65 |ained by| a motle|
|00005760| 79 20 63 6f 6c 6c 65 63 | 74 69 6f 6e 20 6f 66 20 |y collec|tion of |
|00005770| 65 6e 74 68 75 73 69 61 | 73 74 73 20 77 68 6f 0a |enthusia|sts who.|
|00005780| 58 20 20 73 75 62 73 63 | 72 69 62 65 20 74 6f 20 |X subsc|ribe to |
|00005790| 74 68 65 20 6d 61 69 6c | 69 6e 67 20 6c 69 73 74 |the mail|ing list|
|000057a0| 2c 20 73 6f 20 61 6e 79 | 20 73 75 67 67 65 73 74 |, so any| suggest|
|000057b0| 69 6f 6e 73 2c 20 63 6f | 6d 70 6c 61 69 6e 74 73 |ions, co|mplaints|
|000057c0| 2c 0a 58 20 20 71 75 65 | 73 74 69 6f 6e 73 20 61 |,.X que|stions a|
|000057d0| 6e 64 20 6d 61 74 74 65 | 72 73 20 66 6f 72 20 64 |nd matte|rs for d|
|000057e0| 69 73 63 75 73 73 69 6f | 6e 20 73 68 6f 75 6c 64 |iscussio|n should|
|000057f0| 20 62 65 20 61 64 64 72 | 65 73 73 65 64 20 74 6f | be addr|essed to|
|00005800| 3a 0a 58 09 7a 73 68 2d | 6c 69 73 74 40 63 73 2e |:.X.zsh-|list@cs.|
|00005810| 75 6f 77 2e 65 64 75 2e | 61 75 0a 58 20 20 28 69 |uow.edu.|au.X (i|
|00005820| 66 20 79 6f 75 20 77 61 | 6e 74 20 73 6f 6d 65 6f |f you wa|nt someo|
|00005830| 6e 65 20 74 6f 20 6d 61 | 69 6c 20 79 6f 75 20 64 |ne to ma|il you d|
|00005840| 69 72 65 63 74 6c 79 2c | 20 73 61 79 20 73 6f 29 |irectly,| say so)|
|00005850| 2e 20 20 49 66 20 79 6f | 75 20 77 69 73 68 20 74 |. If yo|u wish t|
|00005860| 6f 0a 58 20 20 73 75 62 | 73 63 72 69 62 65 20 74 |o.X sub|scribe t|
|00005870| 6f 20 74 68 65 20 6d 61 | 69 6c 69 6e 67 20 6c 69 |o the ma|iling li|
|00005880| 73 74 2c 20 61 73 6b 0a | 58 09 7a 73 68 2d 72 65 |st, ask.|X.zsh-re|
|00005890| 71 75 65 73 74 40 63 73 | 2e 75 6f 77 2e 65 64 75 |quest@cs|.uow.edu|
|000058a0| 2e 61 75 0a 58 20 20 77 | 68 69 63 68 20 69 73 20 |.au.X w|hich is |
|000058b0| 69 6e 20 74 68 65 20 68 | 61 6e 64 73 20 6f 66 20 |in the h|ands of |
|000058c0| 50 65 74 65 72 20 47 72 | 61 79 2c 20 77 68 6f 20 |Peter Gr|ay, who |
|000058d0| 61 6c 73 6f 20 72 65 61 | 64 73 20 74 68 65 20 6c |also rea|ds the l|
|000058e0| 69 73 74 2e 20 20 49 74 | 20 69 73 0a 58 20 20 62 |ist. It| is.X b|
|000058f0| 79 20 6e 6f 20 6d 65 61 | 6e 73 20 72 65 73 74 72 |y no mea|ns restr|
|00005900| 69 63 74 65 64 20 74 6f | 20 73 6f 75 72 63 65 2d |icted to| source-|
|00005910| 63 6f 64 65 20 68 61 63 | 6b 65 72 73 2e 0a 58 0a |code hac|kers..X.|
|00005920| 58 0a 58 31 37 29 20 57 | 68 61 74 27 73 20 6f 6e |X.X17) W|hat's on|
|00005930| 20 74 68 65 20 77 69 73 | 68 2d 6c 69 73 74 3f 0a | the wis|h-list?.|
|00005940| 58 0a 58 20 20 60 63 6f | 6d 70 63 74 6c 27 20 74 |X.X `co|mpctl' t|
|00005950| 6f 20 62 65 20 65 6e 68 | 61 6e 63 65 64 20 74 6f |o be enh|anced to|
|00005960| 20 73 68 75 74 20 75 70 | 20 74 63 73 68 2d 75 73 | shut up| tcsh-us|
|00005970| 65 72 73 2e 0a 58 20 20 | 4f 70 74 69 6f 6e 20 66 |ers..X |Option f|
|00005980| 6f 72 20 67 6c 6f 62 20 | 71 75 61 6c 69 66 69 65 |or glob |qualifie|
|00005990| 72 73 20 74 6f 20 66 6f | 6c 6c 6f 77 20 70 65 72 |rs to fo|llow per|
|000059a0| 6c 20 73 79 6e 74 61 78 | 2e 0a 58 20 20 53 65 6c |l syntax|..X Sel|
|000059b0| 65 63 74 69 76 65 20 65 | 78 70 61 6e 73 69 6f 6e |ective e|xpansion|
|000059c0| 20 6f 66 20 68 69 73 74 | 6f 72 79 2c 20 76 61 72 | of hist|ory, var|
|000059d0| 69 61 62 6c 65 73 2c 20 | 67 6c 6f 62 73 20 6f 6e |iables, |globs on|
|000059e0| 20 3c 54 41 42 3e 2e 0a | 58 20 20 4f 70 74 69 6f | <TAB>..|X Optio|
|000059f0| 6e 20 74 6f 20 71 75 6f | 74 65 20 21 2d 68 69 73 |n to quo|te !-his|
|00005a00| 74 6f 72 79 20 6c 65 78 | 69 63 61 6c 6c 79 20 76 |tory lex|ically v|
|00005a10| 69 61 20 27 27 20 62 75 | 74 20 6e 6f 74 20 22 22 |ia '' bu|t not ""|
|00005a20| 20 28 68 61 72 64 29 2e | 0a 58 20 20 42 69 6e 64 | (hard).|.X Bind|
|00005a30| 69 6e 67 20 6f 66 20 65 | 78 74 65 72 6e 61 6c 20 |ing of e|xternal |
|00005a40| 63 6f 6d 6d 61 6e 64 73 | 20 74 6f 20 7a 6c 65 20 |commands| to zle |
|00005a50| 66 75 6e 63 74 69 6f 6e | 73 20 28 61 72 67 2d 70 |function|s (arg-p|
|00005a60| 61 73 73 69 6e 67 20 6d | 65 63 68 61 6e 69 73 6d |assing m|echanism|
|00005a70| 3f 3f 29 2e 0a 58 20 20 | 4b 73 68 20 63 6f 6d 70 |??)..X |Ksh comp|
|00005a80| 61 74 69 62 69 6c 69 74 | 79 20 63 6f 75 6c 64 20 |atibilit|y could |
|00005a90| 62 65 20 69 6d 70 72 6f | 76 65 64 20 69 66 20 72 |be impro|ved if r|
|00005aa0| 65 71 75 69 72 65 64 2e | 0a 58 0a 58 0a 58 41 63 |equired.|.X.X.XAc|
|00005ab0| 6b 6e 6f 77 6c 65 64 67 | 6d 65 6e 74 73 3a 0a 58 |knowledg|ments:.X|
|00005ac0| 0a 58 54 68 61 6e 6b 73 | 20 74 6f 20 7a 73 68 2d |.XThanks| to zsh-|
|00005ad0| 6c 69 73 74 2c 20 69 6e | 20 70 61 72 74 69 63 75 |list, in| particu|
|00005ae0| 6c 61 72 20 42 61 72 74 | 20 53 63 68 61 65 66 65 |lar Bart| Schaefe|
|00005af0| 72 2c 20 66 6f 72 20 73 | 75 67 67 65 73 74 69 6f |r, for s|uggestio|
|00005b00| 6e 73 0a 58 72 65 67 61 | 72 64 69 6e 67 20 74 68 |ns.Xrega|rding th|
|00005b10| 69 73 20 64 6f 63 75 6d | 65 6e 74 3b 20 74 68 61 |is docum|ent; tha|
|00005b20| 6e 6b 73 20 74 6f 20 4a | 69 6d 20 4d 61 74 74 73 |nks to J|im Matts|
|00005b30| 6f 6e 20 66 6f 72 20 68 | 69 73 20 68 61 72 64 20 |on for h|is hard |
|00005b40| 77 6f 72 6b 20 61 73 0a | 58 61 72 63 68 69 76 69 |work as.|Xarchivi|
|00005b50| 73 74 2e 0a 45 4e 44 5f | 4f 46 5f 46 49 4c 45 0a |st..END_|OF_FILE.|
|00005b60| 20 20 69 66 20 74 65 73 | 74 20 32 31 35 37 38 20 | if tes|t 21578 |
|00005b70| 2d 6e 65 20 60 77 63 20 | 2d 63 20 3c 27 46 41 51 |-ne `wc |-c <'FAQ|
|00005b80| 27 60 3b 20 74 68 65 6e | 0a 20 20 20 20 65 63 68 |'`; then|. ech|
|00005b90| 6f 20 73 68 61 72 3a 20 | 5c 22 27 46 41 51 27 5c |o shar: |\"'FAQ'\|
|00005ba0| 22 20 75 6e 70 61 63 6b | 65 64 20 77 69 74 68 20 |" unpack|ed with |
|00005bb0| 77 72 6f 6e 67 20 73 69 | 7a 65 21 0a 20 20 66 69 |wrong si|ze!. fi|
|00005bc0| 0a 20 20 23 20 65 6e 64 | 20 6f 66 20 27 46 41 51 |. # end| of 'FAQ|
|00005bd0| 27 0a 66 69 0a 69 66 20 | 74 65 73 74 20 2d 66 20 |'.fi.if |test -f |
|00005be0| 27 68 65 6c 70 2f 70 75 | 73 68 64 27 20 2d 61 20 |'help/pu|shd' -a |
|00005bf0| 22 24 7b 31 7d 22 20 21 | 3d 20 22 2d 63 22 20 3b |"${1}" !|= "-c" ;|
|00005c00| 20 74 68 65 6e 20 0a 20 | 20 65 63 68 6f 20 73 68 | then . | echo sh|
|00005c10| 61 72 3a 20 57 69 6c 6c | 20 6e 6f 74 20 63 6c 6f |ar: Will| not clo|
|00005c20| 62 62 65 72 20 65 78 69 | 73 74 69 6e 67 20 66 69 |bber exi|sting fi|
|00005c30| 6c 65 20 5c 22 27 68 65 | 6c 70 2f 70 75 73 68 64 |le \"'he|lp/pushd|
|00005c40| 27 5c 22 0a 65 6c 73 65 | 0a 20 20 65 63 68 6f 20 |'\".else|. echo |
|00005c50| 73 68 61 72 3a 20 45 78 | 74 72 61 63 74 69 6e 67 |shar: Ex|tracting|
|00005c60| 20 5c 22 27 68 65 6c 70 | 2f 70 75 73 68 64 27 5c | \"'help|/pushd'\|
|00005c70| 22 20 5c 28 31 33 30 35 | 20 63 68 61 72 61 63 74 |" \(1305| charact|
|00005c80| 65 72 73 5c 29 0a 20 20 | 73 65 64 20 22 73 2f 5e |ers\). |sed "s/^|
|00005c90| 58 2f 2f 22 20 3e 27 68 | 65 6c 70 2f 70 75 73 68 |X//" >'h|elp/push|
|00005ca0| 64 27 20 3c 3c 27 45 4e | 44 5f 4f 46 5f 46 49 4c |d' <<'EN|D_OF_FIL|
|00005cb0| 45 27 0a 58 20 20 20 20 | 20 70 75 73 68 64 20 5b |E'.X | pushd [|
|00005cc0| 20 61 72 67 20 5d 0a 58 | 20 20 20 20 20 70 75 73 | arg ].X| pus|
|00005cd0| 68 64 20 6f 6c 64 20 6e | 65 77 0a 58 20 20 20 20 |hd old n|ew.X |
|00005ce0| 20 70 75 73 68 64 20 2b | 2d 6e 0a 58 20 20 20 20 | pushd +|-n.X |
|00005cf0| 20 20 20 20 20 20 43 68 | 61 6e 67 65 20 74 68 65 | Ch|ange the|
|00005d00| 20 63 75 72 72 65 6e 74 | 20 64 69 72 65 63 74 6f | current| directo|
|00005d10| 72 79 2c 20 61 6e 64 20 | 70 75 73 68 20 74 68 65 |ry, and |push the|
|00005d20| 20 6f 6c 64 20 20 63 75 | 72 72 65 6e 74 0a 58 20 | old cu|rrent.X |
|00005d30| 20 20 20 20 20 20 20 20 | 20 64 69 72 65 63 74 6f | | directo|
|00005d40| 72 79 20 6f 6e 74 6f 20 | 74 68 65 20 64 69 72 65 |ry onto |the dire|
|00005d50| 63 74 6f 72 79 20 73 74 | 61 63 6b 2e 20 20 49 6e |ctory st|ack. In|
|00005d60| 20 74 68 65 20 66 69 72 | 73 74 20 66 6f 72 6d 2c | the fir|st form,|
|00005d70| 0a 58 20 20 20 20 20 20 | 20 20 20 20 63 68 61 6e |.X | chan|
|00005d80| 67 65 20 74 68 65 20 63 | 75 72 72 65 6e 74 20 64 |ge the c|urrent d|
|00005d90| 69 72 65 63 74 6f 72 79 | 20 74 6f 20 61 72 67 2e |irectory| to arg.|
|00005da0| 20 20 20 49 66 20 20 61 | 72 67 20 20 69 73 20 20 | If a|rg is |
|00005db0| 6e 6f 74 0a 58 20 20 20 | 20 20 20 20 20 20 20 73 |not.X | s|
|00005dc0| 70 65 63 69 66 69 65 64 | 2c 20 20 63 68 61 6e 67 |pecified|, chang|
|00005dd0| 65 20 74 6f 20 74 68 65 | 20 73 65 63 6f 6e 64 20 |e to the| second |
|00005de0| 64 69 72 65 63 74 6f 72 | 79 20 6f 6e 20 74 68 65 |director|y on the|
|00005df0| 20 73 74 61 63 6b 0a 58 | 20 20 20 20 20 20 20 20 | stack.X| |
|00005e00| 20 20 28 74 68 61 74 20 | 69 73 2c 20 65 78 63 68 | (that |is, exch|
|00005e10| 61 6e 67 65 20 74 68 65 | 20 74 6f 70 20 74 77 6f |ange the| top two|
|00005e20| 20 65 6e 74 72 69 65 73 | 29 2c 20 6f 72 20 20 63 | entries|), or c|
|00005e30| 68 61 6e 67 65 20 20 74 | 6f 0a 58 20 20 20 20 20 |hange t|o.X |
|00005e40| 20 20 20 20 20 74 68 65 | 20 76 61 6c 75 65 20 6f | the| value o|
|00005e50| 66 20 48 4f 4d 45 20 69 | 66 20 74 68 65 20 50 55 |f HOME i|f the PU|
|00005e60| 53 48 44 5f 54 4f 5f 48 | 4f 4d 45 20 6f 70 74 69 |SHD_TO_H|OME opti|
|00005e70| 6f 6e 20 69 73 20 73 65 | 74 20 6f 72 0a 58 20 20 |on is se|t or.X |
|00005e80| 20 20 20 20 20 20 20 20 | 69 66 20 74 68 65 72 65 | |if there|
|00005e90| 20 69 73 20 6f 6e 6c 79 | 20 6f 6e 65 20 65 6e 74 | is only| one ent|
|00005ea0| 72 79 20 6f 6e 20 74 68 | 65 20 73 74 61 63 6b 2e |ry on th|e stack.|
|00005eb0| 20 20 49 66 20 61 72 67 | 20 69 73 20 20 2d 2c 0a | If arg| is -,.|
|00005ec0| 58 20 20 20 20 20 20 20 | 20 20 20 63 68 61 6e 67 |X | chang|
|00005ed0| 65 20 20 74 6f 20 74 68 | 65 20 76 61 6c 75 65 20 |e to th|e value |
|00005ee0| 6f 66 20 4f 4c 44 50 57 | 44 2c 20 74 68 65 20 70 |of OLDPW|D, the p|
|00005ef0| 72 65 76 69 6f 75 73 20 | 64 69 72 65 63 74 6f 72 |revious |director|
|00005f00| 79 2e 0a 58 20 20 20 20 | 20 20 20 20 20 20 49 66 |y..X | If|
|00005f10| 20 61 20 64 69 72 65 63 | 74 6f 72 79 20 6e 61 6d | a direc|tory nam|
|00005f20| 65 64 20 61 72 67 20 69 | 73 20 6e 6f 74 20 66 6f |ed arg i|s not fo|
|00005f30| 75 6e 64 20 20 69 6e 20 | 20 74 68 65 20 20 63 75 |und in | the cu|
|00005f40| 72 72 65 6e 74 0a 58 20 | 20 20 20 20 20 20 20 20 |rrent.X | |
|00005f50| 20 64 69 72 65 63 74 6f | 72 79 20 61 6e 64 20 61 | directo|ry and a|
|00005f60| 72 67 20 64 6f 65 73 20 | 6e 6f 74 20 63 6f 6e 74 |rg does |not cont|
|00005f70| 61 69 6e 20 61 20 73 6c | 61 73 68 2c 20 73 65 61 |ain a sl|ash, sea|
|00005f80| 72 63 68 20 65 61 63 68 | 0a 58 20 20 20 20 20 20 |rch each|.X |
|00005f90| 20 20 20 20 63 6f 6d 70 | 6f 6e 65 6e 74 20 6f 66 | comp|onent of|
|00005fa0| 20 74 68 65 20 73 68 65 | 6c 6c 20 70 61 72 61 6d | the she|ll param|
|00005fb0| 65 74 65 72 20 63 64 70 | 61 74 68 2e 20 20 49 66 |eter cdp|ath. If|
|00005fc0| 20 74 68 65 20 6f 70 74 | 69 6f 6e 0a 58 20 20 20 | the opt|ion.X |
|00005fd0| 20 20 20 20 20 20 20 43 | 44 41 42 4c 45 56 41 52 | C|DABLEVAR|
|00005fe0| 53 20 20 69 73 20 20 73 | 65 74 2c 20 20 61 6e 64 |S is s|et, and|
|00005ff0| 20 20 61 20 70 61 72 61 | 6d 65 74 65 72 20 6e 61 | a para|meter na|
|00006000| 6d 65 64 20 61 72 67 20 | 65 78 69 73 74 73 0a 58 |med arg |exists.X|
|00006010| 20 20 20 20 20 20 20 20 | 20 20 77 68 6f 73 65 20 | | whose |
|00006020| 76 61 6c 75 65 20 62 65 | 67 69 6e 73 20 77 69 74 |value be|gins wit|
|00006030| 68 20 61 20 73 6c 61 73 | 68 2c 20 74 72 65 61 74 |h a slas|h, treat|
|00006040| 20 69 74 73 20 76 61 6c | 75 65 20 61 73 20 74 68 | its val|ue as th|
|00006050| 65 0a 58 20 20 20 20 20 | 20 20 20 20 20 64 69 72 |e.X | dir|
|00006060| 65 63 74 6f 72 79 2e 20 | 20 20 49 66 20 74 68 65 |ectory. | If the|
|00006070| 20 6f 70 74 69 6f 6e 20 | 50 55 53 48 44 5f 53 49 | option |PUSHD_SI|
|00006080| 4c 45 4e 54 20 69 73 20 | 6e 6f 74 20 73 65 74 2c |LENT is |not set,|
|00006090| 20 74 68 65 0a 58 20 20 | 20 20 20 20 20 20 20 20 | the.X | |
|000060a0| 64 69 72 65 63 74 6f 72 | 79 20 73 74 61 63 6b 20 |director|y stack |
|000060b0| 77 69 6c 6c 20 62 65 20 | 70 72 69 6e 74 65 64 20 |will be |printed |
|000060c0| 61 66 74 65 72 20 61 20 | 70 75 73 68 64 20 20 69 |after a |pushd i|
|000060d0| 73 20 20 70 65 72 2d 0a | 58 20 20 20 20 20 20 20 |s per-.|X |
|000060e0| 20 20 20 66 6f 72 6d 65 | 64 2e 0a 58 0a 58 20 20 | forme|d..X.X |
|000060f0| 20 20 20 20 20 20 20 20 | 54 68 65 20 73 65 63 6f | |The seco|
|00006100| 6e 64 20 66 6f 72 6d 20 | 6f 66 20 70 75 73 68 64 |nd form |of pushd|
|00006110| 20 73 75 62 73 74 69 74 | 75 74 65 73 20 74 68 65 | substit|utes the|
|00006120| 20 73 74 72 69 6e 67 20 | 6e 65 77 20 66 6f 72 0a | string |new for.|
|00006130| 58 20 20 20 20 20 20 20 | 20 20 20 74 68 65 20 20 |X | the |
|00006140| 73 74 72 69 6e 67 20 20 | 6f 6c 64 20 20 69 6e 20 |string |old in |
|00006150| 74 68 65 20 6e 61 6d 65 | 20 6f 66 20 74 68 65 20 |the name| of the |
|00006160| 63 75 72 72 65 6e 74 20 | 64 69 72 65 63 74 6f 72 |current |director|
|00006170| 79 2c 0a 58 20 20 20 20 | 20 20 20 20 20 20 61 6e |y,.X | an|
|00006180| 64 20 74 72 69 65 73 20 | 74 6f 20 63 68 61 6e 67 |d tries |to chang|
|00006190| 65 20 74 6f 20 74 68 69 | 73 20 6e 65 77 20 64 69 |e to thi|s new di|
|000061a0| 72 65 63 74 6f 72 79 2e | 0a 58 0a 58 20 20 20 20 |rectory.|.X.X |
|000061b0| 20 20 20 20 20 20 54 68 | 65 20 74 68 69 72 64 20 | Th|e third |
|000061c0| 66 6f 72 6d 20 6f 66 20 | 70 75 73 68 64 20 69 73 |form of |pushd is|
|000061d0| 20 65 71 75 69 76 61 6c | 65 6e 74 20 74 6f 20 70 | equival|ent to p|
|000061e0| 6f 70 64 2e 0a 45 4e 44 | 5f 4f 46 5f 46 49 4c 45 |opd..END|_OF_FILE|
|000061f0| 0a 20 20 69 66 20 74 65 | 73 74 20 31 33 30 35 20 |. if te|st 1305 |
|00006200| 2d 6e 65 20 60 77 63 20 | 2d 63 20 3c 27 68 65 6c |-ne `wc |-c <'hel|
|00006210| 70 2f 70 75 73 68 64 27 | 60 3b 20 74 68 65 6e 0a |p/pushd'|`; then.|
|00006220| 20 20 20 20 65 63 68 6f | 20 73 68 61 72 3a 20 5c | echo| shar: \|
|00006230| 22 27 68 65 6c 70 2f 70 | 75 73 68 64 27 5c 22 20 |"'help/p|ushd'\" |
|00006240| 75 6e 70 61 63 6b 65 64 | 20 77 69 74 68 20 77 72 |unpacked| with wr|
|00006250| 6f 6e 67 20 73 69 7a 65 | 21 0a 20 20 66 69 0a 20 |ong size|!. fi. |
|00006260| 20 23 20 65 6e 64 20 6f | 66 20 27 68 65 6c 70 2f | # end o|f 'help/|
|00006270| 70 75 73 68 64 27 0a 66 | 69 0a 69 66 20 74 65 73 |pushd'.f|i.if tes|
|00006280| 74 20 2d 66 20 27 73 72 | 63 2f 7a 6c 65 5f 74 72 |t -f 'sr|c/zle_tr|
|00006290| 69 63 6b 79 2e 63 27 20 | 2d 61 20 22 24 7b 31 7d |icky.c' |-a "${1}|
|000062a0| 22 20 21 3d 20 22 2d 63 | 22 20 3b 20 74 68 65 6e |" != "-c|" ; then|
|000062b0| 20 0a 20 20 65 63 68 6f | 20 73 68 61 72 3a 20 57 | . echo| shar: W|
|000062c0| 69 6c 6c 20 6e 6f 74 20 | 63 6c 6f 62 62 65 72 20 |ill not |clobber |
|000062d0| 65 78 69 73 74 69 6e 67 | 20 66 69 6c 65 20 5c 22 |existing| file \"|
|000062e0| 27 73 72 63 2f 7a 6c 65 | 5f 74 72 69 63 6b 79 2e |'src/zle|_tricky.|
|000062f0| 63 27 5c 22 0a 65 6c 73 | 65 0a 20 20 65 63 68 6f |c'\".els|e. echo|
|00006300| 20 73 68 61 72 3a 20 45 | 78 74 72 61 63 74 69 6e | shar: E|xtractin|
|00006310| 67 20 5c 22 27 73 72 63 | 2f 7a 6c 65 5f 74 72 69 |g \"'src|/zle_tri|
|00006320| 63 6b 79 2e 63 27 5c 22 | 20 5c 28 32 38 32 35 38 |cky.c'\"| \(28258|
|00006330| 20 63 68 61 72 61 63 74 | 65 72 73 5c 29 0a 20 20 | charact|ers\). |
|00006340| 73 65 64 20 22 73 2f 5e | 58 2f 2f 22 20 3e 27 73 |sed "s/^|X//" >'s|
|00006350| 72 63 2f 7a 6c 65 5f 74 | 72 69 63 6b 79 2e 63 27 |rc/zle_t|ricky.c'|
|00006360| 20 3c 3c 27 45 4e 44 5f | 4f 46 5f 46 49 4c 45 27 | <<'END_|OF_FILE'|
|00006370| 0a 58 2f 2a 0a 58 20 2a | 0a 58 20 2a 20 7a 6c 65 |.X/*.X *|.X * zle|
|00006380| 5f 74 72 69 63 6b 79 2e | 63 20 2d 20 65 78 70 61 |_tricky.|c - expa|
|00006390| 6e 73 69 6f 6e 20 61 6e | 64 20 63 6f 6d 70 6c 65 |nsion an|d comple|
|000063a0| 74 69 6f 6e 0a 58 20 2a | 0a 58 20 2a 20 54 68 69 |tion.X *|.X * Thi|
|000063b0| 73 20 66 69 6c 65 20 69 | 73 20 70 61 72 74 20 6f |s file i|s part o|
|000063c0| 66 20 7a 73 68 2c 20 74 | 68 65 20 5a 20 73 68 65 |f zsh, t|he Z she|
|000063d0| 6c 6c 2e 0a 58 20 2a 0a | 58 20 2a 20 54 68 69 73 |ll..X *.|X * This|
|000063e0| 20 73 6f 66 74 77 61 72 | 65 20 69 73 20 43 6f 70 | softwar|e is Cop|
|000063f0| 79 72 69 67 68 74 20 31 | 39 39 32 20 62 79 20 50 |yright 1|992 by P|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.