- 论坛徽章:
- 0
|
在bind-9.3.6-20.P1.el5_8.1的SPEC文件中有一个egrep的用法:
- /usr/bin/tail -n '+'`/bin/egrep -n '\\$Id$/+1/' | bc` bin/rndc/rndc.conf | sed '/Sample rndc configuration file./{p;i\
- *\
- * NOTE: you only need to create this file if it is to\
- * differ from the following default contents:
- ;d}' > sample/etc/rndc.conf;
复制代码 但是这个语句不能执行完毕,大家来分析看看,为何这个不能执行完毕?
ps,
bin/rndc/rndc.conf的内容如下:
- /*
- * Copyright (C) 2004 Internet Systems Consortium, Inc. ("ISC")
- * Copyright (C) 2000, 2001 Internet Software Consortium.
- *
- * Permission to use, copy, modify, and distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
- * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
- * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
- * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- * PERFORMANCE OF THIS SOFTWARE.
- */
- /* $Id: rndc.conf,v 1.7.206.1 2004/03/06 10:21:32 marka Exp $ */
- /*
- * Sample rndc configuration file.
- */
- options {
- default-server localhost;
- default-key "rndckey";
- };
- server localhost {
- key "rndckey";
- };
- include "/etc/rndc.key";
复制代码 这个bind版本的前一个版本是这样的,貌似没有问题:
- /usr/bin/tail -n '+'`/bin/egrep -n '\\$Id: rndc.conf,v' bin/rndc/rndc.conf | sed 's/:.*$/+1/' | bc` bin/rndc/rndc.conf | sed '/Sample rndc configuration file./{p;i\
- *\
- * NOTE: you only need to create this file if it is to\
- * differ from the following default contents:
- ;d}' > sample/etc/rndc.conf;
复制代码 |
|