#!/bin/ksh93 # fixed in S11.1 SRU 5.5 typeset -T Repo_t=( typeset -h 'Name of the repository (should have <= 16 chars)' Name="" typeset -h 'Publisher prefix of the repository' Prefix="" typeset -h 'optional: URL to use for mirroring' Src="" typeset -h 'optional: File with the SSL Key to use to access SslCert' SslKey="" typeset -h 'optional: SSL Certificate to use to access the mirror' SslCert="" typeset -h 'unique port to listen for html requests' -i Port=0 typeset -h 'number of serving threads (use ~ 20/client)' -i Threads=64 typeset -h 'short description of the repo (<= 60 chars)' Desc="" ) Repo_t -a REPOS=( (Name=solaris Prefix=solaris Port=81 Threads=512 Src=https://pkg.oracle.com/solaris/support/ SslKey=/var/pkg/ssl/Oracle_Solaris_11_Support.key.pem SslCert=/var/pkg/ssl/Oracle_Solaris_11_Support.certificate.pem Desc="Solaris 11 Support Mirror" ) (Name=studio Prefix=solarisstudio Port=82 Src=https://pkg.oracle.com/solarisstudio/release/ SslKey=/var/pkg/ssl/Oracle_Solaris_Studio.key.pem SslCert=/var/pkg/ssl/Oracle_Solaris_Studio.certificate.pem Desc="Solaris Studio Mirror (C, C++, Fortran Dev Suite)" ) ) doCat() { # BUG: spits out the following error message (but shouldn't): # ./kshbug.sh[29]: cat: not found [No such file or directory] cat >/tmp/foo</tmp/foo2<