Commit Graph

490 Commits (master)

Author SHA1 Message Date
glenda 1bb1b1a937 /rc/bin/9fs: 9front.org files now live on port 9000. 2021-08-27 01:09:12 +00:00
glenda 21283578eb ircrc: freenode -> oftc 2021-06-15 14:28:00 +00:00
Ori Bernstein e1cc6a9a0f sysupdate: clean up transitional code
we just need git/pull now
2021-06-14 23:58:09 +00:00
Ori Bernstein a73a964e51 python, hg: tow outside the environment.
they've served us well, and can ride off into the sunset.
2021-06-14 00:00:37 +00:00
Ori Bernstein c12e49ecbf B: expand path when plumbing files
When we plumb a file, we open it in the current working
directory if it exists. However, if it doesn't exist,
we end up opening it relative to the editor's working
directory.

Expanding the path to works around this issue.
2021-06-12 18:03:26 +00:00
Fulton Browne 1c30bd451e B, sam: remove sam srv file
No need for 2 programs doing the same job.
2021-06-12 17:20:53 +00:00
Fulton Browne af95aa431d Remove ap(1)
Cool script - does not work.
2021-06-11 23:26:50 +00:00
Ori Bernstein 1bce186f6c homespool: remove obsolete lp config tool
homespool configures directories that it seems
lp no longer usees. we can drop it.
2021-06-07 16:46:57 +00:00
Ori Bernstein 01f7286521 see last try. 2021-06-06 17:44:10 +00:00
cinap_lenrek f9ae020332 sysupdate: revert thumbstone temporarily
experiencing some issues with git9 transition... we likely need
to update git9 again before doing another attempt...
2021-06-06 13:07:51 -04:00
Ori Bernstein 4f3437a3cc sysupdate: insert tombstone
after this update, we're on git: update sysupdate
to switch repositories.
2021-06-05 05:17:03 -07:00
cinap_lenrek 014197f8d3 iwhois: add some improvements (thanks gall0ws)
patch from gall0ws:

> It's impossible to get whois right and probably nobody cares about it,
> nevertheless this small patch fixes some issues with the current version:
>
> * use a more common filter for default boilerplate (useful when
>   following the referral chain)
> * updated boilerplate for *.co.uk *.net.uk *.org.uk
> * added case *.com *.net (got it from iana.org)
> * use ARIN for IPv6 addresses
> * when unsure, check first whether whois.nic.$tld exists otherwise
>   usual fallback to InterNIC
> * fixed regexp for the referral chain (case, extra spaces or /)

- add usage handling.

--
cinap
2021-05-09 15:19:05 +02:00
Sigrid c613382caf remove juke (use play or zuke instead) 2021-04-13 13:25:24 +02:00
Sigrid b777d3fe7d remove old, broken scripts: fedex, u(s)ps, weather (thanks fulton) 2021-04-13 11:26:55 +02:00
cinap_lenrek 5d0c3ab7df termrc, cpurc: silence /net/ether* error message when there are no ethernet devices 2021-04-10 15:01:09 +02:00
kvik 1b4758d596 g: add lua, mk, ml, mli, myr, and sh suffixes 2021-04-09 03:18:53 +02:00
cinap_lenrek 777b1949b2 nusbrc: ignore rndis ethernet in /rc/bin/nusbed, handled by /sys/src/9/boot/nusbrc (thanks romano) 2021-04-08 21:57:24 +02:00
cinap_lenrek c77b3ba143 whois: suppress missing file errors (thanks kivik) 2021-04-02 17:26:34 +02:00
moody f704965a45 B, Bfn: fix invocation with multiple files, improve manual page 2021-02-27 19:35:06 +01:00
sl 72868594c7 newt: remove fn f, replace with walk 2021-02-09 22:50:31 -05:00
Sigrid 58b3f96f98 9fs: bell labs is very dead 2021-01-15 19:32:02 +01:00
cinap_lenrek 2e6a5e7046 fax, psfax, vwhois: use $user instead of /dev/user 2020-12-23 01:44:44 +01:00
cinap_lenrek cad697d6ed B: dont pollute the environment 2020-12-23 01:44:10 +01:00
cinap_lenrek 4675de1ba0 kill, slay, broke: dont pollute environment, use $user 2020-12-23 01:43:29 +01:00
cinap_lenrek e45c7480b6 Kill: don't pollute environment 2020-12-23 01:42:52 +01:00
cinap_lenrek c8c5499d7f start, stop: avoid null list in concatenation witout arguments, use $user 2020-12-23 01:41:52 +01:00
cinap_lenrek c7fd8fe47a nusbrc: delect lenovo camera 2020-12-23 01:23:09 +01:00
Alex Musolino a203d90474 hpost: fix usage text 2020-12-22 00:16:26 +10:30
Sigrid d0cc9e2eb6 g: initialize files env var 2020-12-19 13:33:11 +01:00
Ori Bernstein c2aa8c997a hpost: support custom headers (thanks julienxx)
hget supports adding custom headers with -r;
it makes sense for hpost to do the same, both
because custom headers are more likely necessary
with POSTs, and for consistency.
2020-12-17 20:26:38 -08:00
cinap_lenrek 27a83106f4 oexportfs: move legacy code for cpu and import to separate program
The initial protocol handling in exportfs for
cpu and import services is a huge mess.

Saparate the code out into its own program with
its own oexportfs(4) manpage.
2020-12-13 20:09:03 +01:00
Sigrid d7120ecb77 src: work on awk scripts too, see "src valley" (thanks phil9) 2020-12-10 10:33:42 +01:00
Ori Bernstein e60216c2b7 g: fix typo in last commit 2020-11-22 17:42:25 -08:00
Ori Bernstein 97008caa41 g: filter directory arguments
When searching directories recursively, it's still
desirable to filter the contents by the file pattern,
so that 'g foo /sys/src' doesn't end up searching for
foo within .$O files.

Files passed explicitly are still searched, so for the
old behavior, just use walk:

	g foo `{walk -f $dir}
2020-11-21 21:23:46 -08:00
kvik 58861fff63 window: fix error exit with the -m flag
When called with the -m flag window would always exit with
some error, usually status='no match', because of an if-match
being the last status-setting command in the script.
2020-09-16 13:12:13 +02:00
Alex Musolino cf69bb920a rc-httpd: fix invalid test(1) invocation in dir-index 2020-08-02 18:30:01 +09:30
Ori Bernstein 03499e53cc g: add '.hs' and 'mkfile' to the walk. (thanks joe9)
This expands the set of files that we grep through by default to
include mkfiles and haskell.
2020-07-14 20:46:00 -07:00
Ori Bernstein 7364a96b28 bell labs is dead, man
remove the last reference from 9fs.
2020-03-20 14:12:23 -07:00
Ori Bernstein 5bc9b0c3ca improve usage messages (thanks henesy)
Fix inconsistencies between programs and their usage
messages,  correct instances where information seems
to be missing or lost. This  includes missing arguments,
making usage consistent with manuals, and so on.
2020-03-10 10:09:34 -07:00
Ori Bernstein 06ea44c895 fix -T option for doctype
We used to set $dev to -T, and leave the device type
in the argument list. Now, we set it to -T$2, and shift
it out of the list.
2020-03-10 09:35:06 -07:00
Ori Bernstein e652be5559 "": output previous action to stderr
When redirecting output from "", it prints the command
to stdout, which garbles things like:

	% foo
	<inspect output>
	% "" > /dev/snarf

Now, we send it to stderr.
2020-03-08 11:46:34 -07:00
Ori Bernstein 0f9666ae16 walk arguments to g
This allows us to 'g' the files
	within a directory, as in:

		g _MAX /sys/include/ape

	Before this change, we'd attempt to
	grep the directory structure, which
	is not ideal. After, we grep the
	files within the directory.
2020-02-26 21:45:00 -08:00
Alex Musolino c43700f569 rc-httpd: append carriage return to content-length header 2020-01-07 17:28:59 +10:30
cinap_lenrek 57dbe35fb6 console(8): add console command and manpage
the console command runs a command or the system shell under
a new instance of kbdfs, optionally providing a serial console
when $console environment variable is set.
2019-12-09 17:44:28 +01:00
Alex Musolino 4ff5a4febb rc-httpd: serve markdown with text/plain content-type 2019-06-20 16:26:03 +09:30
Alex Musolino 3a3eb0434c rc-httpd: set charset=utf-8 for all text/* content types 2019-06-17 13:17:16 +09:30
Alex Musolino 8648e06534 rc-httpd: only emit charset option for text/plain content type 2019-06-17 13:13:40 +09:30
Alex Musolino 78c7cd0c01 rc-httpd(8): avoid duplicate log output in dir-index handler
Delay calling do_log until just before emitting the response.  This avoids
calling do_log before potentially handing control to the static-index
handler, which also calls do_log.
2019-06-05 16:04:50 +09:30
Ori Bernstein 341b64b5bd Remove trailing whitespace. 2019-06-04 22:47:07 -07:00
Ori Bernstein 41be41b493 Lost a trailing \n 2019-06-04 22:42:10 -07:00