[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: sed command is fine from within a shell script but not from within debian/rules?



Simon Richter <Simon.Richter@phobos.fs.tum.de> wrote:
>On Wed, 6 Sep 2000, Shaul Karl wrote:
>> I am trying to adjust a tcl program to the Debian policy by running a
>> sed command from within debian\rules. However this command seems to
>> do what I want from within a shell script but not from within
>> debian\rules.
>
>> sed -e '/\exec \/usr\/bin\/wish8.3 \$0 \${1+"\$@"}/a\$
>
>You need to escape the dollar signs as "$$" and probably the backslashes
>too.

No, the backslashes should be left alone here:

  [cjw44@riva ~]$ cat foo
  all:
  	echo '\\$$'
  [cjw44@riva ~]$ make -f foo
  echo '\\$'
  \\$
  [cjw44@riva ~]$ 

-- 
Colin Watson                                     [cjw44@flatline.org.uk]



Reply to: