Skip to content

tocode is missing #18

@gehll275

Description

@gehll275

AIX 7.1 and get this error.

$ ./test.sh
tocode is missing
Usage: iconv [-c] [-s] -f FromCode -t ToCode [FileName...]
Usage: iconv -l
tocode is missing
Usage: iconv [-c] [-s] -f FromCode -t ToCode [FileName...]
Usage: iconv -l
tocode is missing
Usage: iconv [-c] [-s] -f FromCode -t ToCode [FileName...]
Usage: iconv -l
tocode is missing
Usage: iconv [-c] [-s] -f FromCode -t ToCode [FileName...]
Usage: iconv -l
mkdir: cannot access directory test.sh.
test.sh: Not a directory
t/test_.sh./test.sh: line 62: test.sh/t/test_.sh.o: Not a directory
./test.sh: line 71: test.sh/t/test_.sh.f: Not a directory
test.sh/t/test_
.sh.t: Not a directory
t/test_*.sh

$ bash -x test.sh
++ readlink -m test.sh/../t

  • t=test.sh
    ++ readlink -m test.sh/../BUILDROOT
  • b=test.sh
  • rm -rf test.sh/t
  • e=0
  • bash_opts=
    ++ printf '\x25\xCF'
    ++ iconv -f utf-16be
    tocode is missing
    Usage: iconv [-c] [-s] -f FromCode -t ToCode [FileName...]
    Usage: iconv -l
  • R=''
    ++ iconv -f utf-16be
    tocode is missing
    Usage: iconv [-c] [-s] -f FromCode -t ToCode [FileName...]
    Usage: iconv -l
    ++ printf '\x25\xBA'
  • S=''
    ++ printf '\x27\x18'
    ++ iconv -f utf-16be
    tocode is missing
    Usage: iconv [-c] [-s] -f FromCode -t ToCode [FileName...]
    Usage: iconv -l
  • F=''
    ++ printf '\x27\x14'
    ++ iconv -f utf-16be
    tocode is missing
    Usage: iconv [-c] [-s] -f FromCode -t ToCode [FileName...]
    Usage: iconv -l
  • P=''
  • mkdir -p test.sh/t
    mkdir: cannot access directory test.sh.
    test.sh: Not a directory
  • trap true INT
  • [[ '' == 1 ]]
    ++ declare -f assert
  • export 'USE_ASSERT=function assert ()
    {
    local lines=() lineno=${BASH_LINENO[0]};
    mapfile -tn1 -s$((lineno-1)) lines < "${BASH_SOURCE[1]}";
    printf "ASSERT: ${BASH_SOURCE[1]##*/}:$lineno: %s\n" "$lines";
    exit 1
    }'
  • USE_ASSERT='function assert ()
    {
    local lines=() lineno=${BASH_LINENO[0]};
    mapfile -tn1 -s$((lineno-1)) lines < "${BASH_SOURCE[1]}";
    printf "ASSERT: ${BASH_SOURCE[1]##*/}:$lineno: %s\n" "$lines";
    exit 1
    }'
  • hash time
  • true
  • count=0
  • for f in '$t/test_${1:-*}.sh'
  • ff='t/test_*.sh'
  • (( ++count ))
  • printf ' %s' 't/test_.sh'
    t/test_
    .sh+ export bash_opts
  • ret=0
  • time_fn bash 'test.sh/test_.sh'
    test.sh: line 62: test.sh/t/test_
    .sh.o: Not a directory
  • ret=1
  • (( ret == 0 ))
  • (( ret == 80 ))
  • :
    test.sh: line 71: test.sh/t/test_.sh.f: Not a directory
    ++ tail -1 'test.sh/t/test_
    .sh.t'
    test.sh/t/test_*.sh.t: Not a directory
  • printf '\r %s%s\n' 't/test_.sh' ''
    t/test_
    .sh
  • [[ '' == 1 ]]
  • e=1
  • [[ '' == 1 ]]
  • break
  • [[ '' == *.xml ]]
  • exit 1

$

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions