annotate runtime/syntax/testdir/input/sh_09.sh @ 32649:ae505eaf2794 v9.0.1656

patch 9.0.1656: syntax test fails when detected shell type differs Commit: https://github.com/vim/vim/commit/7d0dbd0070fd8ed86b08f81f6acfad9a5fe55672 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jun 24 00:56:50 2023 +0100 patch 9.0.1656: syntax test fails when detected shell type differs Problem: Syntax test fails when detected shell type differs. Solution: Avoid using "/bin/sh", it depends on the system. Add a check that the shell type detection is correct.
author Bram Moolenaar <Bram@vim.org>
date Sat, 24 Jun 2023 02:00:03 +0200
parents f8a2fc7d823f
children 448aef880252
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
32649
ae505eaf2794 patch 9.0.1656: syntax test fails when detected shell type differs
Bram Moolenaar <Bram@vim.org>
parents: 32631
diff changeset
1 #!/bin/dash
32631
f8a2fc7d823f patch 9.0.1647: insufficient testing for syntax plugins
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
2 # Test file for vim the check () subshells
f8a2fc7d823f patch 9.0.1647: insufficient testing for syntax plugins
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
3 ( cd ; $pwd ) | wc -c
f8a2fc7d823f patch 9.0.1647: insufficient testing for syntax plugins
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
4 ( cd $1 ; $pwd ) | wc -c
f8a2fc7d823f patch 9.0.1647: insufficient testing for syntax plugins
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
5 ( cd ${1} ; $pwd ) | wc -c
f8a2fc7d823f patch 9.0.1647: insufficient testing for syntax plugins
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
6 ( cd ; $pwd ) | wc -c
f8a2fc7d823f patch 9.0.1647: insufficient testing for syntax plugins
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
7 ( cd ${1:-.} ; $pwd ) | sed -e 's!$!/!' -e 's!//*$!/!'
f8a2fc7d823f patch 9.0.1647: insufficient testing for syntax plugins
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
8 ( cd ; $pwd ) | wc -c
f8a2fc7d823f patch 9.0.1647: insufficient testing for syntax plugins
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
9 ( cd ${1:+.} ; $pwd ) | wc -c
f8a2fc7d823f patch 9.0.1647: insufficient testing for syntax plugins
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
10 ( cd ; $pwd ) | wc -c
f8a2fc7d823f patch 9.0.1647: insufficient testing for syntax plugins
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
11 ( cd ${1:=.} ; $pwd ) | wc -c
f8a2fc7d823f patch 9.0.1647: insufficient testing for syntax plugins
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
12 ( cd ; $pwd ) | wc -c
f8a2fc7d823f patch 9.0.1647: insufficient testing for syntax plugins
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
13 ( cd ${1:?} ; $pwd ) | wc -c
f8a2fc7d823f patch 9.0.1647: insufficient testing for syntax plugins
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
14 ( cd ; $pwd ) | wc -c
f8a2fc7d823f patch 9.0.1647: insufficient testing for syntax plugins
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
15 ( cd $HOME ; $pwd ) | wc -c
f8a2fc7d823f patch 9.0.1647: insufficient testing for syntax plugins
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
16 ( cd ${HOME} ; $pwd ) | wc -c
f8a2fc7d823f patch 9.0.1647: insufficient testing for syntax plugins
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
17 ( cd ${HOME} ) | wc -c
f8a2fc7d823f patch 9.0.1647: insufficient testing for syntax plugins
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
18 ((n=1+2))
f8a2fc7d823f patch 9.0.1647: insufficient testing for syntax plugins
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
19 let n=1+2