Re: Add -f flags to rm and mv

2007-05-16 Thread Christian Weisgerber
Ray Lai [EMAIL PROTECTED] wrote: No. Something is very wrong here. Why do your interactive shell aliases propagate to random shells? I export ENV=~/.profile You need to wrap the contents into something like case $- in *i*) ... ;; esac to keep them away from non-interactive shells.

Re: Add -f flags to rm and mv

2007-05-15 Thread Craig Skinner
On Mon, May 14, 2007 at 09:30:48PM +0200, Tobias Ulmer wrote: I export ENV=~/.profile That leads to 'funny' results. Do something like this in your .profile: if [ -o interactive ]; then : fi $ cat /etc/profile [ -o interactive ] [ $SHELL = /bin/ksh ] . /etc/ksh.kshrc $

Re: Add -f flags to rm and mv

2007-05-14 Thread Ray Lai
Ray Lai [EMAIL PROTECTED] wrote: Allows me to alias rm='rm -i' and make update-patches. While I'm here, add -f to other mv and rm commands. Okay? No. Something is very wrong here. Why do your interactive shell aliases propagate to random shells? I export ENV=~/.profile

Re: Add -f flags to rm and mv

2007-05-14 Thread Tobias Ulmer
On Mon, May 14, 2007 at 02:21:04PM -0400, Ray Lai wrote: Ray Lai [EMAIL PROTECTED] wrote: Allows me to alias rm='rm -i' and make update-patches. While I'm here, add -f to other mv and rm commands. Okay? No. Something is very wrong here. Why do your interactive shell

Add -f flags to rm and mv

2007-05-13 Thread Ray Lai
Allows me to alias rm='rm -i' and make update-patches. While I'm here, add -f to other mv and rm commands. Okay? -Ray- Index: build/update-patches === RCS file: /cvs/ports/infrastructure/build/update-patches,v retrieving revision

Re: Add -f flags to rm and mv

2007-05-13 Thread Christian Weisgerber
Ray Lai [EMAIL PROTECTED] wrote: Allows me to alias rm='rm -i' and make update-patches. While I'm here, add -f to other mv and rm commands. Okay? No. Something is very wrong here. Why do your interactive shell aliases propagate to random shells? -- Christian naddy Weisgerber