1
0
mirror of https://github.com/albfan/bash-ini-parser.git synced 2025-04-19 13:22:14 +03:00

63 Commits

Author SHA1 Message Date
Alberto Fanjul
54d57f6941 Avoid to wrap values in commas 2020-08-28 21:10:49 +02:00
Alberto Fanjul
dcbd07d911 protect variables from fail on whitespace 2020-08-28 21:10:25 +02:00
Pavel Rehak
ffc12d2070 Test case - array. 2020-08-28 20:57:27 +02:00
Alberto Fanjul
1135d4e95d bash: Extglob difference from bash 3 to 4
bash3 seems to be nongreedy
2020-08-28 20:40:16 +02:00
Alberto Fanjul
84977f91c3 whitespace 2020-08-28 20:40:16 +02:00
Alberto Fanjul
f19ab7e76b Better debug messages 2020-08-28 20:40:16 +02:00
Alberto Fanjul
9368387ce8 Append values correctly to a section 2020-08-28 17:14:54 +02:00
Milan Balazs
0191989671 Set back the previous "IFS"
The "cfg_parser" function set the "IFS" but it doesn't set back the "old" one. If you source and use the parser then it is possible that your IFS will be changed on caller side.
2020-07-20 09:32:55 +02:00
Alberto Fanjul
9ac248213b Match CI environment 2020-06-23 07:52:52 +02:00
Alberto Fanjul
68b044329d Remove execution from script 2020-06-22 15:09:41 +02:00
Alberto Fanjul
d9dfb77033 Allow subsections 2020-06-22 15:01:18 +02:00
Alberto Fanjul
df7ed8550d Correct error code on invalid test 2020-06-22 13:53:00 +02:00
Alberto Fanjul
5c83fa6d0e Improve script example execution 2020-06-22 13:53:00 +02:00
Alberto Fanjul
dfc4ecda7f buildsystem update 2020-06-22 13:53:00 +02:00
Ash Jindal
0549d9d308 Fixed typo in README 2019-04-15 18:25:32 +02:00
Alberto Fanjul
093c1b3020 Test on Mac
fixes #27
2018-06-28 08:24:10 +02:00
Alberto Fanjul
2b8abaf615 debug flag compatible with bash 3.x
-v conditional is not supported on bash 3.x
2018-06-28 08:09:46 +02:00
Alberto Fanjul
cd0a4314b1 detect failures or expected failures 2018-05-27 12:55:44 +02:00
Alberto Fanjul
65721b3ecb add manually test-driver 2018-05-27 12:55:44 +02:00
Pavel Rehak
7d10b0d0a0 Use stderr instead of a file. 2018-05-26 12:17:51 +02:00
Pavel Rehak
6ed878d1b0 Unwanted file test.
File "2" is created after using cfg_writer.
2018-05-26 12:17:05 +02:00
Pavel Rehak
45ecd6c72e Remove duplication from created ini file.
t0006
2018-05-26 12:12:20 +02:00
Alberto Fanjul
47dddefc36 Show errors on CI 2018-05-26 12:05:12 +02:00
Pavel Rehak
0ce2bee87b Update variable test. 2018-05-25 19:47:53 +02:00
Alberto Fanjul
cc2f5542d7 test: mark test as success 2018-05-25 07:01:47 +02:00
Pavel Rehak
c59e84c66d length=${#FUNCNAME/#cfg_section_;[*]}: bad substitution - solution 2018-05-25 07:01:47 +02:00
Alberto Fanjul
f444e64fee test: mark test as failed 2018-05-25 07:01:47 +02:00
Alberto Fanjul
06cb76faa6 test: adding test to test suite 2018-05-25 07:01:47 +02:00
Pavel Rehak
66c0ef705e Test case - create new var.
.../bash-ini-parser/t$ bash t0005-new_var.sh
not ok 1 - Parse new var
1..1
2018-05-24 17:59:52 +02:00
albfan
695e55f986 Add projects using bash-ini-parser 2018-05-07 08:03:05 +02:00
albfan
8fb28305a4 Add GPLv3 license 2018-05-07 08:03:05 +02:00
albfan
d73cdd267d rename test to whitespace
Add more whitespace test
2018-01-27 09:37:23 +01:00
albfan
739196e824 Add continuous integration 2018-01-23 01:38:40 +01:00
albfan
c6a35fc28b remove only real comments
fixes #12
2018-01-22 22:58:51 +01:00
albfan
b55c55f5fd move comments to debug 2018-01-22 22:58:37 +01:00
albfan
4e9ab7ab5c fix whitespace 2018-01-22 22:58:37 +01:00
albfan
0184648014 add broken test for comments 2018-01-22 22:58:37 +01:00
albfan
2ddf0abc5c add dynamic DEBUG 2018-01-22 22:58:37 +01:00
albfan
6e2175dc72 fix typo 2018-01-22 22:43:28 +01:00
Bruno Galindro da Costa
871153778b Remove hashtag comments 2017-12-16 16:31:25 +01:00
Nasir Iqbal
86622e1cbe dos2unix issue fixed 2017-12-16 16:25:44 +01:00
albfan
7ccb706eb1 add tap test output 2015-06-29 22:01:36 +02:00
albfan
a5e1dd880d add continuous integration 2015-05-17 11:02:48 +02:00
albfan
38a73044cf remove example test case file 2015-05-17 10:48:23 +02:00
albfan
f39fc72170 test sections
closes #4
2015-05-17 10:47:57 +02:00
albfan
763965c8b8 project is bash dependent 2015-05-17 09:48:58 +02:00
albfan
1be6551065 test invalid ini files
it is break by now

relates to #4
2015-05-16 21:35:31 +02:00
albfan
389ef3f00f whitespace use case
relates to #4
2015-05-16 20:43:48 +02:00
albfan
f2c5703806 operate by section 2015-05-16 20:37:43 +02:00
albfan
d0681d2421 unset function
clear previous definition (if exist) before load it

closes #6
2015-05-16 20:36:27 +02:00