Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Expanding a variable extracted from another file



> On Fri, May 15, 2020 at 11:48 PM TJ Luoma <luomat@xxxxxxxxx> wrote:
>
> Assume I have a plain text file "$HOME/MyReferenceDoc.txt" which has
> these lines:
>
> "$HOME/glue/sticks"
> "$HOME/foo/bar"
> "$HOME/work/files"

What is the meaning of quotes? Are these all equivalent?

  "$HOME/foo/bar"
  '$HOME/foo/bar'
  $HOME/foo/bar
  \$HOME/foo/bar

Code posted by Bart assumes that they are. ${(Qe)MYVAR} have the same
value if MYVAR is set to any of these lines.

Roman.



Messages sorted by: Reverse Date, Date, Thread, Author