unfamiliar quoting convention in a bash script -


i'm trying debug bash script on macos. business end of script just:

$java_command $class $* 

the command line includes /a/b/d/*, files in /a/b/d have names in arabic.

when run sh -x, each of files echoed $'/a/b/c/thearabic'

where $' convention come from, , mean?

from bash man page:

words of form $'string' treated specially. word expands string, backslash-escaped characters replaced specified ansi c standard. backslash escape sequences, if present, decoded follows:

...

the expanded result single-quoted, if dollar sign had not been present. double-quoted string preceded dollar sign ($) cause string translated according current locale. if current locale c or posix, dollar sign ignored. if string translated , replaced, replacement double-quoted.

man page


Comments