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

Re: broken shell script with dash



On 2011-03-28 09:10:07 Michael P. Soulier wrote:
>Is this syntax not supported by posix?
>
>cat /etc/aliases.{1,2} > /etc/aliases

No, brace expansion is not required by any (published[1]) edition of POSIX or 
the Single UNIX Specification.

For this case though, you can generally use (cat /etc/aliases.[12] > 
/etc/aliases).

[1] I'm not sure about the work-in-progress SUSv4 or a work-in-progress POSIX, 
if one exists.
-- 
Boyd Stephen Smith Jr.           	 ,= ,-_-. =.
bss@iguanasuicide.net            	((_/)o o(\_))
ICQ: 514984 YM/AIM: DaTwinkDaddy 	 `-'(. .)`-'
http://iguanasuicide.net/        	     \_/

Attachment: signature.asc
Description: This is a digitally signed message part.


Reply to: