aboutsummaryrefslogtreecommitdiffhomepage
path: root/builtin.c
Commit message (Collapse)AuthorAge
* Documentation updates. Fixes a few formating bugs, adds various minor ↵Gravatar axel2006-06-17
| | | | | | missing api documentation, fixes a few typos. Also fixes a few tiny code issues, mostly missing consts, etc darcs-hash:20060617130708-ac50b-cc2ec5aa3e4bfb8e28d7b86441bfb4661f1dd7e7.gz
* Give the 'random' builtin it's own seed state, to keep other users of random ↵Gravatar axel2006-06-15
| | | | | | data from creating a generating a non-deterministic sequence of numbers even if the user manually seeds darcs-hash:20060615103556-ac50b-7865016b4561c7c69afb1ba77f85adeda1da691e.gz
* Major restructuring of the buildsystem, meaning that the documentation ↵Gravatar axel2006-06-13
| | | | | | doesn't needlessly rebuild itself, and the size of the fish binary drops slightly darcs-hash:20060613134328-ac50b-05ae75eb5cc081b680f38e8866fac00a679cc266.gz
* Do not change status when the 'exit' builtin is called with no argumentGravatar axel2006-06-13
| | | | darcs-hash:20060612165137-ac50b-0281941e35c5f8b619460f67d24a89caec475815.gz
* Do not change status when the 'return' builtin is called with no argumentGravatar axel2006-06-13
| | | | darcs-hash:20060612164854-ac50b-5f428c819e8dafb44b591150d1965c5158854781.gz
* Use halloc in a few more places, including the highlight codeGravatar axel2006-06-13
| | | | darcs-hash:20060612141233-ac50b-1c44411dd31cdc31d6ccb226f567c308c4fc0f55.gz
* Minor code edits - add a few braces, a few minor safety checks, etc.Gravatar axel2006-06-09
| | | | darcs-hash:20060608235719-ac50b-bec405da5ae101ff50bb3390bb83ef8b0948e4e9.gz
* Edits to source code commentsGravatar axel2006-06-09
| | | | darcs-hash:20060608235557-ac50b-052e5c8f2cceb554064d7408573f277275903e7b.gz
* Add more function input validation checksGravatar axel2006-06-09
| | | | darcs-hash:20060608235212-ac50b-25fd55f96356af65d4da1eec100cc954b4a9f81e.gz
* Minor code tweaks, including making sure builtins are not run if an io ↵Gravatar axel2006-06-04
| | | | | | redirection issue occurs and removing a lot commented debug code darcs-hash:20060603223533-ac50b-204ff1fb1a4912565044e7bc4b86102a7eeba192.gz
* Minor spelling fixesGravatar axel2006-06-04
| | | | darcs-hash:20060603223228-ac50b-b4f7b190baf3c41bf23c224f5d68e8888dd4eaed.gz
* Drop validation of function code on new function definition - the code has ↵Gravatar axel2006-06-02
| | | | | | already been validated darcs-hash:20060602021757-ac50b-02bad63baf4826801ec0433468ec78d9b4a4c0f7.gz
* Make sure code validation error output for e.g. the complete builtin can be ↵Gravatar axel2006-06-02
| | | | | | redirected, and that it has the prefix 'complete', not 'fish' darcs-hash:20060602021517-ac50b-5e566aefbd1c9bcb3a5f11f9fc1125d8c1d9e936.gz
* Move jobs builtin to its own fileGravatar axel2006-05-26
| | | | darcs-hash:20060526113811-ac50b-9c0ed1aa26cd2f247978e406bea86e8c36d73710.gz
* If a help page for a builtin is showed in response to an error, make sure it ↵Gravatar axel2006-05-26
| | | | | | fits on screen, or only print the synopsis - this patch also contains a huge number of tweaks to where and when the help pages are printed darcs-hash:20060526112402-ac50b-88993e45f411b2f1c45b3202c393c5328f1c7429.gz
* Add validator check to make sure the second argument to 'for' is 'in'Gravatar axel2006-05-22
| | | | darcs-hash:20060521221604-ac50b-5bc4ce217a08304f68b97b20e908ea1279fe26e9.gz
* Remove two minor memory leaksGravatar axel2006-05-15
| | | | darcs-hash:20060514223903-ac50b-4e764c460effd8c45493acfe5682626c3711c77e.gz
* Fix bug that caused block level io redirection to break on while loopsGravatar axel2006-05-15
| | | | darcs-hash:20060514222905-ac50b-7dec0ed716f5fe6af9069b597eee464829a8d820.gz
* Fix the longstanding hang-on-exit bug in eterm, as well as making sure the ↵Gravatar axel2006-05-14
| | | | | | history is saved when the terminal emulator exits darcs-hash:20060514101623-ac50b-f8ce693ec111e3c158640ef8de309bf7e5484c5b.gz
* Fix broken method for sorting output of builtin commands 'functions', 'set' ↵Gravatar axel2006-05-14
| | | | | | and others darcs-hash:20060514094721-ac50b-9f1d8b6a2e8b4438e6a655de61af54d15cd4f537.gz
* Fix two bugs in the jobs builtin, causing freezes and other incorrect behavioursGravatar axel2006-04-25
| | | | darcs-hash:20060424153434-ac50b-2434329395cbd4a258d6fb9f15e166065b2eb164.gz
* Add more descriptive error messages when trying to use variables in command ↵Gravatar axel2006-04-22
| | | | | | names darcs-hash:20060421142939-ac50b-d1809fa4687706b433d1d0a5e0a0c9d791de510f.gz
* Make the read builtin accept 0 parameters and drop the input instead of ↵Gravatar axel2006-04-19
| | | | | | showing an error message darcs-hash:20060419100830-ac50b-50f96925481bb29ad840fb12240ef9b9b86d18c4.gz
* Do not return to the shell until all processes of a job have finished ↵Gravatar axel2006-04-04
| | | | | | (Previous behaviour was to return once the last job had exited, and could cause e.g. the jobs builtin to print out the job responsible for repainting the titlebar). Also validate that jobs have not completed in various places where the job list is examined darcs-hash:20060404112722-ac50b-4b6a55ce7c57d39213cdd0ed0f581795a72859b7.gz
* Fix warnings from ICCGravatar axel2006-03-29
| | | | darcs-hash:20060329001450-ac50b-9c3fe4f7ca14a077997c421616c07dde03b48c6d.gz
* Minor comment and documentation changesGravatar axel2006-03-14
| | | | darcs-hash:20060314000914-ac50b-63c49a59804f51c4dd19de574db41298b1ef67c5.gz
* Fix bad return status in read builtinGravatar axel2006-03-11
| | | | darcs-hash:20060310195100-ac50b-2b7d94510661d901fd804074e6cf03e926dddc79.gz
* Fix bug that causing terminal corruption if a job is put under job control ↵Gravatar axel2006-03-10
| | | | | | before running in interactive mode. This is fixed by doing more inits at startup (but only slightly more) darcs-hash:20060310133809-ac50b-d31cd7bab1a3a58de2833f73735817a3d0b3ed7d.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
* Make sure that command specific completions can handle input strings with ↵Gravatar axel2006-02-19
| | | | | | wildcards reasonably well darcs-hash:20060219011432-ac50b-89a73a3d414f2dbd8a213b851fcb1c494e022eae.gz
* Give more detail in an error messageGravatar axel2006-02-18
| | | | darcs-hash:20060218024346-ac50b-f26f6ef107fffa398b6ff61baff81914b998940a.gz
* Minor editsGravatar axel2006-02-15
| | | | darcs-hash:20060215024900-ac50b-51863879c32660d9787db706c34fef10aa4c30c2.gz
* Remove the rather stupid -y option for complete, which loads another ↵Gravatar axel2006-02-15
| | | | | | commands completions. Mostly the same results can be had with fewer bugs and corner cases vy using the new dynamically loaded functions. darcs-hash:20060215022228-ac50b-85614ed684f73460d43543a579ff2c7e7914efeb.gz
* Add support for checking current filename and current line nuber to status ↵Gravatar axel2006-02-15
| | | | | | builtin darcs-hash:20060214195747-ac50b-77b6aba42c99da4f79ea500c47cc00bba12ec663.gz
* Add support for sending arguments whenusing the source builtinGravatar axel2006-02-15
| | | | darcs-hash:20060214195636-ac50b-511c211368103df6923d63cef99ce20a88d31be3.gz
* Optimize the halloc implementation so that mutiple calls to halloc can be ↵Gravatar axel2006-02-11
| | | | | | satisfied by a single malloc, also add wcsdup and wcsndup workalikes using halloc darcs-hash:20060211001317-ac50b-c9cf234c334b4d697fe1251c21013c8ec7f7b0a1.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
* Further halloc:ification if fishGravatar axel2006-02-07
| | | | darcs-hash:20060206181101-ac50b-db0aac307a81e7f0677acd15a9f38ff8c7ff36d2.gz
* Second checkin of halloc changeover. Make the argv array, but not it's ↵Gravatar axel2006-02-07
| | | | | | contents, be allocated using halloc. Also make list_to_char_arr use halloc darcs-hash:20060206151817-ac50b-e8fd4cff831ee975c5bf3855d9ecfc15a3fb9215.gz
* Minor code cleanup, don't use expand_escape and expand_unescape any moreGravatar axel2006-02-07
| | | | darcs-hash:20060206151552-ac50b-e2229d096926461f643fdcdfc79ef1ff01344a35.gz
* Minor edits of builtin.c, some reindentation and code comment improvementGravatar axel2006-02-06
| | | | darcs-hash:20060205212050-ac50b-70c1b34208b442b5670fde2c6655e09c4480c7e7.gz
* Clean up init code in builtin.cGravatar axel2006-02-05
| | | | darcs-hash:20060205130840-ac50b-1a2b29671b7d8c557ebd284513c535e082ee5cf3.gz
* Don't print full stack trace for failiures in cd in interactive modeGravatar axel2006-02-04
| | | | darcs-hash:20060204113650-ac50b-465dd4b3fb27e8d90127231cccdae29ac7b8fd20.gz
* Make stack traces print absolute filenamesGravatar axel2006-02-03
| | | | darcs-hash:20060202152356-ac50b-9e6ab31c03d5f49824ccca7eee3b8e62d66b0009.gz
* Generalize the stack tracing code, add support for showing events and ↵Gravatar axel2006-02-02
| | | | | | command substitutions in stack traces darcs-hash:20060201154911-ac50b-707358ea50231661c05a92b40ca109ec801081e6.gz
* Improve the status builtinGravatar axel2006-01-31
| | | | darcs-hash:20060130195310-ac50b-5da6881a847170242be56555646bbf037218d545.gz
* Rename the 'terminal' flag to 'job_control', make sure fg and bg only ↵Gravatar axel2006-01-31
| | | | | | considers jobs under job control and make it configurable which jobs are put under job control using the status builtin. Also add an option to the status builtin to print a stack trace. darcs-hash:20060130175426-ac50b-46fb79797284cb600c67cb19462b53761446f00a.gz
* Add support for calculating completions for arbitrary commands through the ↵Gravatar axel2006-01-31
| | | | | | 'complete' builtin darcs-hash:20060130165150-ac50b-5e2ef3bb0298dd5e1a5d6fbdade314cc73ef36f3.gz
* Display use of . (source) builtin in stack tracesGravatar axel2006-01-28
| | | | darcs-hash:20060128113440-ac50b-6556097eb766cc7561a3d30ef994bc913181fe65.gz
* Smaller editsGravatar axel2006-01-25
| | | | darcs-hash:20060124181410-ac50b-4ec9e2990852a678de7d47a565ed41780b5279fc.gz