Commit graph

55 commits

Author SHA1 Message Date
Michael Teichgräber
38b62735e4 rc: implement and document <>{cmd} notation
http://codereview.appspot.com/105061
2009-09-13 18:26:51 -04:00
Michael Teichgräber
e066b12927 rc: make read not ignore interrupts/errors (again)
http://codereview.appspot.com/110042
2009-08-23 13:25:44 -04:00
Michael Teichgräber
74be46038d rc: fix segfault when SIGINT is received
Save the value of `runq' at the start of the function, so that the `pc'
update
at the end does work on that original value, and not on a probably
modified
value of `runq'.

fixes #14 http://code.swtch.com/plan9port/issue/14/

http://codereview.appspot.com/104066
2009-08-08 16:27:01 -04:00
Russ Cox
362264eb51 rc: fix local variables in functions
reported by micah stetson:

fn foo { echo $bar }
bar=baz foo
2008-08-14 10:29:29 -04:00
Russ Cox
94e1f2a438 rc: add subscript sequences (Erik Quanstrom) 2008-07-20 04:15:41 -04:00
rsc
fbc629a995 keep path and PATH in sync 2007-03-28 16:04:37 +00:00
rsc
2894c70c08 do not redefine rewind 2007-03-26 17:04:41 +00:00
rsc
40402738da more memory errors (valgrind) 2007-03-26 15:02:15 +00:00
rsc
4b241872ef fix wait 2007-03-26 14:26:32 +00:00
rsc
bd1b0cc17e fix phantom rc crashes 2007-03-26 14:24:44 +00:00
rsc
c8f538425f sync with plan 9 2007-03-26 12:02:41 +00:00
rsc
edc77f0b2b cope with programs that leave fd in non-blocking mode (Tim Wiess) 2007-03-25 17:16:40 +00:00
rsc
aec641d24c experiment - allow = in words late in the command line 2006-06-27 17:41:48 +00:00
rsc
1f2ab849c0 add exitcode 2006-04-08 23:49:08 +00:00
rsc
cbeb0b26e4 Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms. 2006-04-01 19:24:03 +00:00
rsc
17157e4aa8 update lucida 2006-03-20 02:25:59 +00:00
rsc
7236e45bbc shut up about signals in scripts 2006-02-14 19:43:54 +00:00
rsc
f7174317de Add rfork builtin. 2005-08-11 16:44:43 +00:00
rsc
4ae2f414e2 make sure errors cause non-zero exit status 2005-08-11 16:44:18 +00:00
rsc
0e4068e8c4 fixes from bengt for sun 2005-07-26 10:19:23 +00:00
rsc
c6f92061c0 ignore window size change 2005-07-14 12:48:02 +00:00
rsc
7ce3f20d73 stupid sun 2005-07-13 03:54:01 +00:00
rsc
e3ffbf3b84 set $PLAN9 if necessary 2005-05-19 17:13:24 +00:00
rsc
4ee543e58c try harder to put background jobs in background; do not print in response to SIGPIPE 2005-03-18 19:03:25 +00:00
rsc
168518a993 correct command-printing bug 2005-03-18 18:54:54 +00:00
rsc
134c20c605 handle /dev/stdin always 2005-02-13 21:38:32 +00:00
rsc
26a5fd5725 set pid=-1 explicitly 2005-02-11 16:58:06 +00:00
rsc
de39860a2a more searchpath-related changes 2005-01-23 23:19:47 +00:00
rsc
1b0c8a154a use correct yacc 2005-01-19 19:48:58 +00:00
rsc
c8b6342d3c Many small edits. 2005-01-13 04:49:19 +00:00
rsc
a9eaaa03e0 maintain $path and $PATH simultaneously 2005-01-12 16:59:50 +00:00
rsc
005a85f3a2 success on the sun 2005-01-07 08:02:54 +00:00
rsc
f7b74c1725 FreeBSD tweaks 2004-12-28 17:34:05 +00:00
rsc
f002cc17a6 print out signalled exits 2004-10-17 05:29:53 +00:00
rsc
39cff6e750 add ulimit and umask as builtins 2004-10-17 05:19:53 +00:00
wkj
a87f4771c7 Supress line noise. 2004-05-16 07:58:58 +00:00
rsc
f1bfc54e12 More little bug fixes 2004-05-14 17:45:39 +00:00
rsc
c4097c2951 Fix small bugs. 2004-05-11 17:51:27 +00:00
rsc
b1455f33a8 Little fixes. 2004-04-30 02:16:28 +00:00
rsc
a2c2caaafe fix 2004-04-24 17:34:52 +00:00
rsc
8a3b2ceb0f Add scat. Temporary fix to rc r.e. note groups. 2004-04-24 17:05:43 +00:00
rsc
1b135a7805 clean up when finished.
don't set PLAN9
don't set PLAN9
2004-04-19 23:04:36 +00:00
rsc
69ab5d3d49 handle interrupts and backgrounded processes a little better. 2004-03-26 17:30:36 +00:00
rsc
be22ae2d07 SunOS can rot in hell. 2004-03-26 01:59:35 +00:00
rsc
8ad517944e Today's changes.
More changes.
2004-03-25 23:03:57 +00:00
rsc
2277c5d7bb Small tweaks
Lots of new code imported.
2004-03-21 04:33:13 +00:00
rsc
315e309098 Remove debugging print. 2004-03-04 02:37:30 +00:00
rsc
0b91799791 Fix rc not to bus error on Mac OS X.
Don't print about child notes either.
2004-03-04 02:36:36 +00:00
rsc
d21d62e2fc Various tweaks. 2004-02-29 23:20:28 +00:00
rsc
f063dad96e Small tweaks to make things build again. 2004-02-29 22:42:33 +00:00