[ksh93-integration-discuss] about debug options in ksh
Felix Schulte
felix.schulte at gmail.com
Wed Apr 25 06:45:53 PDT 2007
On 4/25/07, paul.guo <Paul.Guo at sun.com> wrote:
> Hi, all
>
> I have two questions about ksh, and since I am not in the alias, please
> add my
> email address when replying.
>
> 1. I am using ksh88, and found 'set -x' and 'set -v' do not work on
> sub-functions.
> Is ksh93 still like that ? Why don't allow these options in
> sub-functions?
>
> 2. If you write scripts in shell languages, you must be very careful to
> prevent
> the typo. shell almost does not provide any options to prevent typo.
ksh93 has a script compiler which compiles shell scripts into a binary
and does some error checking during the compilation
> Is
> is possible
> to add a set option to check if variable is undefined or null and send
> warning info to
> user.
To check for undefined variables you can use set -o unset and the
shell will print an error each time you use a variable which is not
defined
--
_ Felix Schulte
_|_|_ mailto:felix.schulte at gmail.com
(0 0)
ooO--(_)--Ooo
More information about the ksh93-integration-discuss
mailing list