c++ - Setting an environment variable to a space in GDB -
i need set environment variable single space in gdb, when tried
set env var ' '
gdb sets var 3-character string, namely quote, space , quote. there way in gdb? or gdb parsing arguments , setting varialbes strings passed (without escaping etc.)?
thanks!
it not appear possible directly. in build documentation (help set env
) states:
values of environment variables uninterpreted strings.
and gdb's source code (specifically environ.c
, infcmd.c
) concur , not show explicit manipulation of value other removing training whitespace.
Comments
Post a Comment