On 27 June 2016 at 19:53, Junio C Hamano <gits...@pobox.com> wrote: > Jakub Narębski <jna...@gmail.com> writes: > >> On 2016-06-27, Alex Riesen wrote: >> >>> This adds a FILENAMES environment variable, which contains the repository >>> pathnames of all selected files the list. >>> The variable contains the names separated by spaces. >> >> Why not separate filenames with end-of-line character (LF)? It would still >> be broken for some filenames, but only for unportable ones. Filenames with >> internal space (common on MS Windows) would work then. >> >> http://www.dwheeler.com/essays/filenames-in-shell.html >> >> If Tcl allows it, you could separate filenames in FILENAMES environment >> variable with NUL ("\0") character... > > Tcl may or may not handle a string with an embedded NUL, but I think > it is hard to have an embedded NUL in an environment variable. > > Use of LF is a good suggestion regardless.
Or be a good citizen, and use $IFS... though then the user would need to set it to something sane-ish. -- Jakub Narebski -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html