Re: Better code in mythweb.postinst

トップ ページ

このメッセージに返信
著者: Christian Marillat
日付:  
To: dmo-discussion
題目: Re: Better code in mythweb.postinst
Christian Marillat <marillat@???> writes:

> Guillaume Membré <guillaume.ml@???> writes:
>
>> Hi, did you try with :
>> s#\(^[ \t]*setenv[ \t]\+db_server[ \t]\+\"\)[^\"]*\"#\1$hostname\"#g;
>>
>> I replaced / by # for sed to tell him that # in the command separator
>> and no more / problem
>
> Yes, so easy :) Thanks.


Not so easy. Now sed is unable to parse a password with a #.

Christian