Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tocode is missing #18

Open
gehll275 opened this issue May 16, 2018 · 0 comments
Open

tocode is missing #18

gehll275 opened this issue May 16, 2018 · 0 comments

Comments

@gehll275
Copy link

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

$

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant