FEATURE REQ: make bzr ignore accept multiple arguments

Aaron Bentley aaron.bentley at utoronto.ca
Mon Sep 12 17:06:35 BST 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jari Aalto wrote:
> This seemed like natural:
> 
>      $ bzr ignore '*.tmp' '*.bak' '*.rej' '*.orig'
>      bzr: ERROR: extra argument to command ignore: *.bak
> 
> Hm? Please extend the command to accept multiple arguments.

The reason for that was the way glob expansion works in most shells.
If you had, say foo.tmp and bar.tmp in your directory, then your shell
would expand *.tmp to foo.tmp bar.tmp, and ignore only those two files.
 So one easy way of detecting an accidental expansion is to refuse more
than one argument.

Yes, we realize that you can quote '*.tmp'-- what we were trying to
avoid was silently doing the wrong thing.

BTW, *.tmp, *.bak and *.orig are already in the default ignore list.

Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDJaeL0F+nu1YWqI0RAog4AJ47a4t7n2ZNhIbNdNxZ1TUGItu/vgCeJw9Q
uWazYWO3/XacX2metDkGkxQ=
=olke
-----END PGP SIGNATURE-----




More information about the bazaar mailing list