George Georgalis wrote:
.. So, I changed it to do "sed ... $1 >$1-tmp && cat $1-tmp >$1 && rm $1-tmp" which just retains the original mode which is good enough. .. the key is setting a umask before running from $PATH ...why isn't it applied? ..
The behavior may still be understandable by chasing down the .bashrc behavior, but I believe the final version you arrived at is ok.
Of course, a perler would say to just do perl -i -pe 'tr/\r/d' file.txt and be done with it. ..jim -- [email protected] http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list
