netcdf-c/unit_test
Dennis Heimbigner efd1be5d62 Fix shell handling of escapes
re: https://github.com/Unidata/netcdf-c/issues/1988

There was an issue with certain shell programs (bash notably).
For certain platforms and when given a url that had an escaped
'#' character (e.g. \\#) bash would not remove the backslash. So I
had to add a hack for this. Unfortunately I overdid it and it
removed all '' characters. This is ok for non-windows platforms,
but obviously fails for windows.

The fix is this.

1. In a utility program (ncgen, ncdump, nccopy, etc) there is probably a call (or calls) to NC_backslashUnescape(xxx) where xxx is a path argument from the command line.
2. Replace each such call with NC_shellUnescape(xxx).

The NC_shellUnescape function was added and searched only for occurrences of "\#" and replaces them with "#".
2021-04-21 14:59:15 -06:00
..
CMakeLists.txt Make use of clock_gettime be conditional. 2020-12-06 18:19:53 -07:00
Makefile.am Additional Fixes to NCZarr 2020-12-16 20:48:02 -07:00
test_ncuri.c This PR adds EXPERIMENTAL support for accessing data in the 2020-06-28 18:02:47 -06:00
test_pathcvt.c Fix shell handling of escapes 2021-04-21 14:59:15 -06:00
timer_utils.c Additional Fixes to NCZarr 2020-12-16 20:48:02 -07:00
timer_utils.h Make use of clock_gettime be conditional. 2020-12-06 18:19:53 -07:00
tst_exhash.c Additional Fixes to NCZarr 2020-12-16 20:48:02 -07:00
tst_nc4internal.c Change (again), and hopefully simplify, the file model inference algorithm. 2019-09-29 12:59:28 -06:00
tst_nclist.c fixed warning 2020-03-02 16:29:52 -07:00
tst_xcache.c Additional Fixes to NCZarr 2020-12-16 20:48:02 -07:00