HP-UX 中的脚本无法创建或覆盖文件

Script in HP-UX can't create or overwrite files

我正在尝试在 HP-UX 11ia32 上构建 libxml2-2.7.8,但配置脚本卡在

echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed

而且我认为这是因为脚本无法创建文件。我假设这是因为它无法在重新运行脚本时覆盖 config.log 文件。我对权限进行了三重检查,并将整个文件夹更改为 777。

听起来像 noclobbermanual 列出了两种修改该设置的方法:

  % set [{-|+}abCefhkmnopstuvx] [{-|+}o option]...
       [{-|+}A name] [arg]...

       Set (-) or clear (+) execution options or perform array
       assignments (-A, +A).  All options except -A and +A can be
       supplied in a shell invocation (see the SYNOPSIS section and the
       Shell Invocation subsection).

       Using + instead of - before an option causes the option to be
       turned off.  These options can also be used when invoking the
       shell.  The current list of set single-letter options is
       contained in the shell variable -.  It can be examined with the
       command echo $-.

       The - and + options can be intermixed in the same command, except
       that there can be only one -A or +A option.

       Unless -A or +A is specified, the remaining arg arguments are
       assigned consecutively to the positional parameters 1, 2, ....

       The set command with neither arguments nor options displays the
       names and values of all shell parameters on standard output.  See
       also env(1).
...
       -C   Prevent redirection > from truncating existing files.
            Requires >| to truncate a file when turned on.
...
       -o   Set an option argument from the following list.  Repeat the
            -o option to specify additional option arguments.
...
           noclobber      Same as -C.

set +C
set +o noclobber