bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Brace expansion error


From: Chet Ramey
Subject: Re: Brace expansion error
Date: Mon, 16 Dec 2002 16:45:51 -0500

> echo ~/{"old"}
> echo ~/{"old","new","dist","bugs"}
> 
> Results in:
> 
> /root/{old}
> /root/old /root/new /root/dist /root/bugs
> 
> When there is only one element, braces do not expand.

As documented:

       A correctly-formed brace expansion must  contain  unquoted
       opening  and  closing  braces,  and  at least one unquoted
       comma.  Any incorrectly formed  brace  expansion  is  left
       unchanged.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet )

Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]