The -X flag in bin/otrs.Daemon.pl

English! place to talk about development, programming and coding
Post Reply
bschmalhofer
Znuny newbie
Posts: 12
Joined: 30 Apr 2020, 15:16
Znuny Version: 6.0
Real Name: Bernhard Schmalhofer
Company: Bernhard Schmalhofer
Location: Munich
Contact:

The -X flag in bin/otrs.Daemon.pl

Post by bschmalhofer »

Hi,

for OTOBO I'm converting the shebang lines of the the scripts to

Code: Select all

#!/usr/bin/env perl
. This works fine in all but one cases as usually no further flags are set in the shebang line. The exception is bin/otrs.Daemon.pl which sets -X, which turns off all warnings in the script and in all modules. For now I have set the shebang to

Code: Select all

#!/usr/bin/env -S perl -X.
, which works fine on Debian 10. This special case is not nice, so there is my question: Is there a special reason that -X is set, or is it simply a leftover from Copy & Paste?
root
Administrator
Posts: 3931
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: The -X flag in bin/otrs.Daemon.pl

Post by root »

Hi,

And what part of your question is related to the OTRS Community Edition?

- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
bschmalhofer
Znuny newbie
Posts: 12
Joined: 30 Apr 2020, 15:16
Znuny Version: 6.0
Real Name: Bernhard Schmalhofer
Company: Bernhard Schmalhofer
Location: Munich
Contact:

Re: The -X flag in bin/otrs.Daemon.pl

Post by bschmalhofer »

Well, I asked only one question. And that question is about the purpose of the -X flag in otrs.Daemon.pl in the Community Edition.
RotherOSS
Znuny newbie
Posts: 4
Joined: 23 Sep 2015, 11:20
Znuny Version: 3,4,5
Real Name: Stefan
Company: Rother OSS GmbH
Contact:

Re: The -X flag in bin/otrs.Daemon.pl

Post by RotherOSS »

Dear OTRS and OTOBO Community,

JFI, OTOBO 10 is based on OTRS 6 Community Edition and I hope that OTOBO will be the new true Community Edition.

Best wishes from Germany!

Stefan
Business services for ((OTRS)) Community Edition.

https://rother-oss.com/ | https://otobo.de/

Check out OTOBO – our free Open Source Helpdesk with strong functionality and a great look.
Based on ((OTRS)) Community Edition.
zzz
Znuny superhero
Posts: 888
Joined: 15 Dec 2016, 15:13
Znuny Version: All
Real Name: Emin
Company: Efflux GmbH
Contact:

Re: The -X flag in bin/otrs.Daemon.pl

Post by zzz »

Hey,

This comment was made a couple of hours ago (coincidence?), which overrides the -X flag: https://github.com/OTRS/otrs/commit/76d ... a289c33013

That could be a good indicator of an accident of the flag in the first place.
RotherOSS wrote: 28 May 2020, 10:21 Dear OTRS and OTOBO Community,

JFI, OTOBO 10 is based on OTRS 6 Community Edition and I hope that OTOBO will be the new true Community Edition.

Best wishes from Germany!

Stefan
There is a good chance if the xxx sticks on it's—partly new and party old—anti-open source and anti-third party contractor policies.
At least it would be refreshing if you'd offer a classic way of contributing to the project.

— Emin
Professional OTRS, Znuny & OTOBO services: efflux.de | efflux.de/en/

Free and premium add-ons: German | English
bschmalhofer
Znuny newbie
Posts: 12
Joined: 30 Apr 2020, 15:16
Znuny Version: 6.0
Real Name: Bernhard Schmalhofer
Company: Bernhard Schmalhofer
Location: Munich
Contact:

Re: The -X flag in bin/otrs.Daemon.pl

Post by bschmalhofer »

zzz wrote: 28 May 2020, 13:00 This comment was made a couple of hours ago (coincidence?), which overrides the -X flag: https://github.com/OTRS/otrs/commit/76d ... a289c33013
Thanks, this answers my question.
Post Reply