On 30 April 2017 at 19:53, Profpatsch <m...@profpatsch.de> wrote: > On 17-04-30 03:07pm, Bjørn Forsman wrote: >> On 30 April 2017 at 15:01, Bjørn Forsman <bjorn.fors...@gmail.com> wrote: >> > Hi all, >> > >> > I'm stuck trying to pass $'\t' to bash via Nix multi-line strings: >> > >> > nix-repl> ''cut -d $'\t' -f 1'' >> > error: syntax error, unexpected $undefined, expecting IND_STR or >> > DOLLAR_CURLY or IND_STRING_CLOSE, at (string):1:10 >> >> Oh, it was only missing double single-quotes before the dollar sign. >> >> What tripped me was that the documentation says ${ is special in >> strings, not $'. > > How should we improve the manual in this regard?
Sure. But I'm also quite interested in knowing why $' needs escaping, especially when $ ' (space between) does not. - Bjørn _______________________________________________ nix-dev mailing list nix-dev@lists.science.uu.nl https://mailman.science.uu.nl/mailman/listinfo/nix-dev