2016-03-02 2 views
0

Я пытаюсь построить libxml2-2.7.8 на HP-UX 11ia32 и настроечный скрипт застрял наScript в HP-UX не могут создать или перезаписать файлы

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

И я полагаю, что ее из-за чтобы скрипт не мог создавать файлы. Я предполагаю это, потому что он не может перезаписать файл config.log при повторном запуске скрипта. У меня трижды проверены разрешения, и я chmod всю папку с 777.

ответ

0

Это звучит как noclobber. В manual перечислены два способа изменения этой настройки:

% 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 
Смежные вопросы