Changes between Version 4 and Version 5 of TraineesNotes
- Timestamp:
- 01/30/13 17:19:34 (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TraineesNotes
v4 v5 60 60 -- disjunctive dependencies ("OR") 61 61 --- APT looks through package list to see if any of the packages are installed. If they do, success. 62 --- -if not, look at beginning of list, try to install that, if succeeds, success. If not, try next.63 --- -don't misuse them for optional deps (e.g. foo | basefiles), because basefiles will always satisfy it, and it'll never try foo.62 ---if not, look at beginning of list, try to install that, if succeeds, success. If not, try next. 63 ---don't misuse them for optional deps (e.g. foo | basefiles), because basefiles will always satisfy it, and it'll never try foo. 64 64 65 65 Recommendations: … … 94 94 talk about "set -e" 95 95 doesn't _have_ to be in shell, but should be. 96 shell idiom " || :" (if this fails, don't error out) (|| true is more readble and equal nowadays)97 "something || [ $? = 123 ]" so if something returns 123, it's not an error, but other error codes might be96 shell idiom " || :" (if this fails, don't error out) (|| true is more readble and equal nowadays) 97 "something || [ $? = 123 ]" so if something returns 123, it's not an error, but other error codes might be 98 98 99 99