I have an existing file, which I replace with a symlink to another file. So I basically have to do this:
rm orig
ln -s /var/better orig
I DRYed above:
{rm,ln\ -s\ /var/better}\ orig\;
But it doesn't work anymore. Now the shell complains:
-bash: rm orig;: command not found
Is there a way to get DRY to work?
source
share