Bash Aliases

2 pointsposted 8 hours ago
by vikaskyadav

1 Comments

TacticalCoder

8 hours ago

> 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.