[WIP] Correcciones + Port a POSIX sh. #3
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Razonamiento:
Zarch funciona de maravilla en
bash
y enzsh
, sin embargo, el script aún contiene warnings y declaraciones / sentencias no estándar que podrían mermar su uso con usuarios de Arch que usen shells diferentes, comofish
,ksh
,dash
osh
puro.Esta Pull Request se utilizará para mejorar el script y de ser posible migrarlo a POSIX sh, lo cual aseguraría su portabilidad (dejando de lado las órdenes específicas de Arch, por supuesto).
Por el momento se solucionaron algunos warnings sobre el manejo de entrada y de errores. Sin embargo warnings como:
SC2034
SC2086
SC2154
aún necesitan ser solucionados antes de pasar el script completamente a POSIX sh.