Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > alt.os.linux.debian > #7430

Re: mc finds more than `find` finds?

Newsgroups comp.os.linux.misc, alt.os.linux.debian, alt.os.linux.slackware
Subject Re: mc finds more than `find` finds?
References (2 earlier) <n3cjvm$5v8$1@dont-email.me> <n3cq2q$t2i$1@dont-email.me> <n3cqud$25a$1@dont-email.me> <87y4dh7sol.fld@barrow.com> <martijn-A8CAB7.16351529112015@news.individual.net>
From floyd@apaflo.com (Floyd L. Davidson)
Organization __________
Date 2015-11-29 10:49 -0900
Message-ID <87lh9g7fhj.fld@barrow.com> (permalink)

Cross-posted to 3 groups.

Show all headers | View raw


Martijn Dekker <martijn@inlv.demon.nl> wrote:
>In article <87y4dh7sol.fld@barrow.com>,
> floyd@apaflo.com (Floyd L. Davidson) wrote:
>
>> Both opening and closing braces are reserved words.
>
>Yes, '{' and '}' are reserved words, but '{}' is not a reserved word.
>(Something can only be a "word" if it's separated by blanks.)
>
>In any case the concept of a reserved word doesn't apply to command
>arguments, so it's moot.

You have removed and then changed the context to which
my statement applied.

The point is still very simple: braces are reserved
words.  They do get "interpreted", and the statement I
replied to incorrectly said they don't.

Your definition of "word" is parochial, and does not
necessarily apply to use of that term in a shell.  From
the bash man page:

 word   A sequence of characters considered as a single unit
        by the shell.  Also known as a token.

Clearly '{}' is a pair of tokens to the parsing engine.
In some contexts they each cause a "word break", and in
other contexts they do not.  When used to delimit a list
they do not cause a break and must be surrounded by
spaces.  When interpreted for expansion there is no need
for a space.

>> Try this:
>>
>>  $ echo "Now "{'is','is not'}" the time."
>>
>> Or something simple,
>>
>>  $ echo a{b,c,d}e
>
>This is brace expansion, which is a non-standard[*] extension to
>globbing. It's completely distinct from the reserved words '{' and '}'
>which are for delimiting code blocks.

Brace expansion has not been standardized, but it is in
almost all major shells.  It needs to be understood by
a shell programmer.

>[*] Brace expansion is supported by bash, *ksh and zsh but not by
>standard sh implementations such as dash or yash.
>
>- M.

-- 
Floyd L. Davidson                         http://www.apaflo.com/
Ukpeagvik (Barrow, Alaska)                      floyd@apaflo.com

Back to alt.os.linux.debian | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

mc finds more than `find` finds? WhoCares@gmail.com - 2015-11-28 00:37 +0000
  Re: mc finds more than `find` finds? William Unruh <unruh@invalid.ca> - 2015-11-28 00:52 +0000
    Re: mc finds more than `find` finds? Arkadiusz Drabczyk <arkadiusz@domain.invalid> - 2015-11-28 16:15 +0000
      Re: mc finds more than `find` finds? William Unruh <unruh@invalid.ca> - 2015-11-28 17:59 +0000
        Re: mc finds more than `find` finds? Teemu Likonen <tlikonen@iki.fi> - 2015-11-28 20:07 +0200
          Re: mc finds more than `find` finds? William Unruh <unruh@invalid.ca> - 2015-11-28 20:44 +0000
            Re: mc finds more than `find` finds? Teemu Likonen <tlikonen@iki.fi> - 2015-11-29 12:41 +0200
        Re: mc finds more than `find` finds? Arkadiusz Drabczyk <arkadiusz@domain.invalid> - 2015-11-28 18:14 +0000
          Re: mc finds more than `find` finds? floyd@apaflo.com (Floyd L. Davidson) - 2015-11-28 11:52 -0900
            Re: mc finds more than `find` finds? Martijn Dekker <martijn@inlv.demon.nl> - 2015-11-29 16:35 +0100
              Re: mc finds more than `find` finds? floyd@apaflo.com (Floyd L. Davidson) - 2015-11-29 10:49 -0900
                Re: mc finds more than `find` finds? Richard Kettlewell <rjk@greenend.org.uk> - 2015-11-29 20:24 +0000
                Re: mc finds more than `find` finds? floyd@apaflo.com (Floyd L. Davidson) - 2015-11-29 14:09 -0900
                Re: mc finds more than `find` finds? Richard Kettlewell <rjk@greenend.org.uk> - 2015-11-30 09:24 +0000
                Re: mc finds more than `find` finds? Eef Hartman <E.J.M.Hartman@gmail.com> - 2015-11-30 10:08 +0000
              Re: mc finds more than `find` finds? William Unruh <unruh@invalid.ca> - 2015-11-29 20:07 +0000
              Re: mc finds more than `find` finds? Eef Hartman <E.J.M.Hartman@gmail.com> - 2015-11-29 20:10 +0000
            Re: mc finds more than `find` finds? no.top.post@gmail.com - 2016-01-04 23:07 +0000
              Re: mc finds more than `find` finds? The Natural Philosopher <tnp@invalid.invalid> - 2016-01-04 23:27 +0000
                Re: mc finds more than `find` finds? Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2016-01-04 19:28 -0500
              Re: mc finds more than `find` finds? Jerry Peters <jerry@example.invalid> - 2016-01-05 21:05 +0000
  Re: mc finds more than `find` finds? marrgol <marrgol@address.invalid> - 2015-11-28 02:22 +0100
  Re: mc finds more than `find` finds? Joe Beanfish <joebeanfish@nospam.duh> - 2015-11-30 15:59 +0000
    Re: mc finds more than `find` finds? Unknown <dog@gmail.com> - 2016-01-03 12:52 +0000

csiph-web