I have a makefile where I'm stopping a service before removing a file. When it couldn't stop the service, it would break on error. This is clearly unwanted so I thought I'd add || true but missed a |. Making it:
stop service foo | true rm /etc/init/foo.conf I'm confused as to why this is working and what is happening. Does this mean that true is an application and not merely a keyword? Are they the same? Is there a good reason to use | true?
trueis being ignored. The only side-effect is thatstdoutis redirected to nowhere in an unreliable way.