plan9fox/sys
Igor Böhm 614f1d6268 rio: allow spaces in working directory path (-cd) when creating a new window via wctl
The initial working directory of a new window may be set by a
`-cd directory` option. However, the `-cd directory` option is
not capable of handling paths with spaces when used via wctl.

To enable paths with spaces the function
/sys/src/cmd/rio/wctl.c:/^parsewctl is extended to handle quoted
directory paths.

Before applying the patch the following will fail to open a new
window by writing to /dev/wctl:

<snip>
 % rio -i window
 % mkdir '/tmp/path with space'
 % echo new -cd '''/tmp/path with space''' window -x rc >> /dev/wctl
 % pwd
 /tmp/path with space
<snap>

The following invocation fails as well:

<snip>
 % window -cd '/tmp/path with space'
 % pwd
 /tmp/path with space
<snap>

After applying the patch the above sequences work as expected,
opening a window running rc with the working directory set to
'/tmp/path with space'.
2021-11-29 00:06:45 +00:00
..
doc /sys/doc/troff.ms: give correct path for -m flag (thanks kyle) 2021-11-01 11:28:52 +00:00
games/lib fortunes: unremove 2021-07-08 15:47:49 +00:00
include devssl, cpu, import, oexportfs: delete 2021-12-13 02:17:02 +00:00
lib mainly just spelling and typos 2021-11-01 20:49:43 +00:00
man git(1): fix quotes in git/conf example 2021-12-15 22:45:59 +00:00
src rio: allow spaces in working directory path (-cd) when creating a new window via wctl 2021-11-29 00:06:45 +00:00