Re: fai-sed exit code

2020-01-13 Diskussionsfäden Andreas Heinlein
Am 13.01.20 um 13:04 schrieb Thomas Lange: > I can add such an option, which I already have with fcopy. > I a shell script, you can use this code to always get exit 0 from a command. > > fai-sed .. || true That is true, but this means that no error will get caught, not even syntax errors, f

Re: fai-sed exit code

2020-01-13 Diskussionsfäden Thomas Lange
> On Fri, 10 Jan 2020 16:16:19 +0100, Andreas Heinlein > said: > Am 10.01.20 um 16:02 schrieb Thomas Lange: >> I want to distinguish if fai-sed has nothing to change or changed the >> file. Therefore in one the cases it has to return and exit code != 0. >> >> Do you

Re: fai-sed exit code

2020-01-10 Diskussionsfäden Andreas Heinlein
Am 10.01.20 um 16:02 schrieb Thomas Lange: > I want to distinguish if fai-sed has nothing to change or changed the > file. Therefore in one the cases it has to return and exit code != 0. > > Do you have any better idea? If you want to do this, no, I have no better idea. You would have to exit an

Re: fai-sed exit code

2020-01-10 Diskussionsfäden Thomas Lange
> On Fri, 10 Jan 2020 14:47:15 +0100, Andreas Heinlein > said: > can you explain the purpose of fai-sed exiting with '1' if the file was changed? By default, this would mean a script *fails* with this exit code if a file was actually changed. > Would also be nice to update the

fai-sed exit code

2020-01-10 Diskussionsfäden Andreas Heinlein
Hello, can you explain the purpose of fai-sed exiting with '1' if the file was changed? By default, this would mean a script *fails* with this exit code if a file was actually changed. Would also be nice to update the example scripts to use fai-sed instead of sed. Thanks, Andreas