1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

...and now make it work with shcomp (re: aed5c6d7)

This commit is contained in:
Martijn Dekker 2021-03-13 19:27:15 +00:00
parent aed5c6d70a
commit 844e6b2410
52 changed files with 52 additions and 52 deletions

View file

@ -18,7 +18,7 @@
# #
########################################################################
. "${0%/*}/_common"
. "${SHTESTS_COMMON:-${0%/*}/_common}"
alias foo='print hello'
if [[ $(foo) != hello ]]

View file

@ -18,7 +18,7 @@
# #
########################################################################
. "${0%/*}/_common"
. "${SHTESTS_COMMON:-${0%/*}/_common}"
{
x=abc

View file

@ -18,7 +18,7 @@
# #
########################################################################
. "${0%/*}/_common"
. "${SHTESTS_COMMON:-${0%/*}/_common}"
trap '' FPE # NOTE: osf.alpha requires this (no ieee math)

View file

@ -18,7 +18,7 @@
# #
########################################################################
. "${0%/*}/_common"
. "${SHTESTS_COMMON:-${0%/*}/_common}"
function fun
{

View file

@ -18,7 +18,7 @@
# #
########################################################################
. "${0%/*}/_common"
. "${SHTESTS_COMMON:-${0%/*}/_common}"
for ((i=0; i < 4; i++ ))
do for ((j=0; j < 5; j++ ))

View file

@ -18,7 +18,7 @@
# #
########################################################################
. "${0%/*}/_common"
. "${SHTESTS_COMMON:-${0%/*}/_common}"
# ======
# as of 93u+, typeset -xu/-xl failed to change case in a value (rhbz#1188377)

View file

@ -18,7 +18,7 @@
# #
########################################################################
. "${0%/*}/_common"
. "${SHTESTS_COMMON:-${0%/*}/_common}"
bincat=$(whence -p cat)
binecho=$(whence -p echo)

View file

@ -18,7 +18,7 @@
# #
########################################################################
. "${0%/*}/_common"
. "${SHTESTS_COMMON:-${0%/*}/_common}"
null=''
if [[ ! -z $null ]]

View file

@ -18,7 +18,7 @@
# #
########################################################################
. "${0%/*}/_common"
. "${SHTESTS_COMMON:-${0%/*}/_common}"
bincat=$(whence -p cat)

View file

@ -18,7 +18,7 @@
# #
########################################################################
. "${0%/*}/_common"
. "${SHTESTS_COMMON:-${0%/*}/_common}"
bar=foo2
bam=foo[3]

View file

@ -18,7 +18,7 @@
# #
########################################################################
. "${0%/*}/_common"
. "${SHTESTS_COMMON:-${0%/*}/_common}"
#test for compound variables
Command=${0##*/}

View file

@ -19,7 +19,7 @@
# #
########################################################################
. "${0%/*}/_common"
. "${SHTESTS_COMMON:-${0%/*}/_common}"
# "nounset" disabled for now
#set -o nounset

View file

@ -19,7 +19,7 @@
########################################################################
# test the behavior of co-processes
. "${0%/*}/_common"
. "${SHTESTS_COMMON:-${0%/*}/_common}"
if [[ -d /cygdrive ]]
then err_exit cygwin detected - coprocess tests disabled - enable at the risk of wedging your system

View file

@ -18,7 +18,7 @@
# #
########################################################################
. "${0%/*}/_common"
. "${SHTESTS_COMMON:-${0%/*}/_common}"
integer n=2

View file

@ -18,7 +18,7 @@
# #
########################################################################
. "${0%/*}/_common"
. "${SHTESTS_COMMON:-${0%/*}/_common}"
enum Color_t=(red green blue orange yellow)
enum -i Sex_t=(Male Female)

View file

@ -18,7 +18,7 @@
# #
########################################################################
. "${0%/*}/_common"
. "${SHTESTS_COMMON:-${0%/*}/_common}"
function abspath
{

View file

@ -18,7 +18,7 @@
# #
########################################################################
. "${0%/*}/_common"
. "${SHTESTS_COMMON:-${0%/*}/_common}"
# {...} expansion tests -- ignore if not supported

View file

@ -18,7 +18,7 @@
# #
########################################################################
. "${0%/*}/_common"
. "${SHTESTS_COMMON:-${0%/*}/_common}"
compiled=''
read -n4 c < $0 2> /dev/null

View file

@ -18,7 +18,7 @@
# #
########################################################################
. "${0%/*}/_common"
. "${SHTESTS_COMMON:-${0%/*}/_common}"
function test_glob
{

View file

@ -18,7 +18,7 @@
# #
########################################################################
. "${0%/*}/_common"
. "${SHTESTS_COMMON:-${0%/*}/_common}"
function grep
{

View file

@ -18,7 +18,7 @@
# #
########################################################################
. "${0%/*}/_common"
. "${SHTESTS_COMMON:-${0%/*}/_common}"
bincat=$(whence -p cat)

View file

@ -18,7 +18,7 @@
# #
########################################################################
. "${0%/*}/_common"
. "${SHTESTS_COMMON:-${0%/*}/_common}"
unset HISTFILE

View file

@ -14,7 +14,7 @@
# #
########################################################################
. "${0%/*}/_common"
. "${SHTESTS_COMMON:-${0%/*}/_common}"
# All the tests here should run with job control on
set -o monitor

View file

@ -18,7 +18,7 @@
# #
########################################################################
. "${0%/*}/_common"
. "${SHTESTS_COMMON:-${0%/*}/_common}"
# Determine method for running tests.
# The 'vmstate' builtin can be used if ksh was compiled with vmalloc.

View file

@ -18,7 +18,7 @@
# #
########################################################################
. "${0%/*}/_common"
. "${SHTESTS_COMMON:-${0%/*}/_common}"
unset LANG LANGUAGE "${!LC_@}"

View file

@ -18,7 +18,7 @@
# #
########################################################################
. "${0%/*}/_common"
. "${SHTESTS_COMMON:-${0%/*}/_common}"
set -o nounset

View file

@ -18,7 +18,7 @@
# #
########################################################################
. "${0%/*}/_common"
. "${SHTESTS_COMMON:-${0%/*}/_common}"
function checkref
{

View file

@ -18,7 +18,7 @@
# #
########################################################################
. "${0%/*}/_common"
. "${SHTESTS_COMMON:-${0%/*}/_common}"
if((!SHOPT_NAMESPACE))
then warning 'shell compiled without SHOPT_NAMESPACE; skipping tests'

View file

@ -18,7 +18,7 @@
# #
########################################################################
. "${0%/*}/_common"
. "${SHTESTS_COMMON:-${0%/*}/_common}"
unset HISTFILE
export LC_ALL=C ENV=/./dev/null

View file

@ -18,7 +18,7 @@
# #
########################################################################
. "${0%/*}/_common"
. "${SHTESTS_COMMON:-${0%/*}/_common}"
# to avoid spurious test failures with 'whence -a' tests, we need
# to remove any duplicate paths to the same directory from $PATH.

View file

@ -18,7 +18,7 @@
# #
########################################################################
. "${0%/*}/_common"
. "${SHTESTS_COMMON:-${0%/*}/_common}"
typeset -T Pt_t=(
float x=1

View file

@ -18,7 +18,7 @@
# #
########################################################################
. "${0%/*}/_common"
. "${SHTESTS_COMMON:-${0%/*}/_common}"
# These are tests for the interactive shell, run in a pseudoterminal utility
# called 'pty', which allows for scripting interactive sessions and which is

View file

@ -18,7 +18,7 @@
# #
########################################################################
. "${0%/*}/_common"
. "${SHTESTS_COMMON:-${0%/*}/_common}"
binecho=$(whence -p echo)

View file

@ -18,7 +18,7 @@
# #
########################################################################
. "${0%/*}/_common"
. "${SHTESTS_COMMON:-${0%/*}/_common}"
set -o noglob
if [[ 'hi there' != "hi there" ]]

View file

@ -18,7 +18,7 @@
# #
########################################################################
. "${0%/*}/_common"
. "${SHTESTS_COMMON:-${0%/*}/_common}"
tmp1=$tmp/tmp1.csv
tmp2=$tmp/tmp2.csv

View file

@ -18,7 +18,7 @@
# #
########################################################################
. "${0%/*}/_common"
. "${SHTESTS_COMMON:-${0%/*}/_common}"
typeset -T Pt_t=(
float x=1

View file

@ -18,7 +18,7 @@
# #
########################################################################
. "${0%/*}/_common"
. "${SHTESTS_COMMON:-${0%/*}/_common}"
binecho=$(whence -p echo)

View file

@ -19,7 +19,7 @@
########################################################################
# test the behavior of return and exit with functions
. "${0%/*}/_common"
. "${SHTESTS_COMMON:-${0%/*}/_common}"
unset HISTFILE

View file

@ -18,7 +18,7 @@
# #
########################################################################
. "${0%/*}/_common"
. "${SHTESTS_COMMON:-${0%/*}/_common}"
PS3='ABC '

View file

@ -170,7 +170,7 @@ function valxml
command set +o posix 2>/dev/null
unset DISPLAY FIGNORE HISTFILE POSIXLY_CORRECT _AST_FEATURES
export ENV=/./dev/null
export ENV=/./dev/null SHTESTS_COMMON=$PWD/_common
trap + PIPE # unadvertized -- set SIGPIPE to SIG_DFL #
integer compile=-1 posix=-1 utf8=-1

View file

@ -18,7 +18,7 @@
# #
########################################################################
. "${0%/*}/_common"
. "${SHTESTS_COMMON:-${0%/*}/_common}"
float DELAY=${1:-0.02}
integer FOREGROUND=10 BACKGROUND=2

View file

@ -18,7 +18,7 @@
# #
########################################################################
. "${0%/*}/_common"
. "${SHTESTS_COMMON:-${0%/*}/_common}"
unset n s t
typeset -A SIG

View file

@ -21,7 +21,7 @@
# Written by Roland Mainz <roland.mainz@nrubsig.org>
#
. "${0%/*}/_common"
. "${SHTESTS_COMMON:-${0%/*}/_common}"
set -o nounset

View file

@ -18,7 +18,7 @@
# #
########################################################################
. "${0%/*}/_common"
. "${SHTESTS_COMMON:-${0%/*}/_common}"
typeset -F SECONDS # for fractional seconds in PS4

View file

@ -18,7 +18,7 @@
# #
########################################################################
. "${0%/*}/_common"
. "${SHTESTS_COMMON:-${0%/*}/_common}"
tmpPS4='+ [temp_PS4|L$LINENO|e$?] ' # used to avoid interference to ${.sh.match} from $PS4 set by shtests

View file

@ -18,7 +18,7 @@
# #
########################################################################
. "${0%/*}/_common"
. "${SHTESTS_COMMON:-${0%/*}/_common}"
if $SHELL -c '[[ ~root == /* ]]'
then x=$(print -r -- ~root)

View file

@ -18,7 +18,7 @@
# #
########################################################################
. "${0%/*}/_common"
. "${SHTESTS_COMMON:-${0%/*}/_common}"
typeset -T Time_t=(
integer .=-1

View file

@ -43,7 +43,7 @@
# Use is subject to license terms.
#
. "${0%/*}/_common"
. "${SHTESTS_COMMON:-${0%/*}/_common}"
#
# This test checks whether "typeset -m" correctly moves local variables

View file

@ -18,7 +18,7 @@
# #
########################################################################
. "${0%/*}/_common"
. "${SHTESTS_COMMON:-${0%/*}/_common}"
integer n=2

View file

@ -18,7 +18,7 @@
# #
########################################################################
. "${0%/*}/_common"
. "${SHTESTS_COMMON:-${0%/*}/_common}"
[[ ${.sh.version} == "$KSH_VERSION" ]] || err_exit '.sh.version != KSH_VERSION'
unset ss

View file

@ -24,7 +24,7 @@
# and "unset" handling.
#
. "${0%/*}/_common"
. "${SHTESTS_COMMON:-${0%/*}/_common}"
function build_tree
{

View file

@ -24,7 +24,7 @@
# and "unset" handling.
#
. "${0%/*}/_common"
. "${SHTESTS_COMMON:-${0%/*}/_common}"
# "built_tree1" and "built_tree2" are identical except the way how they test
# whether a variable exists: