[CentOS-docs] Translation of centos-art.sh script
Alain Reguera Delgado
alain.reguera at gmail.com
Thu Sep 13 19:11:15 EDT 2012
On 09/09/2012 02:31 AM, Akemi Yagi wrote:
>> 1. ${HOME}/artwork/trunk/Scripts/Bash/centos-art.sh prepare
>> --set-environment
>
> This added 2 more lines in the output:
>
> grep '^function ' ${FILE} | cut -d' ' -f2)
> grep '^function ' ${FILE} | cut -d' ' -f2)
> grep '^function ' ${FILE} | cut -d' ' -f2
> echo $ARG | sed "s/'/\\\0x27/g")
> echo $ARG | sed "s/'/\\\0x27/g"
> echo $ARG | sed "s/'/\\\0x27/g")
> echo $ARG | sed "s/'/\\\0x27/g"
>
> presumably because the command had one more argument. I let it run for
> 4 hrs before terminating.
I think a closer look into the script will be needed here.
Please open the file `trunk/Scripts/Bash/Functions/Commons/init.sh' and
look for the following section:
66 # Initialize common functionalities.
67 for FILE in ${FILES};do
68 if [[ -x ${FILE} ]];then
69 . ${FILE}
70 export -f $(grep '^function ' ${FILE} | cut -d' ' -f2)
71 else
72 echo "`eval_gettext "The \\\$FILE needs to have execution
rights."`"
73 exit
74 fi
75 done
Here is the grep '^function ' ${FILE} | cut -d' ' -f2 stuff. It should
look like above in your working copy. Can you see anything wrong in this
code?
Could you verify that the Bash interpreter passes through this block of
code without any error in your workstation, please. For example, add the
following two lines after `done' statement (on line 75):
76 echo 'Without errors so far.'
77 exit
and run the script again:
~/artwork/trunk/Scripts/Bash/centos-art.sh prepare --set-environment
--
Alain Reguera Delgado <alain.reguera at gmail.com>
More information about the CentOS-docs
mailing list