rm in function changed to rm -i during login
when I ssh in my .bashrc file is read. it has a function with a line like this in it:
rm -- "$i".
However, after loggin in the line looks like this:
rm -i -- "$i"
somehow the login process is changing the code and adding the -i.
Has anybody else noticed this? I find if I source the function after logging in the correct code is there. kind of a pain in the neck.
After discussing the issue with some colleagues, I was hoping could confirm a few details. This could help us narrow down the cause of the issue.
- First, are you SSH'ing in to the server and logging in as the same user?
- What are you using to SSH in? The settings may be imported.
- Just to double check, how are you viewing the file each time? Just wanted to confirm one wasn't actually the file and the other instance was a symlink or something similar.
Please let us know, and we'll try to assist you from there.