public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/28499] New: Couldn't export variable to sub process
@ 2021-10-26 14:40 drvignesh1992 at gmail dot com
  2021-10-26 20:15 ` [Bug libc/28499] " adhemerval.zanella at linaro dot org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: drvignesh1992 at gmail dot com @ 2021-10-26 14:40 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=28499

            Bug ID: 28499
           Summary: Couldn't export variable to sub process
           Product: glibc
           Version: 2.32
            Status: UNCONFIRMED
          Severity: critical
          Priority: P2
         Component: libc
          Assignee: unassigned at sourceware dot org
          Reporter: drvignesh1992 at gmail dot com
                CC: drepper.fsp at gmail dot com
  Target Milestone: ---

Hi Team,

I am migrating from glibc-2.31 to glibc-2.32 and couldn't export variable's to
child process

Please look into below logs and example code

----
# cat export.sh 
#!/bin/sh

A=5
export A
echo $A
./test.sh
----

----
# cat test.sh 
#!/bin/sh

echo $A
----

Output with glibc-2.31:

# ldd --version
ldd (GNU libc) 2.31
$Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$Written by Roland McGrath and Ulrich Drepper.
#
# ./export.sh 
5
5
#

Output with glibc-2.32:

# ldd --version
ldd (GNU libc) 2.32
$Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$Written by Roland McGrath and Ulrich Drepper.

# ./export.sh 
5

# 

You could see in glibc-2.31 exported variable is printing in the test.sh file
but in case of glibc-2.32 it is not.

Note: all other packages with the rootfs is same, except glibc

Tried using busybox and bash (latest version), but no improvement.

Is there a particular commit which causes this issue, I couldn't found any
release notes related to this.

Thanks in advance.

Regards,
Vignesh

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2021-11-12 10:50 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-26 14:40 [Bug libc/28499] New: Couldn't export variable to sub process drvignesh1992 at gmail dot com
2021-10-26 20:15 ` [Bug libc/28499] " adhemerval.zanella at linaro dot org
2021-10-27 13:40 ` drvignesh1992 at gmail dot com
2021-10-27 14:04 ` adhemerval.zanella at linaro dot org
2021-11-01 10:10 ` drvignesh1992 at gmail dot com
2021-11-01 12:01 ` adhemerval.zanella at linaro dot org
2021-11-02 10:48 ` drvignesh1992 at gmail dot com
2021-11-02 12:47 ` adhemerval.zanella at linaro dot org
2021-11-12 10:50 ` fweimer at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).