Bash Aliases

2 points | by vikaskyadav 2 hours ago

1 comments

  • TacticalCoder an hour 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.