aboutsummaryrefslogtreecommitdiffhomepage
path: root/expand.c
Commit message (Collapse)AuthorAge
* Fifth phase of using a real struct for passing around completions - make ↵Gravatar axel2007-02-24
| | | | | | expand.c and wildcard.c use the struct internally. This makes all completion code use the new struct. darcs-hash:20070224081131-ac50b-aba4ff255c6dc1ce9ad375d6cd1acde919c7cbd6.gz
* Fourth phase of using a real struct for passing around completions - make ↵Gravatar axel2007-02-19
| | | | | | expand_string return a completion_t struct. Also make the reader sort and remove duplicates again darcs-hash:20070218232520-ac50b-e23339ec5bba673681eced110e1b0b344eb5d976.gz
* Make command specific completions handle quoted and otherwise escaped tokens ↵Gravatar axel2007-01-19
| | | | | | better by making sure that the output from the commandline builtin is properly unescaped darcs-hash:20070118162700-ac50b-cd93d9a6aff5bb7629a790d60b241000eb1d0ac0.gz
* Make it possible to cancel a long-winded wildcard match by pressing ^CGravatar axel2007-01-10
| | | | darcs-hash:20070109164705-ac50b-d8bf2c22e9ecb6bccec6892da266016dcae79a4c.gz
* Check for errors during string to integer conversion in various placesGravatar axel2007-01-09
| | | | darcs-hash:20070109032005-ac50b-29514c9c8c19c70b7cfe7670a5c74899f316931f.gz
* Make tab completion of process expansion consider other processes than those ↵Gravatar axel2006-12-14
| | | | | | owned by the shell. Also makes tab completion of process expansion properly handle paths in command names darcs-hash:20061214115811-ac50b-8569bcd30f97fe505dc1e7f2596d2fbd23f31525.gz
* Make failed process expansions expand to zero arguments, not to the original ↵Gravatar axel2006-10-20
| | | | | | string darcs-hash:20061019154127-ac50b-86975e62d9947819862a98e7b6fff3ff630f26b7.gz
* Fix a number of bugs found using the warnings generated by earlier patchGravatar axel2006-10-20
| | | | darcs-hash:20061019153603-ac50b-4efb1ad1fe2cbe693a921648a0616a3d258d7933.gz
* Make it possible to save a function when defining it using the -S switchGravatar axel2006-09-09
| | | | darcs-hash:20060908141241-ac50b-69a055a1e791e04e2b1208a5c36b9bb22c854c12.gz
* Allow slicing of command substitution outputGravatar axel2006-08-24
| | | | darcs-hash:20060824133904-ac50b-fbc43cf30d8eb15e50343b786af77f85fb0b8d4e.gz
* Ignore return code of exec_subshell when doing command substitutionGravatar axel2006-08-24
| | | | darcs-hash:20060824005217-ac50b-9de976e1fe2d396b08b59619e46669bad6598ec2.gz
* Fix incorrect usage of the term subshell when command substitution was meantGravatar axel2006-08-23
| | | | darcs-hash:20060822143831-ac50b-cb5267a6434adcbd5bafb452d688bee06c23d4d6.gz
* Rearrange includes so that config.h is always the first file to be includedGravatar axel2006-08-11
| | | | darcs-hash:20060811011835-ac50b-847fc790288e3bb3f3a0ee7734ff278d2dc65bef.gz
* Move over a few more objects to the new array_list functionsGravatar axel2006-08-01
| | | | darcs-hash:20060731165511-ac50b-7858829e6a612e0c737d82d3d71d6833dc97f078.gz
* Fix bug when using same array index more than once in a single array ↵Gravatar axel2006-08-01
| | | | | | expansion, e.g. $PATH[1 1 1] darcs-hash:20060731164816-ac50b-d3fc56b425035a4cbcf93a91435f9df9ca5997ac.gz
* Minor code edits. Use CHECK instead of a few error messages, add a few ↵Gravatar axel2006-07-21
| | | | | | comments, etc. darcs-hash:20060721010831-ac50b-e9ad82a3885969f9a43e6219523e2bd1867e26ed.gz
* Make error message for ${foo}-type errors nicerGravatar axel2006-07-21
| | | | darcs-hash:20060720233319-ac50b-a5ffbe91b3c7dceba9f0f5e67a6e044fc5508f47.gz
* Minor duplicate code removalGravatar axel2006-07-20
| | | | darcs-hash:20060720130246-ac50b-b41daebb302e1cbadf2a4cf812d936edbda85926.gz
* Remove translate.c. The gettext fallback functionality is moved to ↵Gravatar axel2006-07-20
| | | | | | fallback.c, the wide wrapper is moved to wutil.c darcs-hash:20060719225549-ac50b-0a55e805b04f4fe0afa99ea580901d62f39cdef5.gz
* Switch from die_mem function to DIE_MEM macro in order to be able to give a ↵Gravatar axel2006-07-03
| | | | | | line and file for the OOM message darcs-hash:20060703103957-ac50b-8d7a860d931fd087f6d1759bc1e934dba1cfefe2.gz
* Update input validation. Always use the magic CHECK macro, which prints an ↵Gravatar axel2006-06-21
| | | | | | error message including instructions on how to report this problem. darcs-hash:20060621004836-ac50b-a47f296634eda0c469eb39034603015b1ad7ab5c.gz
* Large number of sourcecode comment edits, and some minor code polishGravatar axel2006-06-20
| | | | darcs-hash:20060620005010-ac50b-eaeae9a6242a37c1e34831e1a0b2ee2b4e7a012e.gz
* Make braces expand right-to-left, to make syntax more consistentGravatar axel2006-06-18
| | | | darcs-hash:20060617142652-ac50b-3c6ca24e37ae723fea6e74d1e4a9c66fd2f60c50.gz
* Add support for hishlighting potentially valid paths - default behaviour is ↵Gravatar axel2006-06-14
| | | | | | to underline them darcs-hash:20060614132240-ac50b-448a4f8c43007262876d1ab6b52480e46b0e2981.gz
* Drop most 'const's from function prototypesGravatar axel2006-06-13
| | | | darcs-hash:20060612214742-ac50b-9b0801e8a7c07d6ab3f0acf569e1d6eb1eeb3f0e.gz
* Make it possible to specify scope of a variable to be erased or tested. Also ↵Gravatar axel2006-06-05
| | | | | | make sure set exits with a non-zero exit status when erasing fails. darcs-hash:20060604201451-ac50b-4ea0212c513b33be40559dfe8d65c1446c53f682.gz
* Add support for negative indices in arrays. Negative indices count from the ↵Gravatar axel2006-06-04
| | | | | | end of an array, so -4 is the fourth index from the end darcs-hash:20060604093532-ac50b-6e22b2f2ccfe94375fe4c32e41ccec08ca501744.gz
* Fix some minor 64-bit uncleanlieness - thanks to James AnthillGravatar axel2006-06-02
| | | | darcs-hash:20060601194231-ac50b-a6b9b94379ba1d5bb6c61f7fad4652c8f748b25f.gz
* Rename function expand_variable_array to tokenize_variable_array and move it ↵Gravatar axel2006-05-29
| | | | | | from expand.c to common.c, since it is used by fish_pager, which should not depend on expand.o darcs-hash:20060529111342-ac50b-315d7dcf04e05fa8f32e16801e6793ac4e4e022e.gz
* Add validator check to make sure the second argument to 'for' is 'in'Gravatar axel2006-05-22
| | | | darcs-hash:20060521221604-ac50b-5bc4ce217a08304f68b97b20e908ea1279fe26e9.gz
* Rewrite small amount of code in parameter expansion to use wide character ↵Gravatar axel2006-05-22
| | | | | | strings, not narrow darcs-hash:20060521214601-ac50b-bb3937f5abd2780a7ecf8ab13975a0f6b622323f.gz
* Major update to the ahead-of-time syntax checkerGravatar axel2006-05-22
| | | | darcs-hash:20060521192524-ac50b-48713f826558e66ef21046d1bb779623cc2fd97a.gz
* Make job id numbering start from 1, not 0Gravatar axel2006-04-28
| | | | darcs-hash:20060428132137-ac50b-8e5adcdbc18ad7627b66e9129a13b037a669dd02.gz
* Drop all calls to wcsncpyGravatar axel2006-04-13
| | | | darcs-hash:20060413121851-ac50b-1f479b96b3aa1050a30e9ee0ed27cc107ce2bc45.gz
* Move all fallbacks for standard and not-so-standard unix functions to ↵Gravatar axel2006-02-28
| | | | | | fallback.c, in order to have a one-stop place to look for such functions darcs-hash:20060228131716-ac50b-0832193dbcaf7191dcb24456dc40f2e861a1382e.gz
* Add some input validation code to various functionsGravatar axel2006-02-23
| | | | darcs-hash:20060222154152-ac50b-608032284165f099beecd1cd4f7c6bb2b45df432.gz
* Add missing translation stringGravatar axel2006-02-14
| | | | darcs-hash:20060214114804-ac50b-1ce10e7613ebec38a283cd6f6f8ad08397cec529.gz
* Minor hallocificationsGravatar axel2006-02-13
| | | | darcs-hash:20060212190301-ac50b-c15b9a8c6c2897189c4343946d9bd115eefb4972.gz
* Optimizations of how variable expansion implementationGravatar axel2006-02-12
| | | | darcs-hash:20060212112930-ac50b-9b8bb640ef1a5bd14230ecd276167a80d6d986c9.gz
* Registered wrong string with halloc in expand_one, causing potential crash.Gravatar axel2006-02-10
| | | | darcs-hash:20060210003539-ac50b-523cbc848435b7f2b4239cc83da897cc65c00c1c.gz
* Another halloc:ification of fish. Halloc has been extended to allow ↵Gravatar axel2006-02-10
| | | | | | registering function calls, this has allowed the creation of halloc-handled arraylists, stringbuffers, etc. More job parsing halloc-ification has reduced the error handling code to only a shadow of it's former self darcs-hash:20060209155020-ac50b-e119c5293ce2368e252cfc01b98ab7c629fdd678.gz
* Minor tweaks to expand_Variables, fixes rare memory leakGravatar axel2006-02-07
| | | | darcs-hash:20060207114857-ac50b-9b2ecf31106678ec35d888066162bf14605c6003.gz
* Further halloc:ification if fishGravatar axel2006-02-07
| | | | darcs-hash:20060206181101-ac50b-db0aac307a81e7f0677acd15a9f38ff8c7ff36d2.gz
* Minor code cleanup, don't use expand_escape and expand_unescape any moreGravatar axel2006-02-07
| | | | darcs-hash:20060206151552-ac50b-e2229d096926461f643fdcdfc79ef1ff01344a35.gz
* Improve the status builtinGravatar axel2006-01-31
| | | | darcs-hash:20060130195310-ac50b-5da6881a847170242be56555646bbf037218d545.gz
* Add support for calculating completions for arbitrary commands through the ↵Gravatar axel2006-01-31
| | | | | | 'complete' builtin darcs-hash:20060130165150-ac50b-5e2ef3bb0298dd5e1a5d6fbdade314cc73ef36f3.gz
* Fixes to api documentation, added .PHONY to makefile actions, made a few ↵Gravatar axel2006-01-24
| | | | | | private functions static darcs-hash:20060123204014-ac50b-b9d2a10c7f00945b5d9d244cb3b8c1489fe280de.gz
* Error message updateGravatar axel2006-01-21
| | | | darcs-hash:20060121123828-ac50b-bb81b8cf34a09c750a02c15d92bcdae11f4b9bad.gz
* Remove accidental newline in error messageGravatar axel2006-01-18
| | | | darcs-hash:20060117172312-ac50b-5c77d13f879e7da44a97f158d0372e7e536c2c81.gz
* Fix buggy error messages in expand.h and add missing translation commandsGravatar axel2006-01-17
| | | | darcs-hash:20060117124830-ac50b-0981a49f5746ec951ddfb1a3097c5009c1eb0385.gz