Groups | Search | Server Info | Keyboard shortcuts | Login | Register


Groups > comp.unix.shell > #26626

extglob

From Frank Winkler <usenet@f.winkler-ka.de>
Newsgroups comp.unix.shell
Subject extglob
Date 2026-02-17 12:57 +0100
Message-ID <mvj3ciFpnesU1@mid.individual.net> (permalink)

Show all headers | View raw


Hi experts !

I'm just playing with bash's "extglob" option:

$ shopt -s extglob
$ echo /etc/ssh/sshd_config?(.d)
/etc/ssh/sshd_config /etc/ssh/sshd_config.d
$

So far, so good. But now I want to catch the global file and potential 
custom files.

$ echo /etc/ssh/sshd_config?(.d/*)
/etc/ssh/sshd_config
$

I would accept this if there were no files in the directory but in fact, 
there is one. Where's my brain fault?

And to my understanding, ksh behaves like this by default, right?

Regards

	Frank

Back to comp.unix.shell | Previous | NextNext in thread | Find similar


Thread

extglob Frank Winkler <usenet@f.winkler-ka.de> - 2026-02-17 12:57 +0100
  Re: extglob Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2026-02-17 14:59 +0000
    Re: extglob Frank Winkler <usenet@f.winkler-ka.de> - 2026-02-17 17:38 +0100
    Re: extglob Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2026-02-17 16:43 +0000
      Re: extglob Frank Winkler <usenet@f.winkler-ka.de> - 2026-02-17 17:53 +0100
        Re: extglob Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2026-02-17 18:30 +0100
          Re: extglob Richard Harnden <richard.nospam@gmail.invalid> - 2026-02-17 21:16 +0000
            Re: extglob Frank Winkler <usenet@f.winkler-ka.de> - 2026-02-18 09:46 +0100
        Re: extglob Helmut Waitzmann <nn.throttle@erine.email> - 2026-02-17 22:08 +0100
          Re: extglob Frank Winkler <usenet@f.winkler-ka.de> - 2026-02-18 09:54 +0100
        Re: extglob Lawrence D’Oliveiro <ldo@nz.invalid> - 2026-02-17 21:49 +0000
          Re: extglob Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2026-02-17 23:27 +0100
          Re: extglob Frank Winkler <usenet@f.winkler-ka.de> - 2026-02-18 09:51 +0100
            Re: extglob Frank Winkler <usenet@f.winkler-ka.de> - 2026-02-18 13:43 +0100
              Re: extglob Richard Harnden <richard.nospam@gmail.invalid> - 2026-02-18 14:32 +0000
                Re: extglob Frank Winkler <usenet@f.winkler-ka.de> - 2026-02-18 15:57 +0100
            Re: extglob Lawrence D’Oliveiro <ldo@nz.invalid> - 2026-02-18 21:12 +0000
        Re: extglob Lumin Etherlight <lumin@etherlight.link> - 2026-02-18 04:42 +0300

csiph-web