I just opened a legacy shell script (written in old ksh88 on Solaris) and found the following repeated all throughout the code:[ -f $myfile ] && \rm -f $myfileThe escaping backslash strikes me as odd.I know it is deliberate, since this kind of (apparently useless) escaping is repeated all throughout the code. The original author is long gone, I cannot get in touch with him to ask him. Is this simply a funny idiosyncrasy of the author or is it some sort of deprecated good practice that made sense at some point in time? Or maybe is actually the recommended way of doing things and I'm missing something altogether?
Why escape trivial characters in shell script?
shell script;quoting;ksh
This is used for alias protection:$ ls.bashrc  a  b$ alias lsalias ls='ls $LS_OPTIONS'$ \lsa   b