Bash Aliases

(github.com)

2 points | by vikaskyadav 8 hours ago ago

1 comments

  • TacticalCoder 8 hours ago 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.