Just curious: Are you a backslasher or a quoter? Example:
Quotes:
if [[ -f "/Volumes/Macintosh HD/Library/Preferences/com.apple.file.plist" ]]; then
rm -f "/Volumes/Macintosh HD/Library/Preferences/com.apple.file.plist"
fi
OR
Backslashes:
if [[ -f /Volumes/Macintosh HD/Library/Preferences/com.apple.file.plist ]]; then
rm -f /Volumes/Macintosh HD/Library/Preferences/com.apple.file.plist
fi
Personally, I prefer a (backslash) to escape spaces in file names and paths. Not sure why (been doing it for years). Some prefer quotes because they are easier to see.
Is there a best practice or style guide for this? Opinions?
