9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "有澤 健治" <karisawa@gmail.com>
To: 9fans@9fans.net
Subject: Re: [9fans] decomp for rc script
Date: Fri, 17 Dec 2021 08:58:01 +0900	[thread overview]
Message-ID: <08182dee-532d-5e7d-7376-7cb8d3d276ec@gmail.com> (raw)
In-Reply-To: <0129A077D4F2ECF5F474DC499044169D@eigenstate.org>

Hello 9fans.

 >There's aux/getflags. For example:
Thanks for the info.

Now, I reconsider:
(a) decomp should always end with error in illegal syntax.
currently
     echo :d -d | decomp
does not end with error. this should be a BUG, which is easy to fix.
(b) AWK is inappropriate for decomp. I will rewrite decomp in C.
then the usage in rc will be:
     * = `{decomp flg:opt $*}

Kenji Arisawa


On 2021/12/16 11:05, ori@eigenstate.org wrote:
> Quoth 有澤 健治 <karisawa@gmail.com>:
>> Maybe someone already have a tool of this sort,
>> or "decomp" may be improved to be better one,
>> or there are more bugs in it,
>> then information is welcome.
> There's aux/getflags. For example:
> 
> flagfmt='d:debug, b:branch branch'; args='remote [local]'
> eval `''{aux/getflags $*} || exec aux/usage
> if(~ $debug 1)
>         debug=(-d)
> 

------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T0ceb5dd708ebfd4f-M831bb95d8a3575e0a983ba73
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

  reply	other threads:[~2021-12-16 23:58 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-16  1:59 有澤 健治
2021-12-16  2:05 ` ori
2021-12-16 23:58   ` 有澤 健治 [this message]
2021-12-18  0:09     ` Conor Williams
2021-12-18  0:37       ` Conor Williams
2021-12-22  6:17     ` 有澤 健治

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=08182dee-532d-5e7d-7376-7cb8d3d276ec@gmail.com \
    --to=karisawa@gmail.com \
    --cc=9fans@9fans.net \
    /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).