Gentoo Archives: gentoo-portage-dev

From: Sebastian Pipping <sping@g.o>
To: gentoo-portage-dev@l.g.o
Subject: Re: [gentoo-portage-dev] Google Summer of Code: Bash AST and grammar
Date: Wed, 21 Jul 2010 16:21:30
Message-Id: 4C471182.8050306@gentoo.org
In Reply to: Re: [gentoo-portage-dev] Google Summer of Code: Bash AST and grammar by Sebastian Pipping
1 On 07/21/10 16:56, Sebastian Pipping wrote:
2 > A few things I haven't seen, yet:
3 >
4 > # Adjacent changes in quotation
5 > echo "abc"'"'"def" # Makes abc"def
6 >
7 > # Escape sequences like ..
8 > echo "abc\"def"
9 >
10 > # Invocation from ibnside strings
11 > echo "foo $(echo foo), bar `echo bar`"
12 >
13 > # Heredocs (and their variations ..)
14 > cat <<EOF >/dev/stdout
15 > 1
16 > 2
17 > EOF
18 >
19 > # Construct of $((..))
20 > # Refs to variable withzout "$" upfront
21 > z=3; echo $((z+3))
22
23 An important one I forgot:
24
25 # Line continuation
26 echo one \
27 two
28
29 Potentially hase quite a few sub cases ..
30
31 Best,
32
33
34
35 Sebastian

Replies

Subject Author
Re: [gentoo-portage-dev] Google Summer of Code: Bash AST and grammar Nathan Eloe <powerofazure@×××××.com>