Thread (4 messages) 4 messages, 3 authors, 2016-06-15

Re: [PATCH] git-submodule add: Record branch name in .gitmodules

flat view

From: W. Trevor King <hidden>
Date: 2016-06-15 22:55:06

On Wed, Oct 24, 2012 at 02:12:18PM -0400, Phil Hord wrote:
+                                       VAR_NAME=$(printf '%s'
"$VAR_NAME" | tr A-Z a-z | sed -e 's/^[^a-z]/_/' -e 's/[^a-z0-9]/_/g')
Is there a reason why you use printf instead of echo?

Also, this sort of name cleaning should probably live in a new
function:

  clean_environment_variable()

or some such.  Is there a git-utility-functions.sh library hiding
somewhere in the source? ;)

-- 
This email may be signed or encrypted with GnuPG (http://www.gnupg.org).
For more information, see http://en.wikipedia.org/wiki/Pretty_Good_Privacy

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help