Ticket #1122 (closed defect: fixed)

Opened 5 years ago

Last modified 5 years ago

Problème de bashism dans une installation avec Ubuntu

Reported by: anonyme Owned by: anonymous
Priority: normal Milestone:
Component: Package Debian Version:
Severity: crash Keywords:
Cc:

Description

À cause qu'Ubuntu utilise le shell dash au lieu de bash, pour des raisons de performance, alternc a quelques problèmes. Comme par exemple la fonction "function" n'existe pas dans dash et donc certains scripts donnent des erreurs.

Pour d'autre exemple voir:  https://wiki.ubuntu.com/DashAsBinSh

Change History

comment:1 Changed 5 years ago by anarcat

  • Status changed from new to closed
  • Resolution set to fixed

(In [2169]) remove a bashism: don't use the function keyword to declare functions, it's not POSIX.

Note that there might be some other bashisms around, but this is the only one I am aware of now, so...

Closes: #1122

comment:2 Changed 5 years ago by anarcat

(In [2176]) remove bashisms in shell scripts.

See #1122

Note: See TracTickets for help on using tickets.