On Dec 9, 10:05 am, Jeff Terrell <jeff.terr...@acm.org> wrote:
> (pasted this in from dead.bashbug when the mail failed.)
>
> Configuration Information [Automatically generated, do not change]:
> Machine: i486
> OS: linux-gnu
> Compiler: gcc
> Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i486' -
> DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i486-pc-linux-gnu' -
> DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash' -
> DSHELL -DHAVE_CONFIG_H   -I.  -I../bash -I../bash/include -I../bash/
> lib   -g -O2 -Wall
> uname output: Linux art 2.6.24-23-generic #1 SMP Mon Jan 26 00:13:11  
> UTC 2009 i686 GNU/Linux
> Machine Type: i486-pc-linux-gnu
>
> Bash Version: 3.2
> Patch Level: 39
> Release Status: release
>
> Description:
> The meta-{ command should automatically expand filenames that match the
> current prefix into a {,,,} list.  I found a test case for which this
> does not work correctly.
>
> Repeat-By:
> $ mkdir tmp; cd tmp
> $ cat | xargs touch  # paste the following lines in; terminate with ^d
> app-controllers-account_reminders_controller_rb.html
> app-controllers-accounts_controller_rb.html
> app-controllers-account_settings_controller_rb.html
> app-controllers-application_rb.html
> app-controllers-backup_aging_controller_rb.html
> app-controllers-backup_verification_controller_rb.html
> app-controllers-controller_represents_rb.html
> app-controllers-dashboard_controller_rb.html
> app-controllers-domains_controller_rb.html
> app-controllers-file_spaces_controller_rb.html
> app-controllers-help_pages_controller_rb.html
> app-controllers-licenses_controller_rb.html
> app-controllers-logs_controller_rb.html
> app-controllers-nodes_controller_rb.html
> app-controllers-node_test_cases_controller_rb.html
> app-controllers-platforms_controller_rb.html
> app-controllers-preferences_controller_rb.html
> app-controllers-rubyamf_controller_rb.html
> app-controllers-sessions_controller_rb.html
> app-controllers-storage_visualizer_controller_rb.html
> app-controllers-support_controller_rb.html
> app-controllers-sweeps_controller_rb.html
> app-controllers-tsm_servers_controller_rb.html
> ^d
> $ rm <meta-{>  # expands to a long list of filenames
> rm: cannot remove `app-controllers-account__controller_rb.html': No such
> file or directory
> $ rm <meta-{>  # expands to: app-controllers-accounts_controller_rb.html
>
> Thanks,
> -Jeff T.

That was under Ubuntu 9.10 for Bash 4.0.33(1)-release, by the way.

It also works for me under cygwin in Bash 3.2.49(23)-release.

One thing I noticed is that the error message for rm has two
underscores in a row. Is that just a typo (or "pasto")?

Reply via email to