aboutsummaryrefslogtreecommitdiffhomepage
path: root/exec.c
Commit message (Collapse)AuthorAge
* 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
* Fix a bug where io redirection of builtins would not truncate files if the ↵Gravatar axel2007-03-25
| | | | | | builtin did not produce any output darcs-hash:20070324223430-ac50b-3f3d6fd35f5b82c59ecaa06b459fe2b61dc8f387.gz
* Do not use stdout to report errors when stderr is dead - take the hint ↵Gravatar axel2007-01-22
| | | | | | instead... darcs-hash:20070121152242-ac50b-3e192328959cf65f03756b3bfbb794fb43dccead.gz
* Use constant instead of hardcoded value for sleeptime on failed fork callGravatar axel2007-01-22
| | | | darcs-hash:20070121152026-ac50b-1daaac921f31dd10b2646d51b65af5260890d291.gz
* Minor code simplification in exec.cGravatar axel2007-01-22
| | | | darcs-hash:20070121151943-ac50b-d913d1b205443cdf40a83a1d001e4d7a114c6e0c.gz
* Print stack trace when execting due to fatal problem or bugGravatar axel2007-01-22
| | | | darcs-hash:20070121150341-ac50b-66b86014963568bf402a76d5beb7c1d4e188c5f7.gz
* Minor code edits. Add curly brackets in various places, add or rewrite ↵Gravatar axel2007-01-22
| | | | | | various comments, fix indentation, etc. darcs-hash:20070121150114-ac50b-4fd6965cb2c557178923f8afa944835166e08423.gz
* Check error code when writing output from builtins - try to report errorsGravatar axel2007-01-22
| | | | darcs-hash:20070121145810-ac50b-46ecb601ce9f0d862f00e4a97f25b6034e52f4cc.gz
* Make it possible to buffer input to other file descriptors than stdin. It is ↵Gravatar axel2007-01-08
| | | | | | still only possible to buffer input on a single descriptor to any given job. darcs-hash:20070107141052-ac50b-561265cd5acde7d882e4506870f13d61d34b3734.gz
* Make sure errno is not changed when error reporting after a failed call to ↵Gravatar axel2007-01-08
| | | | | | execve darcs-hash:20070107140918-ac50b-35186f2300d6ec03dbeac2cb5d5ffcee3feffc4e.gz
* Fix bug in IO redirection making is possible for the IO redirections to fail ↵Gravatar axel2007-01-08
| | | | | | in cases where there are multiple pipes and buffers using file descriptors above 2. darcs-hash:20070107140646-ac50b-dee4f380320ef2743635e77401a789c28d45f805.gz
* Update to the ':' patch by Nicholas Burlett. This patch makes sure that ':' ↵Gravatar axel2006-12-12
| | | | | | style executing of a command is only performed if a regular call to execve fails. This should improve performance a mall bit in the common case. darcs-hash:20061211190308-ac50b-d284fa30c8c633816898141b644bd3039f80cc62.gz
* colon-command supportGravatar nickburlett2006-12-09
| | | | | | | | | | | | Shells such as bash, sh, tcsh, and ksh each support a "colon command" that causes the script to be evaluated as a bourne script. In the case of bash and sh, this command is a no-op. For others, it means the script has sh syntax. To suppor this in fish, I've added code to launch_process that checks for a ':' as the first character of p->actual_cmd. If it is a colon, the process descriptor is modified to call /bin/sh, which should exist on any POSIX system. darcs-hash:20061208220428-5830d-6bde4f1a3e8100296a60c21f9e47988e20688a77.gz
* Update documentation display code to run roff on the client system instead ↵Gravatar axel2006-11-18
| | | | | | of pregenerating documentation and compiling it into program binaries darcs-hash:20061117162438-ac50b-5c4c7f0bd8bf53a16e16ecfead9569e642b7160f.gz
* A few additional input checks, minor code simplifications, and some ↵Gravatar axel2006-11-15
| | | | | | indentation/documentation fixes darcs-hash:20061115133046-ac50b-a6145bd9a63b6667357cc3ec603e185696bf1951.gz
* Remove getpgid prototype from exec.c - this prototype seems to be no longer ↵Gravatar axel2006-11-15
| | | | | | missing darcs-hash:20061115132959-ac50b-d163141db6ad824ea0f6788338ebcec5001cbf5b.gz
* Use fcntl to automatically close fishd socken on exec instead of handling it ↵Gravatar axel2006-11-15
| | | | | | manually darcs-hash:20061115111857-ac50b-3e04a0bc16c8442bef02cf4a50777d4556b8eaa6.gz
* Fix file descriptor leakage from completion pagerGravatar axel2006-11-12
| | | | darcs-hash:20061112121613-ac50b-209d42c06401faf675ff123236823dcaa651d6f7.gz
* Make sure signals aren't blocked while autoloading, also add a few ↵Gravatar axel2006-10-30
| | | | | | consistency checks to see that signals aren't blocked in critical places darcs-hash:20061029210911-ac50b-50bec85c3d59d0332ba44f3ece1a012cdc3e8c4b.gz
* Change the way the umask is used so that executable bits are ignored on file ↵Gravatar axel2006-10-27
| | | | | | creation. Thanks to sqweek and Jamessan for explaining the issue. darcs-hash:20061026151946-ac50b-3a55159343f1fe0a4edf3f077bcec8afd6f131f5.gz
* Use bitset to implement flags for jobs instead of wasting a whole int for ↵Gravatar axel2006-10-26
| | | | | | every flag darcs-hash:20061025204759-ac50b-ea07caa30782a1ea02d2cd8aa7cbc94474047a10.gz
* Fix a number of bugs found using the warnings generated by earlier patchGravatar axel2006-10-20
| | | | darcs-hash:20061019153603-ac50b-4efb1ad1fe2cbe693a921648a0616a3d258d7933.gz
* Be more rigorous with the exit codes set by the parser and builtinsGravatar axel2006-10-09
| | | | darcs-hash:20061009012102-ac50b-4f28c43dd1ccdcc04d1620a6da05218a99fd7337.gz
* Make it possible to save a function when defining it using the -S switchGravatar axel2006-09-09
| | | | darcs-hash:20060908141241-ac50b-69a055a1e791e04e2b1208a5c36b9bb22c854c12.gz
* Fix bug reportad by Martin Bähr that causes fish fail when using blocks in ↵Gravatar axel2006-08-27
| | | | | | pipelines in interactive mode. darcs-hash:20060827005252-ac50b-09c98537b9de72f0d4a2e5a28490b2e38fe321c8.gz
* Minor tweaks to previous fish_pager patch to fix two bugsGravatar axel2006-08-22
| | | | darcs-hash:20060822135815-ac50b-35d9f643385ec29f9d8f93ca83d01e060de93cc7.gz
* Add support for buffering of input to a command, the first step to piping ↵Gravatar axel2006-08-13
| | | | | | data to fish_pager instead of using the argument list darcs-hash:20060813013803-ac50b-f8000d4c96162023411f84643f47221860b350b2.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 exec.cGravatar axel2006-08-01
| | | | darcs-hash:20060731163548-ac50b-3b503e0457b33c6bb2eda0040a9fa7f15e6afe32.gz
* Include siginfo.h in all signal-using files to make Solaris happy. Thanks to ↵Gravatar axel2006-07-31
| | | | | | Netocrat for the report and a description of the solution. darcs-hash:20060730202659-ac50b-1840aff40ec2467242bd107676c7426cdb14f643.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
* Check exit status of close and fclose in a few extra placesGravatar axel2006-06-21
| | | | darcs-hash:20060621095430-ac50b-52afcee91b856f706d6df6bcf2e3a6bc7d746e40.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
* 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 cleanupGravatar axel2006-05-18
| | | | darcs-hash:20060518130039-ac50b-c17e794113c38909d90be840fce36c7727c628b4.gz
* Fix bug that caused block level io redirection to break on while loopsGravatar axel2006-05-15
| | | | darcs-hash:20060514222905-ac50b-7dec0ed716f5fe6af9069b597eee464829a8d820.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
* Add support for the -n switch to skip execution of any commandsGravatar axel2006-03-18
| | | | darcs-hash:20060318010459-ac50b-9d9e5c489e0e4df2159d8c1d0ff952d42e2a2a82.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
* A flag got reversed, causing children to execute even if an IO redirection ↵Gravatar axel2006-02-20
| | | | | | failed darcs-hash:20060220014036-ac50b-43156940397e0535cfa9dd7e88d61e4ca4bab13b.gz
* Add support for sending arguments whenusing the source builtinGravatar axel2006-02-15
| | | | darcs-hash:20060214195636-ac50b-511c211368103df6923d63cef99ce20a88d31be3.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
* First checkin of transition to using a new hierarchical memory allocator, ↵Gravatar axel2006-02-07
| | | | | | some of the memory associated with a job is covered darcs-hash:20060206142502-ac50b-ba1c9a4f64ea0f44f65303a125f9ddae5bd31e2f.gz
* Make execution of functions use wcsdup to make sure no memory errors happen ↵Gravatar axel2006-02-06
| | | | | | if a function removes itself darcs-hash:20060206134701-ac50b-27be7fe76512d6ac4313eea79b45a9c11083bccd.gz
* Tweaks to some source commentsGravatar axel2006-02-05
| | | | darcs-hash:20060205131253-ac50b-c3ad91b280a73fc8ec318ca6c285de773ffecfc6.gz