Live data from Hacker News

Bash Aliases

github.com

1–2 of 2 posts

Re: Bash Aliases

#2
> Overriding standard commands can sometimes break scripts or surprise experienced users. Therefore, explicit safe variants are preferable. > > alias cpi='cp -i' > alias mvi='mv -i' > alias rmi='rm -i'

That's entirely losing the benefit of aliasing rm to 'rm -i'

And how's that breaking scripts? Scripts don't use aliased versions.

As for experienced users, IMO, they'll have the rm -i alias... Precisely because they've been bitten by this.