typeset: not found error when executing shell script. Am I missing a package or something?
Posted
by
user11045
on Ask Ubuntu
See other posts from Ask Ubuntu
or by user11045
Published on 2011-02-18T00:45:02Z
Indexed on
2011/02/18
15:34 UTC
Read the original article
Hit count: 274
compiling
|shell-scripting
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
© Ask Ubuntu or respective owner