Quoth cinap_lenrek@felloff.net: […] > probably is better to parse everything using gettokens(). > as your patch doesnt handle quoting the quotes. […] Done. Using gettokens(…) instead of the previous hack. > the whole window command also will probably have issues with > this kind of stuff... the quoting is definitely messed up in > there. > > tho it is possible to quote from rc, like: > > fn q {a=$1 whatis a | sed 's!^a=!!;q'} […] Done. Thanks for the tip with quoting from rc. > or even get rid of wctl all together... it is a bit silly given > you can just fork and mount $wsys yourself... then there are not > two different code paths for creating a window. […] The attached patch fixes the use case with spaces in paths for the -cd option for wctl and window command. Agree that two *different* code paths in /rc/bin/window for creating a window is a bit silly. Will work on unifying that in the next revision of the patch… Thanks. Cheers, Igor