GNU bug report logs -
#68501
Misbehaving of text inside double quotes" " in shell
Previous Next
Full log
Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):
Am 16/01/2024 um 11:50 schrieb LitHack:
> Single quote behave normally but double quote is replacing the "$$"
> character with pid of open shell and "$<some text >" would not print
> anything as if it acting as a comment. Basically the problem is that double
> is parsing some of special character which it should not.
> In the attachment you would see hash having "$" in between then and is
> being parsed as mentioned above and hence does not write anything in file.
> Thanks and Regards.
That is normal shell behaviour. $y expands to the value of variable y,
$j9T of variable j9T etc.
Try setting some variables before to verify. And use single quote for
every string that should not be expanded.
This bug report was last modified 1 year and 155 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.