Gilles Espinasse wrote: > It has been reported on ipcop-devel list that cp foo{,.bak} contruction is > broken on Ubuntu-8.04 > > This was on expect instructions > > cp configure{,.bak} > cp: missing destination file operand after `configure{,.bak}' > Try `cp --help' for more information. > > Could it not be prefered to build sed at the beginning, so it is always safe > to use sed -i? > That's what DYI do and what have been done on ipcop-1.4. > Anyway splitting in two instructions (one cp, one sed) could be the most > portable way. > > This construction is actually used on expect, gcc pass2, gzip, perl (in > perl, with mv, not cp)
Why is it broken? Is it because the shell being used is not bash? It is the shell that expands the {,.bak} construct and LFS now recommends using bash just to avoid potential problems like this. -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page