|
Last change
on this file since 3377 was 3320, checked in by Bruno Cornec, 11 years ago |
- Re-add (thanks git BTW) the 2.2.9 branch which had been destroyed in
the move to 3.0
|
-
Property svn:executable
set to
*
|
|
File size:
307 bytes
|
| Line | |
|---|
| 1 | a=a
|
|---|
| 2 |
|
|---|
| 3 | b=b
|
|---|
| 4 | c=c
|
|---|
| 5 | # Second assignment depends on the first:
|
|---|
| 6 | b=$a c=$b
|
|---|
| 7 | echo Assignments only: c=$c
|
|---|
| 8 |
|
|---|
| 9 | b=b
|
|---|
| 10 | c=c
|
|---|
| 11 | b=$a c=$b "$THIS_SH" -c 'echo Assignments and a command: c=$c'
|
|---|
| 12 |
|
|---|
| 13 | b=b
|
|---|
| 14 | c=c
|
|---|
| 15 | b=$a c=$b eval 'echo Assignments and a builtin: c=$c'
|
|---|
| 16 |
|
|---|
| 17 | b=b
|
|---|
| 18 | c=c
|
|---|
| 19 | f() { echo Assignments and a function: c=$c; }
|
|---|
| 20 | b=$a c=$b f
|
|---|
| 21 |
|
|---|
| 22 | echo Done
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.