Re: debian-installer/tools/ddetect hw-detect.sh,1.44,1.45
On Tue, Dec 23, 2003 at 05:21:15AM +0000, Joey Hess wrote:
[...]
> if [ -e $ide_module ]; then
> baseidemod=$(echo $ide_module | sed s/\.o$// | sed s/\.ko$// | sed 's/.*\///')
sed arguments must be quoted, otherwise backslashes are removed by the
shell:
$ x=$(echo xxx.ko | sed s/\.o$//)
$ echo $x
xxx.
$ x=$(echo xxx.ko | sed s/\.o$// | sed s/\.ko$//)
$ echo $x
xxx.
$ x=$(echo xxx.ko | sed 's/\.o$//')
$ echo $x
xxx.ko
$ x=$(echo xxx.ko | sed 's/\.o$//' | sed 's/\.ko$//')
$ echo $x
xxx
Denis
Reply to: