summaryrefslogtreecommitdiff
path: root/sys/src/cmd/rc
AgeCommit message (Collapse)Author
2014-07-23rc: fix slow Xqdol(), avoid recursion in conclist(), estrdup(), avoid copyingcinap_lenrek
Xqdol() used to take quadratic time because of strcat(), the code isnt really needed as list2str() aready does the same thing in linear time without the strcat(). add estrdup() which uses emalloc() so allocation error are catched. move strdups() of name from callers into newvar(). avoid recursion of conclist(), and avoid copying of word strings by providing Newword() function which doesnt copy the word string.
2013-08-20rc: flush environment variables (update /env) before forkcinap_lenrek
on races... normal forks will all share the /env environment but not the in memory variables of rc. so when we would normally fork whoever does an exec (flush) first will override what the values of the /env variables are, *independent* of the variables that where actually modified *in* the process. when we flush *before* fork, then at least both processes start out with marked clean in memory variables and the processes will flush only the things they actually change.
2013-04-24make all the commands agnostic about Rune width. (from sources)cinap_lenrek
2012-02-08rc: remove silly efree checkcinap_lenrek
2012-02-08rc: change plan9 envname limit to 128, cleanupcinap_lenrek
2011-04-04erik's patches to lift 8192 byte word size restrictionstanley lieber
2011-03-30Import sources from 2011-03-30 iso image - libTaru Karttunen
2011-03-30Import sources from 2011-03-30 iso imageTaru Karttunen