aboutsummaryrefslogtreecommitdiffhomepage
path: root/builtin.c
Commit message (Collapse)AuthorAge
* remove trailing spacesGravatar Grissiom2010-09-18
| | | | | This is done by `sed -i -e 's/[ \t]*$//' *.[c,h]`, which should not introduce any functionality change.
* Check return value of a few write calls and retry on EINTR, and fix a few ↵Gravatar axel2009-02-23
| | | | | | other warnings, mostly by printing error messages before giving up. darcs-hash:20090222202852-ac50b-b0e79142af5b7a99e55271d4001fa252d9684a1d.gz
* Fix read in noninteractive mode problems reported by James ReevesGravatar axel2009-02-23
| | | | darcs-hash:20090222162206-ac50b-c293945986f75103120606a64133b59fe82c02a6.gz
* Remove useless stray argument in function callGravatar liljencrantz2008-01-17
| | | | darcs-hash:20080116222628-75c98-a307fbeacdd815edcedea05930dc8b4bb064acb3.gz
* Fix minor bug, PWD was incorrectly set on startupGravatar liljencrantz2008-01-17
| | | | darcs-hash:20080116220738-75c98-2b7c886629857540efee8f1cab9da0aa9ed8f76d.gz
* Add lots of new code comments.Gravatar liljencrantz2008-01-14
| | | | darcs-hash:20080113164747-75c98-9d0cefd27be7aef7ba60772616d9da7e6bb52912.gz
* Fix bug in return and block builtins - they where unable to handle functions ↵Gravatar liljencrantz2008-01-09
| | | | | | that do not shadow the calling scope darcs-hash:20080109030136-75c98-05f7a48cd991ac24e15d7e8b580caef0396ff59c.gz
* Indentation fixes, add a few comments, spelling, etc.Gravatar liljencrantz2007-10-28
| | | | darcs-hash:20071028090840-75c98-2ae076441517cd7a0d8172fad28edaf6f034b70c.gz
* Tiny touchups of docs and codeGravatar liljencrantz2007-10-06
| | | | darcs-hash:20071006105527-75c98-339c5d7ec2fbae0c2d4dc93552db85c389971a6a.gz
* Make the . builtin have a more useful (and posix-compatible) exit statusGravatar liljencrantz2007-10-06
| | | | darcs-hash:20071005145808-75c98-17100c1e321b8bca06f75e900db1386451232f98.gz
* Comment updates, minor code cleanups and other janitorial jobsGravatar liljencrantz2007-10-02
| | | | darcs-hash:20071002100937-75c98-d4040e70a256e36a6334cca0a05d60500680132b.gz
* Indentation and commentsGravatar liljencrantz2007-09-29
| | | | darcs-hash:20070928213922-75c98-96ae445e28ad3273c98ddc4ca16597988eb66d37.gz
* Improve error reporting for bind builtinGravatar liljencrantz2007-09-29
| | | | darcs-hash:20070928213523-75c98-bd88022a63af1409ae28ae0829280df9652dcaff.gz
* Replace variadic functions like sb_append and contains_str with variadic ↵Gravatar liljencrantz2007-09-29
| | | | | | macros without a sentinel. darcs-hash:20070928213227-75c98-2e7b06242acfd5fd0bf02ce77c41d52374f2363a.gz
* First stab at dropping all support for readlines inputrc files and instead ↵Gravatar liljencrantz2007-09-26
| | | | | | using an internal system for performing keybinding. darcs-hash:20070925161447-75c98-1feaef88a4b518badb7879f598f06ab650a8f93b.gz
* Improve error reporting in the . builtinGravatar liljencrantz2007-09-24
| | | | darcs-hash:20070924081428-75c98-72b9f1dfe64a40b0f7893c9ebcb59f477f6c924c.gz
* Add switch fo scope hiding in output of functions builtinGravatar liljencrantz2007-09-23
| | | | darcs-hash:20070922221920-75c98-7a17d24162a3fbdfd9c05690d2358511a3ca0281.gz
* Improve documentation for breakpoint builtinGravatar liljencrantz2007-09-22
| | | | darcs-hash:20070921151654-75c98-550df5aebaa11855c53585202ab7fafe7c5820ad.gz
* Further improve accuracy of cd builtins error messages. Now correctly ↵Gravatar liljencrantz2007-09-21
| | | | | | reports rotten symlinks. darcs-hash:20070920175243-75c98-e210034c7bfc8308be9e03017a5a0d8ef7648b9c.gz
* Significantly improve accuracy of error reporting in the cd builtinGravatar liljencrantz2007-09-21
| | | | darcs-hash:20070920172928-75c98-826cd86e1c33e1f6c746227655e340a6bb459f30.gz
* Fix bug in the count builtin, causing it to exit with status 0 even if no ↵Gravatar liljencrantz2007-09-09
| | | | | | arguments where given darcs-hash:20070909135734-75c98-2d0495a15440e50fb6521bffef85147832771c80.gz
* Handle merge confligt for previous patches. The exact same bug was fixed twice.Gravatar liljencrantz2007-09-09
| | | | darcs-hash:20070908222725-75c98-2e1d0b090608d71f452c6ba7c3e1281782ebec11.gz
* Fix issue in error handling, reported to and fixed by Axel Liljencrantz. ↵Gravatar Claes Nästén2007-08-22
| | | | | | Change val[0] and body[0] in env universal to val[1] and body[1] to support compilation with Sun Studio. Change default prompt to use pekdon instead of whoami as it does not exist under Solaris. darcs-hash:20070822080052-cac88-326332f0df7d17ddca4a4496c93728a47f19bba5.gz
* Indentation, typo and formating fixes. Very minor patch.Gravatar liljencrantz2007-09-09
| | | | darcs-hash:20070908222453-75c98-2236d962f0c9016820063e871fbbeaa42f36ef22.gz
* Add a 'generic' type of event that can be emited from any piece of code or ↵Gravatar liljencrantz2007-08-20
| | | | | | by the user. Use this event layer to perform interactive configuration startup at the correct time. darcs-hash:20070819164230-75c98-f91b8a73de7bbbb500d80770ddf4d2d46ae592cc.gz
* Make the contains builtin not allow reordering of switches and non-switchesGravatar liljencrantz2007-08-15
| | | | darcs-hash:20070814214257-75c98-a50161a8146dfd0a6c6a948e1960f93dd52275fd.gz
* Fix duplicate switch antry in builtin_status. Don't know if this was caused ↵Gravatar liljencrantz2007-08-02
| | | | | | by patch bug or typo. darcs-hash:20070801225421-75c98-8c91f5fb00ccc05ac40ef12ffbfc68fec5e64dd0.gz
* Replace the contains function with a builtin for performance reasons. The ↵Gravatar liljencrantz2007-08-02
| | | | | | contains function used at lots of forks, which was noticable on systems such as OS X with slow forks, as well as on completions that do a lot of tests, like svn darcs-hash:20070801225318-75c98-48cc4d685ab665c7c2eb93ac3c374bf5afecd28a.gz
* Update status builtin to properly handle and document all of its options.Gravatar James Vega2007-08-02
| | | | darcs-hash:20070801194450-35ec8-e2fe5b798e728d1caef474295a92230c35c79c17.gz
* Replace the count function with a builtin for performance reasons. The count ↵Gravatar axel2007-08-01
| | | | | | function used at least two forks, which was noticable on systems such as OS X with slow forks darcs-hash:20070731212332-ac50b-8f5b2e70008ddb131dc8bae3f361d8d65a294948.gz
* Replace the count function with a builtin for performance reasons. The count ↵Gravatar axel2007-08-01
| | | | | | function used at least two forks, which was noticable on systems such as OS X with slow forks darcs-hash:20070731212320-ac50b-3bae489646f359ca86bb1f049901860ce9aedd5f.gz
* Make sure that io redirections are respected by the '.' builtin. This was ↵Gravatar axel2007-04-26
| | | | | | not the case earlier, which caused various bugs, especially after eval was made into a function that internally used '.' darcs-hash:20070425183002-ac50b-d7d93e3b74e7274fe3e0aad98e95dd608bb903ae.gz
* Fix bug in stack trace printing codeGravatar axel2007-04-24
| | | | darcs-hash:20070424060620-ac50b-174e68e78bc2b1d6e5e3f5787e4a252cad95911c.gz
* Replace the eval builtin with a functionGravatar axel2007-04-23
| | | | darcs-hash:20070422221806-ac50b-28cffc6c3063c14cd8ab30f999e3530314c78af2.gz
* Add the possibility for functions which do not shadow the arguments of the ↵Gravatar axel2007-04-23
| | | | | | calling function darcs-hash:20070422221033-ac50b-d9544c87d0ddab10f7f503b5a1707292f266efe4.gz
* Make the . (source) builtin able to read commands from stdinGravatar axel2007-04-23
| | | | darcs-hash:20070422211947-ac50b-b8d33d81fcef5e0b7e76a8d2a9f0bcbcf3ac67b7.gz
* Validate variables names when using named arguments for functionsGravatar axel2007-04-23
| | | | darcs-hash:20070422211624-ac50b-11920a8a00c7bae97c3556bc7ce47b3022c34f08.gz
* Make 'functions' builtin print named arguments of functionsGravatar axel2007-04-23
| | | | darcs-hash:20070422211534-ac50b-3293f1d733a8a3be760f344598bfae8b77647b2f.gz
* Fix minor memory leak on printing help for builtinsGravatar axel2007-04-23
| | | | darcs-hash:20070422211451-ac50b-42293b46e39cd5d0cfdf2ca63effe12faa048970.gz
* Prettyfy output of 'functions' builtin a tiny bitGravatar axel2007-04-23
| | | | darcs-hash:20070422185627-ac50b-99b7c27d06f5a6d5e7a7b66da864317bf1019fe2.gz
* Move keyword detection code to separate fileGravatar axel2007-04-22
| | | | darcs-hash:20070422095026-ac50b-77a840e2830370f46b7a48fd8863095d2cd7a5f0.gz
* Minor code tweaksGravatar axel2007-04-17
| | | | darcs-hash:20070416201053-ac50b-99d3ee51ef2b3642c737c3809bc2a4bfbe103b67.gz
* Allow named arguments to function instead of only $argv. Philip Ganchev once ↵Gravatar axel2007-04-17
| | | | | | suggested this, and it was suggested again by Egil Möller. darcs-hash:20070416200611-ac50b-5eb42c94a65a4e72cae12cd9c04424bdc3b2b4f8.gz
* Add breakpoint builtinGravatar axel2006-11-11
| | | | darcs-hash:20061111105400-ac50b-18b9165f8719efd45b46e3b3786f7079edd721e7.gz
* Fix bug in read builtin - signal handlers where not correctly set, causiong ↵Gravatar axel2007-02-01
| | | | | | ^C not to work darcs-hash:20070201002053-ac50b-b73e22cbeecaeb364974cd2c512efbd517bb90d3.gz
* Fix occasional duplicate stack trace, reported by Mike Roberts. Also make ↵Gravatar axel2007-02-01
| | | | | | fish less likely to print huge amounts of help in non-interactive mode, as per suggestion from Mike Roberts. darcs-hash:20070131160317-ac50b-8354948f55a1478515ebfe7ddb6db14b6775dd18.gz
* Add support for -s switch to read builtin, enables shell syntax highlighting ↵Gravatar axel2007-01-30
| | | | | | in the read builtin darcs-hash:20070129162624-ac50b-dff9d9ebf16ce3247b83d917efbffd4942cda83f.gz
* Drop unneeded generic descriptions for completion of functions and builtins. ↵Gravatar axel2007-01-27
| | | | | | Add description for count. darcs-hash:20070127020752-ac50b-62dba47967cac04cd242894bfaa03116461883f3.gz
* Make all error messages from options parsin in builtins redirectableGravatar axel2007-01-22
| | | | darcs-hash:20070121145527-ac50b-1375af219a5eba6167e99d3fe24b26dba60eba2a.gz
* Make sure read returns with a non-zero status if no string was actually givenGravatar axel2007-01-16
| | | | darcs-hash:20070115175346-ac50b-9bbcfd114344f030c46456d2d603ce323406bfea.gz