9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] equality sign in Rc
@ 2017-05-01 19:27 dexen deVries
  2017-05-06  1:53 ` tty0
  0 siblings, 1 reply; 46+ messages in thread
From: dexen deVries @ 2017-05-01 19:27 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

does anybody have a version of Rc that allows unquoted equality sign?

having to quote the character get a bit annoying on POSIX systems (plan9port)



^ permalink raw reply	[flat|nested] 46+ messages in thread
* [9fans] equality sign in Rc
@ 2017-05-13 12:36 trebol
  2017-05-13 13:42 ` Charles Forsyth
                   ` (2 more replies)
  0 siblings, 3 replies; 46+ messages in thread
From: trebol @ 2017-05-13 12:36 UTC (permalink / raw)
  To: 9fans

> does anybody have a version of Rc that allows unquoted equality sign?
>
> having to quote the character get a bit annoying on POSIX systems (plan9port)

You can change the code, I suppose the key file is

        rc/lex.c

You can force rc to setting a variable only if = is surrounded by spaces, like in sh, but then you'll have a lot of problems in plan9/p9p.

I know what you are talking about.

I like the use of = in rc, but there is too much unix in plan9, and a lot of programs are straightforwardly ported. An example is gs, making tests with options in rc is a nightmare.

People say that the problem of Plan9's popularity is the differences with unix, but for me is the opposite. It try to be different being too much similar.

I remember when I discovered it 4 or 5 years ago. I was so happy with the use of utf8 as the system own character coding, I was learning C and I was sick with wchars, multibyte, locales and so on in unix. Then I used troff to write a paper, and surprise!, there is no utf8 support. And the same with spell and other utilities. They were pieces of unix, sewed to the corpse... instead of "Plan 9 from Outer Space", some times It feels more like "Frankenstein".

trebol.



^ permalink raw reply	[flat|nested] 46+ messages in thread
* Re: [9fans] equality sign in Rc
@ 2017-05-15 16:44 trebol
  2017-05-15 21:02 ` Charles Forsyth
  2017-05-16  9:24 ` Charles Forsyth
  0 siblings, 2 replies; 46+ messages in thread
From: trebol @ 2017-05-15 16:44 UTC (permalink / raw)
  To: 9fans

On Mon, 15 May 2017 16:59:45 +0100
Charles Forsyth <charles.forsyth@gmail.com> wrote:

> It would be better then to leave things as they are.
> = is part of rc syntax, like {} and (), and it interprets it, not the
> commands, unless quoted.

I suppose this is the perfect answer to my silly question: why not permit =
after the start of a command?

As I said, = in command arguments should be prohibited!

trebol.



^ permalink raw reply	[flat|nested] 46+ messages in thread
* Re: [9fans] equality sign in Rc
@ 2017-05-15 19:32 sl
  2017-05-15 20:15 ` Erik Quanstrom
  2017-05-16 17:11 ` Kurt H Maier
  0 siblings, 2 replies; 46+ messages in thread
From: sl @ 2017-05-15 19:32 UTC (permalink / raw)
  To: 9fans

Honestly, the equality sign is never a problem for me.
What is the purpose again of making this change?

sl



^ permalink raw reply	[flat|nested] 46+ messages in thread

end of thread, other threads:[~2017-05-16 18:40 UTC | newest]

Thread overview: 46+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-01 19:27 [9fans] equality sign in Rc dexen deVries
2017-05-06  1:53 ` tty0
2017-05-06  7:43   ` Sean Callanan
2017-05-06 13:20     ` Steve Simon
2017-05-06 19:09       ` Sean Callanan
2017-05-06 20:14     ` Nick Owens
2017-05-13 12:36 trebol
2017-05-13 13:42 ` Charles Forsyth
2017-05-13 14:21   ` trebol
2017-05-13 16:53     ` Charles Forsyth
2017-05-13 22:41       ` Bruce Ellis
2017-05-14  9:56 ` Charles Forsyth
2017-05-14 15:36   ` trebol
2017-05-14 22:31     ` erik quanstrom
2017-05-15  8:58       ` Charles Forsyth
2017-05-15 11:48         ` trebol
2017-05-15 11:54           ` Charles Forsyth
2017-05-15 11:55             ` Charles Forsyth
2017-05-15 11:56             ` Charles Forsyth
2017-05-15 15:37               ` Erik Quanstrom
2017-05-15 15:42                 ` Charles Forsyth
2017-05-15 15:54                   ` Erik Quanstrom
2017-05-15 15:59                     ` Charles Forsyth
2017-05-15 16:30                       ` Giacomo Tesio
2017-05-15 16:36                         ` Charles Forsyth
2017-05-15 18:25                           ` Giacomo Tesio
2017-05-15 16:43                         ` trebol
2017-05-15 18:33                           ` trebol
2017-05-15 21:06                             ` Charles Forsyth
2017-05-15 21:48                               ` trebol
2017-05-15 23:38                                 ` trebol
2017-05-15 23:59                                   ` trebol
2017-05-14 22:36     ` trebol
2017-05-14 22:38 ` erik quanstrom
2017-05-15 11:35   ` hiro
2017-05-15 11:45     ` trebol
2017-05-15 16:44 trebol
2017-05-15 21:02 ` Charles Forsyth
2017-05-16  9:24 ` Charles Forsyth
2017-05-16 15:59   ` Erik Quanstrom
2017-05-16 17:07     ` Giacomo Tesio
2017-05-15 19:32 sl
2017-05-15 20:15 ` Erik Quanstrom
2017-05-16 17:11 ` Kurt H Maier
2017-05-16 18:27   ` hiro
2017-05-16 18:40   ` Giacomo

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).