aboutsummaryrefslogtreecommitdiffhomepage
path: root/builtin.c
Commit message (Collapse)AuthorAge
* First stab at directory transition. Test with care...Gravatar axel2006-10-19
| | | | darcs-hash:20061019115023-ac50b-30c3fd51d8af8a616d63dfcac39370d7fe6d144e.gz
* Be more rigorous with the exit codes set by the parser and builtinsGravatar axel2006-10-09
| | | | darcs-hash:20061009012102-ac50b-4f28c43dd1ccdcc04d1620a6da05218a99fd7337.gz
* Drop the optional checking of block type for the end builtinGravatar axel2006-10-05
| | | | darcs-hash:20061004233206-ac50b-cf72c879b4b58c8e5ba4e1dff5c2746ca2e8844f.gz
* Minor code cleanupGravatar axel2006-10-05
| | | | darcs-hash:20061004214204-ac50b-e1529fcedb1665f9871a95eba293a4a3c1150464.gz
* Add the possibility to set the cursor position using the commandline builtinGravatar axel2006-10-05
| | | | darcs-hash:20061004213948-ac50b-3f673edeb01390bb3f280812d90bc8469f2f8ba8.gz
* Minor tweaks to code validation for the for builtin (again)Gravatar axel2006-10-02
| | | | darcs-hash:20061001155734-ac50b-6009b98dfccaf8f8292859f25c4d564c6b622f47.gz
* Add syntax check to see that the for builtin is not given an insufficient ↵Gravatar axel2006-09-26
| | | | | | number of arguments darcs-hash:20060926124109-ac50b-b088397933fa7ea539e48fa9fcd461de8295f7ce.gz
* Fix bug in for that causes crash on syntax errorGravatar axel2006-09-20
| | | | darcs-hash:20060919142140-ac50b-48cbbdfd109e2b420d8e36acd5b13696445c0850.gz
* Minor bugfix in the switch parsing for the status builitnGravatar axel2006-09-20
| | | | darcs-hash:20060919142042-ac50b-b532e0308407d101d1f8b328a575a54e8bc46799.gz
* Make it possible to save a function when defining it using the -S switchGravatar axel2006-09-09
| | | | darcs-hash:20060908141241-ac50b-69a055a1e791e04e2b1208a5c36b9bb22c854c12.gz
* Optionally add type of block to the end builtin to verify block nesting ↵Gravatar axel2006-09-06
| | | | | | correctness darcs-hash:20060905204347-ac50b-d0f87a700e38cdff9787be827b0df90b7f7baba5.gz
* Fix bug where using the return builtin inside an if-block could cause the ↵Gravatar axel2006-09-01
| | | | | | else-block to get executed darcs-hash:20060831205320-ac50b-64ecbaa3ed5e32c1a815ba384a6831a8fd5e1b47.gz
* Minor code tweaks, mostly things like indentation, but also a ferw code ↵Gravatar axel2006-08-28
| | | | | | reorderings darcs-hash:20060828120244-ac50b-ad4be149ff245b6f799452f9eeff7bcc60af1526.gz
* Rearrange includes so that config.h is always the first file to be includedGravatar axel2006-08-11
| | | | darcs-hash:20060811011835-ac50b-847fc790288e3bb3f3a0ee7734ff278d2dc65bef.gz
* Use the new array_list functions in builtin.cGravatar axel2006-08-01
| | | | darcs-hash:20060731162339-ac50b-e8a6bd2c327b8fa5527b739fba544994e1a809e3.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
* Add -q/--query switch to the functions builtin. Works just like the same ↵Gravatar axel2006-07-13
| | | | | | switch to set does. Useful for checking for the existance of functions in a script darcs-hash:20060712174655-ac50b-14a98a15751bb5ddddf4ffb41521b616bef5e40c.gz
* The begin builtin should not alter the exit statusGravatar axel2006-07-13
| | | | darcs-hash:20060712173141-ac50b-8d21f9f22ef55581521ccf923411e3458bd8109c.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
* Various code polish, including minor rearangement of builtin code to export ↵Gravatar axel2006-06-21
| | | | | | fewer functions, a few additional input checks, and removal of the unneeded, exported error_max variable darcs-hash:20060620212016-ac50b-f76c10eea23fab14a648ea83ed0c83a171b8fef9.gz
* 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