summaryrefslogtreecommitdiff
path: root/regress/cfginclude.sh
diff options
context:
space:
mode:
authordjm@openbsd.org <djm@openbsd.org>2021-06-08 06:52:43 +0000
committerDamien Miller <djm@mindrot.org>2021-06-08 17:17:24 +1000
commit660cea10b2cdc11f13ba99c89b1bbb368a4d9ff2 (patch)
treee264f02dabb30f8a7fcb0dd15d23148f134fdee0 /regress/cfginclude.sh
parentacc9c32dcb6def6c7d3688bceb4c0e59bd26b411 (diff)
downloadopenssh-git-660cea10b2cdc11f13ba99c89b1bbb368a4d9ff2.tar.gz
upstream: sprinkle some "# comment" at end of configuration lines
to test comment handling OpenBSD-Regress-ID: cb82fbf40bda5c257a9f742c63b1798e5a8fdda7
Diffstat (limited to 'regress/cfginclude.sh')
-rw-r--r--regress/cfginclude.sh24
1 files changed, 12 insertions, 12 deletions
diff --git a/regress/cfginclude.sh b/regress/cfginclude.sh
index 2fc39ce4..f5b492f1 100644
--- a/regress/cfginclude.sh
+++ b/regress/cfginclude.sh
@@ -1,4 +1,4 @@
-# $OpenBSD: cfginclude.sh,v 1.2 2016/05/03 15:30:46 dtucker Exp $
+# $OpenBSD: cfginclude.sh,v 1.3 2021/06/08 06:52:43 djm Exp $
# Placed in the Public Domain.
tid="config include"
@@ -10,7 +10,7 @@ cat > $OBJ/ssh_config.i << _EOF
Match host a
Hostname aa
-Match host b
+Match host b # comment
Hostname bb
Include $OBJ/ssh_config.i.*
@@ -19,10 +19,10 @@ Match host c
Hostname cc
Match host m
- Include $OBJ/ssh_config.i.*
+ Include $OBJ/ssh_config.i.* # comment
Host d
- Hostname dd
+ Hostname dd # comment
Host e
Hostname ee
@@ -47,17 +47,17 @@ Match host a
Match host b
Hostname bbb
-Match host c
+Match host c # comment
Hostname ccc
-Host d
+Host d # comment
Hostname ddd
Host e
Hostname eee
Host f
- Hostname fff
+ Hostname fff # comment
_EOF
cat > $OBJ/ssh_config.i.2 << _EOF
@@ -142,7 +142,7 @@ trial a aa
# cleanup
rm -f $OBJ/ssh_config.i $OBJ/ssh_config.i.* $OBJ/ssh_config.out
-# $OpenBSD: cfginclude.sh,v 1.2 2016/05/03 15:30:46 dtucker Exp $
+# $OpenBSD: cfginclude.sh,v 1.3 2021/06/08 06:52:43 djm Exp $
# Placed in the Public Domain.
tid="config include"
@@ -185,11 +185,11 @@ cat > $OBJ/ssh_config.i.1 << _EOF
Match host a
Hostname aaa
-Match host b
+Match host b # comment
Hostname bbb
Match host c
- Hostname ccc
+ Hostname ccc # comment
Host d
Hostname ddd
@@ -220,8 +220,8 @@ Host e
Host f
Hostname ffff
-Match all
- Hostname xxxx
+Match all # comment
+ Hostname xxxx # comment
_EOF
trial() {