From: cinap_lenrek@felloff.net
To: 9front@9front.org
Subject: Re: [9front] [PATCH] rio: allow spaces in working directory path (-cd) when creating a new window
Date: Thu, 25 Nov 2021 10:57:41 +0100 [thread overview]
Message-ID: <B884909AAC83761D18BC037BEB08577E@felloff.net> (raw)
In-Reply-To: <0F86B9BF6BB00E5721AFCE94A8A6FECF@9lab.org>
yeah, wctl is ugly.
probably is better to parse everything using gettokens().
as your patch doesnt handle quoting the quotes.
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'}
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.
--
cinap
next prev parent reply other threads:[~2021-11-25 10:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-25 2:17 igor
2021-11-25 9:57 ` cinap_lenrek [this message]
2021-11-25 10:40 ` igor
2021-11-29 0:29 ` igor
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=B884909AAC83761D18BC037BEB08577E@felloff.net \
--to=cinap_lenrek@felloff.net \
--cc=9front@9front.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).