18 Mar
2021
18 Mar
'21
13:02
On 2021-03-18 7:09 a.m., David T-G wrote:
I don't like that code at all. It's guaranteed to succeed, whether .alias exists with a non-zero length and parses happily, or .alias doesn't exist, or .alias exists AND HITS A FAILURE, which doesn't make sense.
Oh, it DOES make sense. It HAS to succeed since this is in .bashrc. This is the bash start-up script. If that fails then the bash startup aborts. Think about the consequences of that in various contexts and you'll realise why that can't be allowed to happen. -- “Reality is so complex, we must move away from dogma, whether it’s conspiracy theories or free-market,” -- James Glattfelder. http://jth.ch/jbg