9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] Globbing
@ 2004-03-19 14:59 lucio
  0 siblings, 0 replies; 3+ messages in thread
From: lucio @ 2004-03-19 14:59 UTC (permalink / raw)
  To: 9fans

For the record, I have no trouble agreeing with dvd, although I'm
speaking from a weak position: I have not explored all the possible
consequences of changing the globbing rules to remove duplications.

I think forsyth put his agnostic view rather well, but in my opinion
applying a uniqueness filter would be esthetically preferable.

As for consequences, here are a few data points.

* I don't think there are any advantages to retaining duplicates, they
  just clutter scripts that have to deal with them.

* It isn't always possible and it is never clean to apply filtering to
  the output of the globbing operation.  At least, to the best of my
  knowledge.  We are talking about the command line, here.  A
  particular ugly case would be

	> x*

  just to stir the pot a little further.  But of course that could be
  taken as an argument in favour of either standpoint.

* It is a change in the league of another similarly controversial
  difference between rc and the traditional Unix shells (or is it
  exec(2)?).  Lack of a leading /, ./ or ../ allows rc to use the "path"
  variable to determine the origin of an executable, whereas the
  presence of a slash anywhere in the command name suppresses this
  behaviour in traditional Unix shells.

You should have seen the confusion, consternation and outright
resentment a question on this last subject caused on a NetBSD mailing
list.  It didn't help that I used the term "absolute" to describe a
pathname starting with /, ./ or ../ and "relative" for one that
didn't.

++L

PS: One NetBSD contributor suggested making up a version of the shell
with behaviour more similar to rc's.  I refrained from pointing out
that rc was as good as I needed, in that case.



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

* RE: [9fans] Globbing
  2004-03-19 15:05 Tiit Lankots
@ 2004-03-19 15:13 ` lucio
  0 siblings, 0 replies; 3+ messages in thread
From: lucio @ 2004-03-19 15:13 UTC (permalink / raw)
  To: 9fans

> my point exactly 

I think rminnich had a point :-)

How about a dynamically loadable link module so one could choose
different types of globbing?

Oh, I forget Plan 9 does not have dynamic linking.  What a relief!

++L

PS: Tongue firmly planted in cheek, need I mention?



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

* RE: [9fans] Globbing
@ 2004-03-19 15:05 Tiit Lankots
  2004-03-19 15:13 ` lucio
  0 siblings, 1 reply; 3+ messages in thread
From: Tiit Lankots @ 2004-03-19 15:05 UTC (permalink / raw)
  To: 9fans

my point exactly 


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

end of thread, other threads:[~2004-03-19 15:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-19 14:59 [9fans] Globbing lucio
2004-03-19 15:05 Tiit Lankots
2004-03-19 15:13 ` lucio

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