[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: cd with multiple arguments?
From: |
Eric Blake |
Subject: |
Re: cd with multiple arguments? |
Date: |
Thu, 09 Dec 2010 09:30:56 -0700 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.12) Gecko/20101103 Fedora/1.0-0.33.b2pre.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.6 |
On 09/23/2010 10:47 AM, Keith Thompson wrote:
> I'm not sure whether this is a bug (the documentation doesn't address
> this case), but it's at least mildly annoying.
>
> If you invoke the "cd" commands with extra arguments after the directory
> name, all the extra arguments are silently ignored.
I would really love it if bash copied the zsh behavior here:
cd a b
tries to find a directory matching the extglob
a+([$' \t'])b
and fails if there are multiple matches or no matches. Certainly less
typing than remembering to quote the argument, via cd 'a b'.
--
Eric Blake eblake@redhat.com +1-801-349-2682
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
- cd with multiple arguments?, Keith Thompson, 2010/12/09
- Re: cd with multiple arguments?, Keith Thompson, 2010/12/09
- Re: cd with multiple arguments?,
Eric Blake <=
- Re: cd with multiple arguments?, Chet Ramey, 2010/12/09
- Re: cd with multiple arguments?, Marc Herbert, 2010/12/10
- Re: cd with multiple arguments?, Chris Jones, 2010/12/10
- Re: cd with multiple arguments?, Marc Herbert, 2010/12/13
- Message not available
- Re: cd with multiple arguments?, Stephane CHAZELAS, 2010/12/13
- Re: cd with multiple arguments?, Marc Herbert, 2010/12/14
- Re: cd with multiple arguments?, Chris F.A. Johnson, 2010/12/14
- Re: cd with multiple arguments?, Marc Herbert, 2010/12/15
- Re: cd with multiple arguments?, Illia Bobyr, 2010/12/15
- Re: cd with multiple arguments?, Marc Herbert, 2010/12/17