<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: preremove script problem in HP-UX 11.31 in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/preremove-script-problem-in-hp-ux-11-31/m-p/5173339#M458476</link>
    <description>I apologyse for my mistakes in the script lines posted&lt;BR /&gt;&lt;BR /&gt;I think there is a shell bizarre behaviour.&lt;BR /&gt;I added the following line in the preremove script:&lt;BR /&gt;&lt;BR /&gt;  test ! "345" -o "" &amp;amp;&amp;amp; echo true1 || echo false1&lt;BR /&gt;  [ ! "345" -o "" ] &amp;amp;&amp;amp; echo true2 || echo false2&lt;BR /&gt;  /usr/bin/test ! "345" -o "" &amp;amp;&amp;amp; echo true3 || echo false3&lt;BR /&gt;&lt;BR /&gt;"true1", "true2" and "true3" are displayed when the preremove script is run.&lt;BR /&gt;But if I type the same command lines in a interactive session "false1", "false2" and "false3" are displayed instead.&lt;BR /&gt;&lt;BR /&gt;I guess the environment is the root cause.&lt;BR /&gt;&lt;BR /&gt;I found a variable PRE_U95 that it is used by SD and by /etc/rc.config.d/namesvrs&lt;BR /&gt;&lt;BR /&gt;P.D: the UNIX95 var is used by my preremove script to get an customize output of the ps command.</description>
    <pubDate>Wed, 06 May 2009 06:28:00 GMT</pubDate>
    <dc:creator>Jdamian</dc:creator>
    <dc:date>2009-05-06T06:28:00Z</dc:date>
    <item>
      <title>preremove script problem in HP-UX 11.31</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/preremove-script-problem-in-hp-ux-11-31/m-p/5173336#M458473</link>
      <description>&lt;!--!*#--&gt;Hi&lt;BR /&gt;&lt;BR /&gt;My product is packaged in a SD depot. It has a preremove script to kill the product running agent before removing the product binaries.&lt;BR /&gt;&lt;BR /&gt;The preremove script just runs the ordinary script to stop the running agent.&lt;BR /&gt;&lt;BR /&gt;I installed and removed sucessfully the product in a lot of nodes running HP-UX 11v1 and v2.&lt;BR /&gt;&lt;BR /&gt;But I have problems when the preremove script is executed in HP-UX 11v3 launched by SD daemons. If I run the preremove script manually it kills the product agent properly. If the preremove script is run from the swremove command, it does not kill the product agent.&lt;BR /&gt;&lt;BR /&gt;I debugged and found the critical lines in the script.&lt;BR /&gt;&lt;BR /&gt;if [ ! "${1}" -o "${1##+([0-9])" ]&lt;BR /&gt;then&lt;BR /&gt;      return 2 # &lt;BR /&gt;fi&lt;BR /&gt;kill "$1"&lt;BR /&gt;&lt;BR /&gt;These lines check if the first arg $1 is a numeric value (if it is not, then cancel; otherwise continue and kill).&lt;BR /&gt;&lt;BR /&gt;In the debugging session (setting -x) the condition shown is&lt;BR /&gt;&lt;BR /&gt;+ [ ! 4551 -o  ]&lt;BR /&gt;+ return 2&lt;BR /&gt;&lt;BR /&gt;Those lines run fine when I execute the preremove script manually or when I execute in the session command line:&lt;BR /&gt;&lt;BR /&gt;T=23&lt;BR /&gt;[ "${T}" -o "${T##+([0-9])}" ] || echo false&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If I replace&lt;BR /&gt;&lt;BR /&gt;  -o "${1##+([0-9])" ]&lt;BR /&gt;&lt;BR /&gt;by&lt;BR /&gt;&lt;BR /&gt;  -o "x${1##+([0-9])" != "x" ]&lt;BR /&gt;&lt;BR /&gt;then the preremove script runs fine.&lt;BR /&gt;&lt;BR /&gt;Then I have some questions:&lt;BR /&gt;&lt;BR /&gt;why   [ ! 4551 -o  ] is evaluated as TRUE?&lt;BR /&gt;why this only ocurrs in HP-UX 11v3 and only when run from swremove?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanx in advance</description>
      <pubDate>Tue, 05 May 2009 11:54:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/preremove-script-problem-in-hp-ux-11-31/m-p/5173336#M458473</guid>
      <dc:creator>Jdamian</dc:creator>
      <dc:date>2009-05-05T11:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: preremove script problem in HP-UX 11.31</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/preremove-script-problem-in-hp-ux-11-31/m-p/5173337#M458474</link>
      <description>&amp;gt;These lines check if the first arg $1 is a numeric value (if it is not, then cancel; otherwise continue and kill).&lt;BR /&gt;&lt;BR /&gt;This seems broken.  They should use "UNIX95=EXTENDED_PS ps ..." in such a way that the only output is the correct PID and nothing else.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;In the debugging session (setting -x) the condition shown is&lt;BR /&gt;+ [ ! 4551 -o  ]&lt;BR /&gt;+ return 2&lt;BR /&gt;&lt;BR /&gt;Any trailing spaces or newlines?  Can you echo this to a file?  Does the script use the same shell as you?  Can you check the setting of UNIX95?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Those lines run fine when ...&lt;BR /&gt;T=23&lt;BR /&gt;[ "${T}" -o "${T##+([0-9])}" ] || echo false&lt;BR /&gt;&lt;BR /&gt;Are you missing: ! "${T}"&lt;BR /&gt;&lt;BR /&gt;&amp;gt;If I replace: -o "${1##+([0-9])" ]&lt;BR /&gt;&amp;gt;by: -o "x${1##+([0-9])" != "x" ]&lt;BR /&gt;&amp;gt;then the preremove script runs fine.&lt;BR /&gt;&lt;BR /&gt;That's easier to understand.  It seems to imply no trailing spaces.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;why [ ! 4551 -o  ] is evaluated as TRUE?&lt;BR /&gt;why this only occurs in HP-UX 11v3 and only when run from swremove?&lt;BR /&gt;&lt;BR /&gt;That's probably [ ! 4551 -o "" ].&lt;BR /&gt;You need to match up swremove's environment and shell.</description>
      <pubDate>Tue, 05 May 2009 15:52:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/preremove-script-problem-in-hp-ux-11-31/m-p/5173337#M458474</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-05-05T15:52:34Z</dc:date>
    </item>
    <item>
      <title>Re: preremove script problem in HP-UX 11.31</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/preremove-script-problem-in-hp-ux-11-31/m-p/5173338#M458475</link>
      <description>&lt;!--!*#--&gt;&amp;gt;if [ ! "${1}" -o "${1##+([0-9])" ]&lt;BR /&gt;&lt;BR /&gt;You seemed to be missing a "}":&lt;BR /&gt;if [ ! "${1}" -o "${1##+([0-9])}" ]; then&lt;BR /&gt;&lt;BR /&gt;I don't have any problems with this "if" unless $1 has trailing spaces:&lt;BR /&gt;#!/sbin/sh&lt;BR /&gt;function foo {&lt;BR /&gt;set -x&lt;BR /&gt;echo "Passed in: $1"&lt;BR /&gt;if [ ! "${1}" -o "${1##+([0-9])}" ]; then&lt;BR /&gt;   echo "true : $1 (not numeric)"&lt;BR /&gt;else&lt;BR /&gt;   echo "false: $1"&lt;BR /&gt;fi&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;foo 123&lt;BR /&gt;foo "123 "&lt;BR /&gt;foo abc&lt;BR /&gt;&lt;BR /&gt;&amp;gt;ME: They should use "UNIX95=EXTENDED_PS ps ..." ...&lt;BR /&gt;&lt;BR /&gt;That should be: You should use ... ;-)</description>
      <pubDate>Wed, 06 May 2009 00:40:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/preremove-script-problem-in-hp-ux-11-31/m-p/5173338#M458475</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-05-06T00:40:19Z</dc:date>
    </item>
    <item>
      <title>Re: preremove script problem in HP-UX 11.31</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/preremove-script-problem-in-hp-ux-11-31/m-p/5173339#M458476</link>
      <description>I apologyse for my mistakes in the script lines posted&lt;BR /&gt;&lt;BR /&gt;I think there is a shell bizarre behaviour.&lt;BR /&gt;I added the following line in the preremove script:&lt;BR /&gt;&lt;BR /&gt;  test ! "345" -o "" &amp;amp;&amp;amp; echo true1 || echo false1&lt;BR /&gt;  [ ! "345" -o "" ] &amp;amp;&amp;amp; echo true2 || echo false2&lt;BR /&gt;  /usr/bin/test ! "345" -o "" &amp;amp;&amp;amp; echo true3 || echo false3&lt;BR /&gt;&lt;BR /&gt;"true1", "true2" and "true3" are displayed when the preremove script is run.&lt;BR /&gt;But if I type the same command lines in a interactive session "false1", "false2" and "false3" are displayed instead.&lt;BR /&gt;&lt;BR /&gt;I guess the environment is the root cause.&lt;BR /&gt;&lt;BR /&gt;I found a variable PRE_U95 that it is used by SD and by /etc/rc.config.d/namesvrs&lt;BR /&gt;&lt;BR /&gt;P.D: the UNIX95 var is used by my preremove script to get an customize output of the ps command.</description>
      <pubDate>Wed, 06 May 2009 06:28:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/preremove-script-problem-in-hp-ux-11-31/m-p/5173339#M458476</guid>
      <dc:creator>Jdamian</dc:creator>
      <dc:date>2009-05-06T06:28:00Z</dc:date>
    </item>
    <item>
      <title>Re: preremove script problem in HP-UX 11.31</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/preremove-script-problem-in-hp-ux-11-31/m-p/5173340#M458477</link>
      <description>&amp;gt;I guess the environment is the root cause.&lt;BR /&gt;&lt;BR /&gt;What is your preremove environment?  What is your shell?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;the UNIX95 var is used by my preremove script to get an customize output of the ps command.&lt;BR /&gt;&lt;BR /&gt;How?  The only way to use UNIX95 safely is to use a form similar to this:&lt;BR /&gt;UNIX95=EXTENDED_PS ps ....&lt;BR /&gt;&lt;BR /&gt;Do NOT export UNIX95.&lt;BR /&gt;&lt;BR /&gt;(When I did it, there were no differences.)</description>
      <pubDate>Wed, 06 May 2009 07:06:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/preremove-script-problem-in-hp-ux-11-31/m-p/5173340#M458477</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-05-06T07:06:17Z</dc:date>
    </item>
    <item>
      <title>Re: preremove script problem in HP-UX 11.31</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/preremove-script-problem-in-hp-ux-11-31/m-p/5173341#M458478</link>
      <description>The variables when preremove script is run are&lt;BR /&gt;&lt;BR /&gt;variables&lt;BR /&gt;DDFA=0&lt;BR /&gt;DHCPV6CLNTD_ARGS=''&lt;BR /&gt;DHCPV6D=0&lt;BR /&gt;DHCPV6SRVRD_ARGS=''&lt;BR /&gt;ERASE=^H&lt;BR /&gt;ERRNO=25&lt;BR /&gt;FCEDIT=/usr/bin/ed&lt;BR /&gt;HOME=/&lt;BR /&gt;IFS='   &lt;BR /&gt;'&lt;BR /&gt;INETD=1&lt;BR /&gt;INETD_ARGS=-l&lt;BR /&gt;INIT_STATE=2&lt;BR /&gt;LANG=C&lt;BR /&gt;LINENO=24&lt;BR /&gt;MAILCHECK=600&lt;BR /&gt;MROUTED=0&lt;BR /&gt;MROUTED_ARGS=''&lt;BR /&gt;NOKILLED=0&lt;BR /&gt;NTPDATE_SERVER=''&lt;BR /&gt;OPTARG&lt;BR /&gt;OPTIND=1&lt;BR /&gt;PATH=/usr/bin:/usr/sbin:/sbin&lt;BR /&gt;PPID=9057&lt;BR /&gt;PRE_U95=1&lt;BR /&gt;PS2='&amp;gt; '&lt;BR /&gt;PS3='#? '&lt;BR /&gt;PS4='+ '&lt;BR /&gt;PWD=/&lt;BR /&gt;RANDOM=2035&lt;BR /&gt;RWHOD=0&lt;BR /&gt;SDU_DEBUG_PRINT_MSGID=0&lt;BR /&gt;SECONDS=0&lt;BR /&gt;SENDMAIL_RECVONLY=0&lt;BR /&gt;SENDMAIL_SENDONLY=0&lt;BR /&gt;SENDMAIL_SERVER=0&lt;BR /&gt;SENDMAIL_SERVER_NAME=''&lt;BR /&gt;SHELL=/usr/bin/sh&lt;BR /&gt;SNMP_HPUNIX_START=1&lt;BR /&gt;SNMP_MASTER_START=1&lt;BR /&gt;SNMP_MIB2_START=1&lt;BR /&gt;SNMP_NAA_START=0&lt;BR /&gt;SNMP_TRAPDEST_START=1&lt;BR /&gt;SW_ADMIN_DIRECTORY=/var/adm/sw&lt;BR /&gt;SW_CATALOG=/var/adm/sw/products&lt;BR /&gt;SW_CMD_NAME=swremove&lt;BR /&gt;SW_COMPATIBLE=''&lt;BR /&gt;SW_CONTROL_DIRECTORY=/var/adm/sw/products/VFES/VFES-RUN/&lt;BR /&gt;SW_CONTROL_TAG=preremove&lt;BR /&gt;SW_DEFERRED_KERNBLD=''&lt;BR /&gt;SW_DLKM_REPLACEMENT=''&lt;BR /&gt;SW_HW_SUPP_BITS=64&lt;BR /&gt;SW_KERNEL_PATH=/stand/vmunix&lt;BR /&gt;SW_KERN_BIT_MODE=64&lt;BR /&gt;SW_LOCATION=/&lt;BR /&gt;SW_MODIFY_TMPDIR=/var/adm/sw/swmodify_rtmp/&lt;BR /&gt;SW_PATCH512B=1&lt;BR /&gt;SW_PATH=/usr/lbin/sw/bin:/var/adm/sw/sbin:/sbin:/usr/bin:/usr/ccs/bin&lt;BR /&gt;SW_POSE_AS_1123_AND_UP=1&lt;BR /&gt;SW_POSTDSA_TEMPFILE=''&lt;BR /&gt;SW_ROOT_DIRECTORY=/&lt;BR /&gt;SW_SESSION_IS_KERNEL=''&lt;BR /&gt;SW_SESSION_IS_REBOOT=''&lt;BR /&gt;SW_SESSION_OPTIONS=/var/tmp/BAA009056&lt;BR /&gt;SW_SOFTWARE_SPEC=VFES.VFES-RUN,l=/,r=1.4,a=HP-UX_B.11.00_32/64,v=,fr=1.4,fa=HP-UX_B.11.00_32/64&lt;BR /&gt;SW_SOURCE_DIR=''&lt;BR /&gt;SW_SOURCE_HOST=''&lt;BR /&gt;SW_SYSTEM_FILE_PATH=/stand/system&lt;BR /&gt;SW_VERBOSE=0&lt;BR /&gt;TERM=unknown&lt;BR /&gt;TMOUT=0&lt;BR /&gt;TZ=MET-1METDST&lt;BR /&gt;UNIX95=''&lt;BR /&gt;XNTPD=1&lt;BR /&gt;XNTPD_ARGS=''&lt;BR /&gt;_='\nvariables'&lt;BR /&gt;+ echo&lt;BR /&gt;&lt;BR /&gt;The shell used is /sbin/sh&lt;BR /&gt;+ /usr/local/bin/lsof -p 9058&lt;BR /&gt;COMMAND  PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME&lt;BR /&gt;sh      9058 root  cwd    DIR 64,0x3     8192    2 /&lt;BR /&gt;sh      9058 root  txt    REG 64,0x3  1403704 1758 /sbin/sh&lt;BR /&gt;sh      9058 root    0u   CHR  3,0x2      0t0  111 /dev/null&lt;BR /&gt;sh      9058 root   28u   REG 64,0x5     2793   54 /opt/VFES/product/agent/bin/stop.sh&lt;BR /&gt;&lt;BR /&gt;The UNIX95 variable is only used in this way:&lt;BR /&gt;&lt;BR /&gt;UNIX95= ps -o pid= -o ppid= -o args= -U "${VFES_LOGIN}" -u "${VFES_LOGIN}" -G "${VFES_GROUP}"</description>
      <pubDate>Wed, 06 May 2009 07:33:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/preremove-script-problem-in-hp-ux-11-31/m-p/5173341#M458478</guid>
      <dc:creator>Jdamian</dc:creator>
      <dc:date>2009-05-06T07:33:01Z</dc:date>
    </item>
    <item>
      <title>Re: preremove script problem in HP-UX 11.31</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/preremove-script-problem-in-hp-ux-11-31/m-p/5173342#M458479</link>
      <description>There is a shell library delivered at /usr/lbin/sw/control_utils.  You might fine the "kill_named_procs" function of interest.&lt;BR /&gt;&lt;BR /&gt;While not an API, it is not going away any time soon...</description>
      <pubDate>Wed, 06 May 2009 16:28:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/preremove-script-problem-in-hp-ux-11-31/m-p/5173342#M458479</guid>
      <dc:creator>Bob E Campbell</dc:creator>
      <dc:date>2009-05-06T16:28:50Z</dc:date>
    </item>
    <item>
      <title>Re: preremove script problem in HP-UX 11.31</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/preremove-script-problem-in-hp-ux-11-31/m-p/5173343#M458480</link>
      <description>&amp;gt;The variables when preremove script is run are:&lt;BR /&gt;IFS='&lt;BR /&gt;'  # I hope this is ok&lt;BR /&gt;SHELL=/usr/bin/sh  # this seems odd&lt;BR /&gt;UNIX95=''  # Lots of smoke here!&lt;BR /&gt;&lt;BR /&gt;&amp;gt;The UNIX95 variable is only used in this way:&lt;BR /&gt;&lt;BR /&gt;Someone already hosed you over by setting UNIX95.  Try unsetting it.&lt;BR /&gt;I suppose SHELL was set that way (instead of /sbin/sh) because you restarted the demon from a user login?&lt;BR /&gt;It would be good to check the values of the 3 chars in IFS.&lt;BR /&gt;echo "$IFS" | vis -n</description>
      <pubDate>Wed, 06 May 2009 18:51:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/preremove-script-problem-in-hp-ux-11-31/m-p/5173343#M458480</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-05-06T18:51:50Z</dc:date>
    </item>
    <item>
      <title>Re: preremove script problem in HP-UX 11.31</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/preremove-script-problem-in-hp-ux-11-31/m-p/5173344#M458481</link>
      <description>&lt;!--!*#--&gt;Hi&lt;BR /&gt;&lt;BR /&gt;I debugged this issue by myself and put clear:&lt;BR /&gt;&lt;BR /&gt;1. The problem was highlighted by a SD preremove but it appears also in interactive shell sessions.&lt;BR /&gt;&lt;BR /&gt;2. Only found in /usr/bin/sh and /sbin/sh shells. Not in Korn shell.&lt;BR /&gt;&lt;BR /&gt;3. Only root user is affected.&lt;BR /&gt;&lt;BR /&gt;4. The issue is related to UNIX95 variable. It is "congenital" -- Once the shell process is created, no changes in UNIX95 will correct the problem.&lt;BR /&gt;&lt;BR /&gt;5. These are the tests:&lt;BR /&gt;&lt;BR /&gt; a. # login as root&lt;BR /&gt; b. unset UNIX95 # remove UNIX95 if it exists&lt;BR /&gt; c. if [ ! 23 -o "" ]; then echo TRUE; else echo FALSE; fi  # test command line... it should display FALSE always.&lt;BR /&gt;&lt;BR /&gt; d. export UNIX95=1&lt;BR /&gt; e. /usr/bin/sh  # creating a subshell&lt;BR /&gt; f. echo $UNIX95 # to check that variable is found&lt;BR /&gt;&lt;BR /&gt; g. if [ ! 23 -o "" ]; then echo TRUE; else echo FALSE; fi  # TRUE is displayed !!!&lt;BR /&gt;&lt;BR /&gt; h. unset UNIX95&lt;BR /&gt; i. if [ ! 23 -o "" ]; then echo TRUE; else echo FALSE; fi  # TRUE is displayed !!! even if UNIX95 is not found.&lt;BR /&gt;&lt;BR /&gt; j. exit # exiting from the subshell&lt;BR /&gt; k. if [ ! 23 -o "" ]; then echo TRUE; else echo FALSE; fi  # FALSE is shown&lt;BR /&gt;&lt;BR /&gt;I infer that the UNIX95 variable is the cause of the wrong behaviour in the moment of the creation of the subshell process ("congenital") and it cannot be corrected even when UNIX95 variable is removed.&lt;BR /&gt;&lt;BR /&gt;Thanx in advance</description>
      <pubDate>Fri, 08 May 2009 07:30:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/preremove-script-problem-in-hp-ux-11-31/m-p/5173344#M458481</guid>
      <dc:creator>Jdamian</dc:creator>
      <dc:date>2009-05-08T07:30:03Z</dc:date>
    </item>
    <item>
      <title>Re: preremove script problem in HP-UX 11.31</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/preremove-script-problem-in-hp-ux-11-31/m-p/5173345#M458482</link>
      <description>I apologise for a mistake:&lt;BR /&gt;&lt;BR /&gt;Paragraph 3 is wrong. This issuem is affecting any user using POSIX shell.</description>
      <pubDate>Fri, 08 May 2009 10:40:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/preremove-script-problem-in-hp-ux-11-31/m-p/5173345#M458482</guid>
      <dc:creator>Jdamian</dc:creator>
      <dc:date>2009-05-08T10:40:37Z</dc:date>
    </item>
    <item>
      <title>Re: preremove script problem in HP-UX 11.31</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/preremove-script-problem-in-hp-ux-11-31/m-p/5173346#M458483</link>
      <description>&amp;gt;I debugged this issue by myself&lt;BR /&gt;&lt;BR /&gt;Thanks, this makes the problem clear.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;2. Only found in /usr/bin/sh and /sbin/sh shells.&lt;BR /&gt;&lt;BR /&gt;You forgot to mention that you have PHCO_37286 or PHCO_37177.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Once the shell process is created, no changes in UNIX95 will correct the problem.&lt;BR /&gt;&lt;BR /&gt;That's right.  The shell is looking at its environment and not the environment of the shell user.&lt;BR /&gt;&lt;BR /&gt;Any reason you don't rewrite your test expression in a rational manner, that doesn't use naked strings without a prefix or infix operator:&lt;BR /&gt;[ -z 23 -o -n "" ]&lt;BR /&gt;&lt;BR /&gt;In any case, this is a bug in the above two patches for the fix to QXCR1000750268 and you should contact the Response Center.  You can mention my name, as to the actual problem.&lt;BR /&gt;&lt;A href="http://www.itrc.hp.com/service/patch/patchDetail.do?patchid=PHCO_37286#Defect%20Description:" target="_blank"&gt;http://www.itrc.hp.com/service/patch/patchDetail.do?patchid=PHCO_37286#Defect%20Description:&lt;/A&gt;</description>
      <pubDate>Sat, 09 May 2009 08:07:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/preremove-script-problem-in-hp-ux-11-31/m-p/5173346#M458483</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-05-09T08:07:57Z</dc:date>
    </item>
    <item>
      <title>Re: preremove script problem in HP-UX 11.31</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/preremove-script-problem-in-hp-ux-11-31/m-p/5173347#M458484</link>
      <description>Hi again&lt;BR /&gt;&lt;BR /&gt;Yes, the patch PHCO_37286 is installed.&lt;BR /&gt;The PHCO_38048 is installed, too:&lt;BR /&gt;&lt;BR /&gt;PHCO_38048            libc cumulative patch&lt;BR /&gt;</description>
      <pubDate>Mon, 11 May 2009 06:25:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/preremove-script-problem-in-hp-ux-11-31/m-p/5173347#M458484</guid>
      <dc:creator>Jdamian</dc:creator>
      <dc:date>2009-05-11T06:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: preremove script problem in HP-UX 11.31</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/preremove-script-problem-in-hp-ux-11-31/m-p/5173348#M458485</link>
      <description>Have you contacted the Response Center yet?</description>
      <pubDate>Tue, 12 May 2009 03:31:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/preremove-script-problem-in-hp-ux-11-31/m-p/5173348#M458485</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-05-12T03:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: preremove script problem in HP-UX 11.31</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/preremove-script-problem-in-hp-ux-11-31/m-p/5173349#M458486</link>
      <description>Yes.&lt;BR /&gt;&lt;BR /&gt;We decided to install next patch.</description>
      <pubDate>Tue, 12 May 2009 05:08:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/preremove-script-problem-in-hp-ux-11-31/m-p/5173349#M458486</guid>
      <dc:creator>Jdamian</dc:creator>
      <dc:date>2009-05-12T05:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: preremove script problem in HP-UX 11.31</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/preremove-script-problem-in-hp-ux-11-31/m-p/5173350#M458487</link>
      <description>Thanks a lot</description>
      <pubDate>Tue, 12 May 2009 05:09:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/preremove-script-problem-in-hp-ux-11-31/m-p/5173350#M458487</guid>
      <dc:creator>Jdamian</dc:creator>
      <dc:date>2009-05-12T05:09:06Z</dc:date>
    </item>
    <item>
      <title>Re: preremove script problem in HP-UX 11.31</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/preremove-script-problem-in-hp-ux-11-31/m-p/5173351#M458488</link>
      <description>&amp;gt;Yes.&lt;BR /&gt;&lt;BR /&gt;Do you have an ID for your call?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;We decided to install next patch.&lt;BR /&gt;&lt;BR /&gt;It isn't fixed yet.</description>
      <pubDate>Tue, 12 May 2009 15:09:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/preremove-script-problem-in-hp-ux-11-31/m-p/5173351#M458488</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-05-12T15:09:42Z</dc:date>
    </item>
  </channel>
</rss>

