typeset: not found error when executing shell script. Am I missing a package or something?
- by user11045
Hi, below is the error and corresponding script lines:
spec@Lucifer:~/Documents/seagull.svn.LINUX$ ./build.ksh
./build.ksh: 36: typeset: not found
./build.ksh: 39: typeset: not found
./build.ksh: 44: function: not found
Command line syntax of - options
-exec : mode used for compilation (default RELEASE)
-target : target used for compilation (default all)
-help : display the command line syntax
./build.ksh: 52: function: not found
ERROR:
spec@Lucifer:~/Documents/seagull.svn.LINUX$
Script
Init of variables
BUILD_TARGET=${BUILD_DEFAULT_TARGET}
BUILD_EXEC=${BUILD_DEFAULT_EXEC}
typeset -u BUILD_OS=uname -s | tr '-' '_' | tr '.' '_' | tr '/' '_'
BUILD_CODE_DIRECTORY=code
BUILD_DIRECTORY=pwd
typeset -u BUILD_ARCH=uname -m | tr '-' '_' | tr '.' '_' | tr '/' '_'
BUILD_VERSION_FILE=build.conf
BUILD_DIST_MODE=0
BUILD_FORCE_MODE=0