2017-08-04 20:33:47 +00:00
|
|
|
|
|
|
|
####################
|
|
|
|
# Comments in odd places don't cause problems
|
2005-09-20 13:31:55 +00:00
|
|
|
1a
|
|
|
|
1b
|
|
|
|
2a
|
|
|
|
2b
|
2017-08-04 20:33:47 +00:00
|
|
|
|
|
|
|
####################
|
|
|
|
# Escaped newlines
|
2012-11-22 09:09:07 +00:00
|
|
|
foo bar
|
|
|
|
foobar
|
|
|
|
foobar
|
|
|
|
foo\
|
|
|
|
bar
|
2012-11-23 20:03:36 +00:00
|
|
|
a
|
|
|
|
b
|
|
|
|
c
|
2017-08-04 20:33:47 +00:00
|
|
|
|
|
|
|
####################
|
|
|
|
# Simple function tests
|
2005-09-20 13:31:55 +00:00
|
|
|
Test 2 pass
|
2017-07-03 22:36:38 +00:00
|
|
|
Test 3a pass
|
|
|
|
Test 3b pass
|
2010-11-23 15:05:21 +00:00
|
|
|
Test 4 pass
|
2017-08-04 20:33:47 +00:00
|
|
|
|
|
|
|
####################
|
2019-04-13 17:04:44 +00:00
|
|
|
# Testing builtin status
|
2010-11-23 16:35:56 +00:00
|
|
|
Test 5 pass
|
2017-08-04 20:33:47 +00:00
|
|
|
|
|
|
|
####################
|
2017-06-19 05:25:00 +00:00
|
|
|
# echo tests
|
2012-10-17 09:56:03 +00:00
|
|
|
abc\ndef
|
|
|
|
abc
|
|
|
|
def
|
|
|
|
abc\zdef
|
|
|
|
abc!def
|
|
|
|
abc!def
|
|
|
|
abcQdef
|
|
|
|
abcQ2def
|
|
|
|
abc
|
2014-05-16 07:19:07 +00:00
|
|
|
-
|
2017-06-19 05:25:00 +00:00
|
|
|
-h
|
2017-02-01 02:44:02 +00:00
|
|
|
0000000 376
|
|
|
|
0000001
|
2012-10-17 09:56:03 +00:00
|
|
|
Catch your breath
|
|
|
|
abc!def
|
|
|
|
abc!1def
|
2017-08-04 20:33:47 +00:00
|
|
|
|
|
|
|
####################
|
|
|
|
# Comments allowed in between lines (#1987)
|
2015-04-06 06:47:04 +00:00
|
|
|
before comment after comment
|
2017-08-04 20:33:47 +00:00
|
|
|
|
|
|
|
####################
|
|
|
|
# Backslashes are part of comments and do not join lines (#1255)
|
|
|
|
|
|
|
|
####################
|
|
|
|
# Verify $argv set correctly in sourced scripts (#139)
|
2016-04-06 20:04:44 +00:00
|
|
|
source argv {}
|
|
|
|
source argv {}
|
|
|
|
source argv {abc}
|
|
|
|
source argv {abc def}
|
2014-02-12 09:39:06 +00:00
|
|
|
1
|