[Top][All Lists]

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

Re: Word splitting and arithmetic expansion

From: Jan Schampera
Subject: Re: Word splitting and arithmetic expansion
Date: Wed, 29 Dec 2010 12:25:40 +0100
User-agent: Mozilla-Thunderbird (X11/20100329)

Chet Ramey wrote:

Arithmetic expansion is a Posix invention.  It's treated just like every
other expansion: split unless double quoted.  There's no compelling
reason to make it behave differently.

I don't want it to behave differently :)

Okay, so it's just "as is", because by consistent design all expansions are subject to WS (with some exceptions).

Pathname expansion happens after word splitting.  Tilde expansion is the
one that's not subject to word splitting.

This is clear, it was an unlucky example (pathname expansion's location in the processing is where it is to prevent WS, but tilde expansion is a better example since it happens before WS and is excluded from WS).


Be conservative in what you do, be liberal in what you accept from others.
- jbp, master of the net, in RFC793

reply via email to

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