Commit Graph

112 Commits

Author SHA1 Message Date
sawka
5a151369cb line/mapdiff code 2022-11-25 15:52:29 -08:00
sawka
c94c0b7c36 normalize assoc arrays on parse so then values can be compared 2022-11-25 14:21:51 -08:00
sawka
717461908a command compgen also needs to detect directories 2022-11-23 10:51:51 -08:00
sawka
da2fe25fb8 move to simpleexpand 2022-11-22 22:59:29 -08:00
sawka
01821ca094 allow variable comptype 2022-11-09 20:38:47 -08:00
sawka
d86bee87d8 partial word expansion 2022-11-04 12:28:08 -07:00
sawka
4392956f99 replace expand.Literal with safer hand-written version that only expands quoted strings and literals 2022-11-03 23:53:25 -07:00
sawka
76d3c10748 decls equal fn -- must parse associative arrays (order is not consistent in bash output) 2022-11-02 18:41:53 -07:00
sawka
ee36078082 parameterize the mshell bin directory (for packaging). inject MSHELL variables for execution 2022-11-01 21:19:42 -07:00
sawka
8939c57dd8 minor, add isempty func for shellstate 2022-10-30 12:52:58 -07:00
sawka
1da450e61c implement reinit, also do not store 'columns' var 2022-10-27 21:59:17 -07:00
sawka
e5d2267f27 minor updates to get state to be consistent 2022-10-27 00:34:16 -07:00
sawka
245a1995e2 parse shellvariables with args 2022-10-25 12:31:07 -07:00
sawka
674a6ef11e grab shell vars with export vars 2022-10-24 21:26:39 -07:00
sawka
5d6c77491f add shell parser 2022-10-24 15:35:01 -07:00
sawka
d8b5508b77 returnstate option for runpk (for sourcing files) 2022-10-22 14:45:31 -07:00
sawka
b9c3940b99 big change to execution, run command as a script and set aliases/funcs 2022-10-16 23:46:59 -07:00
sawka
1c2c8c2f4d return defined bash aliases in initpk 2022-10-15 13:45:52 -07:00
sawka
d8e7c915e5 add sshport and batchmode 2022-09-30 17:22:57 -07:00
sawka
be1e1dfe90 allow context cancelation of install 2022-09-26 23:23:32 -07:00
sawka
ea6b571184 pass context to runinstall for cancelation 2022-09-26 21:10:08 -07:00
sawka
b5c67b6260 refactoring for versioned mshell binaries on remotes 2022-09-26 13:02:34 -07:00
sawka
4550e18b6b version string will now be a real semantic version 2022-09-24 13:53:19 -07:00
sawka
aa1542cfc0 don't overwrite mshell if no input received on stdin during install 2022-09-21 23:51:16 -07:00
sawka
ca61597a19 send uname in initpk. remote space between uname parts 2022-09-21 23:26:53 -07:00
sawka
9702fb648a getsessionsdir 2022-09-20 14:15:39 -07:00
sawka
df80d2ac08 allow MakeClientProc to be canceled with a context 2022-09-16 12:27:14 -07:00
sawka
53d710f709 option to send ssh errors to tty instead of stderr 2022-09-13 17:10:18 -07:00
sawka
ec143de8b4 handle term resize / SIGWINCH, move from mpio to shexec (used UnknownPacketReporter). change signum to signame for cross-system compatibility 2022-09-06 16:40:41 -07:00
sawka
670f54a5b4 checkpoint 2022-09-06 13:58:07 -07:00
sawka
4f4e12c00a add single-from-server option to mshell, send message packets with ck back to server, report unknown packets back to server 2022-09-06 12:57:54 -07:00
sawka
082fb7a8b4 updates to inputpacket. inputpacket is split between datapacket and specialinputpacket 2022-09-05 16:32:08 -07:00
sawka
57b54198e5 limit maxptysize 2022-09-03 23:38:35 -07:00
sawka
39dacb988a default term rows should be 24 (not 25), add min/max values as well 2022-09-03 23:26:57 -07:00
sawka
3936db0429 allow nil for display 2022-08-31 12:45:59 -07:00
sawka
8e4b02cec4 run mshell env in interactive bash shell with a new pty. this picks up special interactive environment vars from bash startup scripts 2022-08-30 00:23:03 -07:00
sawka
db993cf00f add scripthaus.md 2022-08-24 21:33:50 -07:00
sawka
8274d19e0b use interactive shell for environment 2022-08-24 18:57:13 -07:00
sawka
09a072f900 run localhost mshell with cwd at HOME, not in current directory 2022-08-24 02:11:49 -07:00
sawka
f63a851b1a export ParseEnv0 and MakeEnv0 2022-08-22 17:27:55 -07:00
sawka
7d06bc766c rename env to env0. add envcomplete bool 2022-08-22 16:24:53 -07:00
sawka
e26705623b add --env mode to mshell to print cwd and environment (for server initpk). needed because OSX does not support 'env -0' 2022-08-22 15:59:03 -07:00
sawka
86a7cd59e6 use cirfile for detached commands 2022-08-19 15:28:32 -07:00
sawka
26bd499fac update to allow a WriteAt call for cirfiles 2022-08-19 12:51:37 -07:00
sawka
e1eecae6d3 implement WriteAt, refactored and tested append, writeat still needs testing 2022-08-18 21:54:42 -07:00
sawka
38870f9c6e circular file buffer. metadata in header. uses flock to synchronize access. write metadata before and after writing file data. 2022-08-18 20:34:20 -07:00
sawka
77bd1fa7bc return uname 2022-08-17 12:55:12 -07:00
sawka
9542d14473 make mshell home directory during getremoteid 2022-08-16 16:26:06 -07:00
sawka
5a8ffa3544 more complicated compgen for directory vs file completion 2022-08-11 10:21:11 -07:00
sawka
f4515139a1 uniq completions 2022-08-10 18:33:58 -07:00