qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [Bug 1835839] [NEW] qemu-user: $0 incorrectly always reports absolute path
@ 2019-07-08 22:43 John Paul Adrian Glaubitz
  2019-07-09 11:54 ` [Qemu-devel] [Bug 1835839] " Laurent Vivier
                   ` (3 more replies)
  0 siblings, 4 replies; 17+ messages in thread
From: John Paul Adrian Glaubitz @ 2019-07-08 22:43 UTC (permalink / raw)
  To: qemu-devel

Public bug reported:

We just ran into an issue with the Perl package on Debian/m68k when
being built with qemu-user [1].

The problem can be boiled down to qemu-user always reporting absolute
paths for the shell variable $0 no matter on how the command was
invoked.

A simple reproducer is this:

On normal system (no emulation):

root@nofan:~> sh -c 'echo $0'
sh
root@nofan:~>

On qemu-user:

(sid-m68k-sbuild)root@nofan:/# sh -c 'echo $0'
/bin/sh
(sid-m68k-sbuild)root@nofan:/#

> [1] https://lists.debian.org/debian-68k/2019/07/msg00007.html

** Affects: qemu
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1835839

Title:
  qemu-user: $0 incorrectly always reports absolute path

Status in QEMU:
  New

Bug description:
  We just ran into an issue with the Perl package on Debian/m68k when
  being built with qemu-user [1].

  The problem can be boiled down to qemu-user always reporting absolute
  paths for the shell variable $0 no matter on how the command was
  invoked.

  A simple reproducer is this:

  On normal system (no emulation):

  root@nofan:~> sh -c 'echo $0'
  sh
  root@nofan:~>

  On qemu-user:

  (sid-m68k-sbuild)root@nofan:/# sh -c 'echo $0'
  /bin/sh
  (sid-m68k-sbuild)root@nofan:/#

  > [1] https://lists.debian.org/debian-68k/2019/07/msg00007.html

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1835839/+subscriptions


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

end of thread, other threads:[~2021-06-17  7:17 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-07-08 22:43 [Qemu-devel] [Bug 1835839] [NEW] qemu-user: $0 incorrectly always reports absolute path John Paul Adrian Glaubitz
2019-07-09 11:54 ` [Qemu-devel] [Bug 1835839] " Laurent Vivier
2019-07-09 12:12   ` John Paul Adrian Glaubitz
2019-07-09 12:51     ` Laurent Vivier
2019-07-09 12:51       ` Laurent Vivier
2019-07-09 13:07       ` John Paul Adrian Glaubitz
2019-07-09 14:01         ` Laurent Vivier
2019-07-09 14:01           ` Laurent Vivier
2019-07-09 15:09           ` John Paul Adrian Glaubitz
2019-07-09 15:11             ` John Paul Adrian Glaubitz
2019-07-09 15:25             ` Laurent Vivier
2019-07-09 15:25               ` Laurent Vivier
2019-07-09 12:16 ` Peter Maydell
2019-07-09 13:00   ` Laurent Vivier
2019-07-09 13:47   ` Laurent Vivier
2021-04-22  7:05 ` Thomas Huth
2021-06-17  7:07 ` Thomas Huth

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 NNTP newsgroup(s).