Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
juis_check: improve handling of spaces in parameters
After those changes, it's possible again to call this script with parameters containing spaces, e.g.: juis_check -s "output of request.xml" fb7490 'Name=FRITZ!Box 7491 (UI)' or juis_check -s "output of request.xml" fb7490 Name='FRITZ!Box 7491 (UI)' Even preserving such values while (internally) re-spawning the script with 'bash' should work as expected. To preserve these space characters, they're replaced in values from command line (at first touch) with a ZWSP (zero-width space) in UTF-8 encoding (while collecting options and parameters from caller) and this substitution is undone while assigning values to variables later.
- Loading branch information
Showing
1 changed file
with
13 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters