The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 03-25-2007
ugeek ugeek is offline
Registered User
  
 

Join Date: May 2006
Posts: 1
Temporarily disable effect of set -e in ksh

Hi!

I'd like to temporarily disable effect of set -e before invoking some commands whose exit status can be ignored.

The "e" flag can be off so the code below may improperly turn "e" on:

set +x
... call function here ...
set -x

In Bash surrounding the command with parenthesis does work.

How can I do it in ksh with a special character?

Thanks
u.

Last edited by ugeek; 03-25-2007 at 06:25 PM.. Reason: typo2