Re: problem with backslash in directory name

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am 07.04.2017 um 08:30 schrieb Jeff King:
Probably it's "read" which does backslash expansion, but nothing else.
Just grepping git-submodule.sh, some of the "read" calls should probably
be "read -r"

http://wiki.bash-hackers.org/commands/builtin/read has this to say:

Essentially all you need to know about -r is to ALWAYS use it. The
> exact behavior you get without -r is completely useless even for weird
> purposes. It basically allows the escaping of input which matches
> something in IFS, and also escapes line continuations. It's explained
> pretty well in the POSIX read[1] spec.

[1] http://pubs.opengroup.org/onlinepubs/9699919799/utilities/read.html#tag_20_109

(That's the kind of stuff that makes me shy of using shell scripts - always yet another surprise in waiting...)



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]