9front - general discussion about 9front
 help / color / mirror / Atom feed
From: Ethan Gardener <eekee57@fastmail.fm>
To: 9front@9front.org
Subject: Re: [9front] man rc patch
Date: Sun, 11 Nov 2018 11:32:14 +0000	[thread overview]
Message-ID: <1541935934.1883208.1572931672.480E2ACD@webmail.messagingengine.com> (raw)
In-Reply-To: <666DC733283F0655D5B3D817FDB6BF28@musolino.id.au>

On Sun, Nov 11, 2018, at 6:59 AM, Alex Musolino wrote:
> Why not just fix it?  This patch [1] seems to do the trick for me.
> 
> Perhaps also worth mentioning is that $"1 is redundant, since $#1 is
> always 1; just say $1.

why add code to support something which doesn't make sense? :)  i thought it was a bug years ago, but then i realised there is no need for it.  unlike the bourne shell, rc doesn't have an obsession with breaking up strings.  once you've got a string in a variable, it's not going to be split again unless passed to eval.  in fact, supporting $"1 could be said to be deceitful, hiding this great feature from newcomers. ;)


  reply	other threads:[~2018-11-11 11:32 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-11  6:59 Alex Musolino
2018-11-11 11:32 ` Ethan Gardener [this message]
2018-11-11 17:14   ` Joe M
2018-11-11 17:16     ` Joe M
2018-11-14 15:56       ` Ethan Gardener
2018-11-15 18:00 cinap_lenrek
2018-11-15 19:17 cinap_lenrek
2018-11-16  0:47 Alex Musolino
2018-11-16  7:32 cinap_lenrek

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=1541935934.1883208.1572931672.480E2ACD@webmail.messagingengine.com \
    --to=eekee57@fastmail.fm \
    --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).