From: "Petteri Räty" <betelgeuse@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/libbash:master commit in: /
Date: Tue, 24 May 2011 14:50:13 +0000 (UTC) [thread overview]
Message-ID: <dd5cbd758e004e0ae07914a6e03484b3414322b4.betelgeuse@gentoo> (raw)
commit: dd5cbd758e004e0ae07914a6e03484b3414322b4
Author: Petteri Räty <petsku <AT> petteriraty <DOT> eu>
AuthorDate: Tue May 24 14:47:04 2011 +0000
Commit: Petteri Räty <betelgeuse <AT> gentoo <DOT> org>
CommitDate: Tue May 24 14:47:04 2011 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/libbash.git;a=commit;h=dd5cbd75
Merge remote-tracking branch 'mu/declare_builtin' into review
Conflicts:
scripts/command_execution.bash
scripts/command_execution.bash.result
scripts/function_def.bash
scripts/function_def.bash.result
Makefile.am | 3 +
bashast/libbashWalker.g | 24 ++++++-
scripts/command_execution.bash | 2 +
scripts/command_execution.bash.result | 1 +
scripts/function_def.bash | 13 ++++
scripts/function_def.bash.result | 1 +
src/builtins/declare_builtin.cpp | 66 ++++++++++++++++++++
.../{source_builtin.h => declare_builtin.h} | 32 +++++-----
src/builtins/tests/declare_tests.cpp | 66 ++++++++++++++++++++
src/cppbash_builtin.cpp | 2 +
10 files changed, 191 insertions(+), 19 deletions(-)
diff --cc Makefile.am
index bd0bf7b,c8c702b..c4605cd
--- a/Makefile.am
+++ b/Makefile.am
@@@ -97,8 -97,8 +97,9 @@@ cppunittests_SOURCES = test/run_tests.
src/core/tests/symbols_test.cpp \
src/core/tests/interpreter_test.cpp \
src/core/tests/bash_ast_test.cpp \
+ src/core/tests/bash_condition_test.cpp \
src/builtins/tests/echo_tests.cpp \
+ src/builtins/tests/declare_tests.cpp \
src/builtins/tests/boolean_tests.cpp \
src/builtins/tests/source_tests.cpp \
src/builtins/tests/return_tests.cpp \
diff --cc scripts/command_execution.bash
index 6e655e4,344618e..95e1594
--- a/scripts/command_execution.bash
+++ b/scripts/command_execution.bash
@@@ -15,5 -16,4 +16,6 @@@ true || echo "wrong
echo "end"
: ${DEFAULTED:="yes"}
FOO="abc" echo "command environment"
+export FOO003=1 FOO004=abc FOO005=(1 2 3) FOO002
+abc=1 export foo
+ true > /dev/null
diff --cc scripts/command_execution.bash.result
index 9f2ba11,bd09a8b..ae71fa5
--- a/scripts/command_execution.bash.result
+++ b/scripts/command_execution.bash.result
@@@ -4,7 -4,7 +4,8 @@@ righ
right
end
command environment
+We do not support command env before the export builtin.
+ Redirection is not supported yet
DEFAULTED=yes
FOO001=hello
FOO002=Hello World
diff --cc scripts/function_def.bash
index ac99f83,101e732..5be1e36
--- a/scripts/function_def.bash
+++ b/scripts/function_def.bash
@@@ -52,15 -52,15 +52,28 @@@ func_nested2()
func_nested1
}
func_nested2
+
+let() {
+ echo "overloaded let"
+}
+let "1 + 2"
+func_positional_args() {
+ IFS="abc" echo "$*"
+ IFS="abc" echo $*
+ IFS=abc
+ echo "$*"
+ echo $*
+}
+func_positional_args 1 2 3
++
+ if true; then
+ function_in_compound_statement() {
+ echo "function_in_compound_statement"
+ }
+ fi
+ if false; then
+ function_in_compound_statement() {
+ echo "I should not get called"
+ }
+ fi
+ function_in_compound_statement
diff --cc scripts/function_def.bash.result
index e4cdd82,a1c9b91..d3abad0
--- a/scripts/function_def.bash.result
+++ b/scripts/function_def.bash.result
@@@ -1,9 -1,5 +1,10 @@@
hi 1
+overloaded let
+1 2 3
+1 2 3
+1a2a3
+1 2 3
+ function_in_compound_statement
ARG1=100
ARG2=2
ARG3=3
diff --cc src/cppbash_builtin.cpp
index 7334a8e,edbfa8c..88fdf99
--- a/src/cppbash_builtin.cpp
+++ b/src/cppbash_builtin.cpp
@@@ -25,9 -25,9 +25,10 @@@
#include "cppbash_builtin.h"
#include "builtins/boolean_builtins.h"
+ #include "builtins/declare_builtin.h"
#include "builtins/echo_builtin.h"
#include "builtins/inherit_builtin.h"
+#include "builtins/let_builtin.h"
#include "builtins/return_builtin.h"
#include "builtins/source_builtin.h"
next reply other threads:[~2011-05-24 14:50 UTC|newest]
Thread overview: 60+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-24 14:50 Petteri Räty [this message]
-- strict thread matches above, loose matches on Subject: below --
2012-08-19 14:54 [gentoo-commits] proj/libbash:master commit in: / Petteri Räty
2012-06-03 9:08 Petteri Räty
2011-08-04 14:24 Petteri Räty
2011-08-04 14:24 Petteri Räty
2011-08-04 14:24 Petteri Räty
2011-08-04 14:24 Petteri Räty
2011-08-04 14:24 Petteri Räty
2011-08-04 14:24 Petteri Räty
2011-08-04 13:53 Petteri Räty
2011-07-20 14:01 Petteri Räty
2011-07-08 14:03 Petteri Räty
2011-07-08 14:03 Petteri Räty
2011-07-03 20:21 Petteri Räty
2011-06-26 13:38 Petteri Räty
2011-06-26 13:38 Petteri Räty
2011-06-25 10:30 Petteri Räty
2011-06-25 10:05 Petteri Räty
2011-06-16 16:53 Petteri Räty
2011-06-11 8:52 Petteri Räty
2011-06-11 8:52 Petteri Räty
2011-06-11 8:24 Petteri Räty
2011-06-03 14:48 Petteri Räty
2011-06-03 12:43 Petteri Räty
2011-05-27 23:03 Petteri Räty
2011-05-14 14:58 Petteri Räty
2011-05-14 14:58 Petteri Räty
2011-05-12 14:06 Petteri Räty
2011-05-11 7:19 Petteri Räty
2011-05-08 13:07 Petteri Räty
2011-05-07 12:25 Petteri Räty
2011-04-27 15:11 Petteri Räty
2011-04-20 11:26 Petteri Räty
2011-04-17 10:58 Petteri Räty
2011-04-14 4:50 Petteri Räty
2011-04-14 4:50 Petteri Räty
2011-04-12 18:29 Petteri Räty
2011-04-11 6:50 Petteri Räty
2011-04-09 13:08 Petteri Räty
2011-04-08 11:12 Petteri Räty
2011-04-07 16:44 Petteri Räty
2011-04-03 13:46 Petteri Räty
2011-04-03 13:46 Petteri Räty
2011-04-02 15:50 Petteri Räty
2011-03-30 12:48 Petteri Räty
2011-03-27 8:56 Petteri Räty
2011-03-26 19:08 Petteri Räty
2011-03-26 19:08 Petteri Räty
2011-03-26 12:24 Petteri Räty
2011-03-26 12:24 Petteri Räty
2011-03-26 12:24 Petteri Räty
2011-03-26 12:24 Petteri Räty
2011-03-26 12:24 Petteri Räty
2011-03-26 12:24 Petteri Räty
2011-03-26 12:24 Petteri Räty
2011-03-26 12:24 Petteri Räty
2011-03-25 12:11 Petteri Räty
2011-03-17 9:44 Petteri Räty
2011-03-12 11:53 Petteri Räty
2011-03-06 12:05 Petteri Räty
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=dd5cbd758e004e0ae07914a6e03484b3414322b4.betelgeuse@gentoo \
--to=betelgeuse@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox