public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/3266] New: ldd doesn't work when /bin/sh is dash
@ 2006-09-26 16:02 sqweek at gmail dot com
  2006-09-27 17:00 ` [Bug libc/3266] " drepper at redhat dot com
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: sqweek at gmail dot com @ 2006-09-26 16:02 UTC (permalink / raw)
  To: glibc-bugs

The problem is in line 122:
122:if set -o pipefail 2> /dev/null; then

 When dash hits the unknown pipefail option, it prints a diagnostic (which is
suppressed of course) and then exits. This appears to be well within the rights
of a compliant shell
<http://www.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html#tag_02_08_01>,
though it's arguable whether the specific case of "set -o foo" is covered
(especially since the table entries aren't exactly explicit about their
meaning). Anyway, I mean to contact dash about this aswell but I didn't find a
mailing list or bug database - only got as far as here tonight.

 As an aside, ldd also uses bash style $"" strings all over the place despite
claiming to be bourne compatible via #!/bin/sh (of course this still works in
dash you just get random $ signs in the output).

-- 
           Summary: ldd doesn't work when /bin/sh is dash
           Product: glibc
           Version: 2.3.6
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: drepper at redhat dot com
        ReportedBy: sqweek at gmail dot com
                CC: glibc-bugs at sources dot redhat dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=3266

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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

* [Bug libc/3266] ldd doesn't work when /bin/sh is dash
  2006-09-26 16:02 [Bug libc/3266] New: ldd doesn't work when /bin/sh is dash sqweek at gmail dot com
@ 2006-09-27 17:00 ` drepper at redhat dot com
  2006-10-02  8:38 ` sqweek at gmail dot com
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: drepper at redhat dot com @ 2006-09-27 17:00 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From drepper at redhat dot com  2006-09-27 17:00 -------
Then don't use dash.  bash is the only supported shell.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WONTFIX


http://sourceware.org/bugzilla/show_bug.cgi?id=3266

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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

* [Bug libc/3266] ldd doesn't work when /bin/sh is dash
  2006-09-26 16:02 [Bug libc/3266] New: ldd doesn't work when /bin/sh is dash sqweek at gmail dot com
  2006-09-27 17:00 ` [Bug libc/3266] " drepper at redhat dot com
@ 2006-10-02  8:38 ` sqweek at gmail dot com
  2007-07-04 15:44 ` richardvoigt at gmail dot com
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: sqweek at gmail dot com @ 2006-10-02  8:38 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From sqweek at gmail dot com  2006-10-02 08:38 -------
Created an attachment (id=1342)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=1342&action=view)
Fix ldd to rely on its proper interpreter

 Works for me, so long as ldd stops claiming to be POSIX compatible.

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=3266

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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

* [Bug libc/3266] ldd doesn't work when /bin/sh is dash
  2006-09-26 16:02 [Bug libc/3266] New: ldd doesn't work when /bin/sh is dash sqweek at gmail dot com
  2006-09-27 17:00 ` [Bug libc/3266] " drepper at redhat dot com
  2006-10-02  8:38 ` sqweek at gmail dot com
@ 2007-07-04 15:44 ` richardvoigt at gmail dot com
  2007-07-04 15:47 ` richardvoigt at gmail dot com
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: richardvoigt at gmail dot com @ 2007-07-04 15:44 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From richardvoigt at gmail dot com  2007-07-04 15:44 -------
Do you really think it is appropriate for the C runtime library to dictate which
shells need to be installed?  That kind of dependency seems very backwards.

Note that one effect of this decision is to make ldd worthless on a busybox system.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |richardvoigt at gmail dot
                   |                            |com
             Status|RESOLVED                    |REOPENED
         Resolution|WONTFIX                     |


http://sourceware.org/bugzilla/show_bug.cgi?id=3266

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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

* [Bug libc/3266] ldd doesn't work when /bin/sh is dash
  2006-09-26 16:02 [Bug libc/3266] New: ldd doesn't work when /bin/sh is dash sqweek at gmail dot com
                   ` (2 preceding siblings ...)
  2007-07-04 15:44 ` richardvoigt at gmail dot com
@ 2007-07-04 15:47 ` richardvoigt at gmail dot com
  2007-07-04 16:47 ` drepper at redhat dot com
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: richardvoigt at gmail dot com @ 2007-07-04 15:47 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From richardvoigt at gmail dot com  2007-07-04 15:47 -------
Anyway, I have a much shorter, much cleaner patch:

 # environments where the executed program might not have permissions
 # to write to the console/tty.  But only bash 3.x supports the pipefail
 # option, and we don't bother to handle the case for older bash versions.
-if set -o pipefail 2> /dev/null; then
+if (set -o pipefail) 2> /dev/null; then
+  set -o pipefail
   try_trace() {
     eval $add_env '"$@"' | cat
   }


-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=3266

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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

* [Bug libc/3266] ldd doesn't work when /bin/sh is dash
  2006-09-26 16:02 [Bug libc/3266] New: ldd doesn't work when /bin/sh is dash sqweek at gmail dot com
                   ` (3 preceding siblings ...)
  2007-07-04 15:47 ` richardvoigt at gmail dot com
@ 2007-07-04 16:47 ` drepper at redhat dot com
  2007-07-04 17:53 ` richardvoigt at gmail dot com
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: drepper at redhat dot com @ 2007-07-04 16:47 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From drepper at redhat dot com  2007-07-04 16:46 -------
Stop reopening.  bash is the only supported shell.  Maintain your own changes if
you must but stop burdening others.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |WONTFIX


http://sourceware.org/bugzilla/show_bug.cgi?id=3266

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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

* [Bug libc/3266] ldd doesn't work when /bin/sh is dash
  2006-09-26 16:02 [Bug libc/3266] New: ldd doesn't work when /bin/sh is dash sqweek at gmail dot com
                   ` (4 preceding siblings ...)
  2007-07-04 16:47 ` drepper at redhat dot com
@ 2007-07-04 17:53 ` richardvoigt at gmail dot com
  2010-07-30 11:56 ` a4239214 at bofthew dot com
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: richardvoigt at gmail dot com @ 2007-07-04 17:53 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From richardvoigt at gmail dot com  2007-07-04 17:53 -------
Just FYI -- I've never before reopened this bug.  If you are finding that the
bug keeps being opened, then it is something that a lot of your users care
about, not the same user bugging you continually.

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=3266

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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

* [Bug libc/3266] ldd doesn't work when /bin/sh is dash
  2006-09-26 16:02 [Bug libc/3266] New: ldd doesn't work when /bin/sh is dash sqweek at gmail dot com
                   ` (5 preceding siblings ...)
  2007-07-04 17:53 ` richardvoigt at gmail dot com
@ 2010-07-30 11:56 ` a4239214 at bofthew dot com
  2010-07-30 12:02 ` jakub at redhat dot com
  2010-08-09 18:39 ` sqweek at gmail dot com
  8 siblings, 0 replies; 10+ messages in thread
From: a4239214 at bofthew dot com @ 2010-07-30 11:56 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From a4239214 at bofthew dot com  2010-07-30 11:56 -------
This is stupid.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|WONTFIX                     |


http://sourceware.org/bugzilla/show_bug.cgi?id=3266

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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

* [Bug libc/3266] ldd doesn't work when /bin/sh is dash
  2006-09-26 16:02 [Bug libc/3266] New: ldd doesn't work when /bin/sh is dash sqweek at gmail dot com
                   ` (6 preceding siblings ...)
  2010-07-30 11:56 ` a4239214 at bofthew dot com
@ 2010-07-30 12:02 ` jakub at redhat dot com
  2010-08-09 18:39 ` sqweek at gmail dot com
  8 siblings, 0 replies; 10+ messages in thread
From: jakub at redhat dot com @ 2010-07-30 12:02 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From jakub at redhat dot com  2010-07-30 12:02 -------
See #c5.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |WONTFIX


http://sourceware.org/bugzilla/show_bug.cgi?id=3266

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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

* [Bug libc/3266] ldd doesn't work when /bin/sh is dash
  2006-09-26 16:02 [Bug libc/3266] New: ldd doesn't work when /bin/sh is dash sqweek at gmail dot com
                   ` (7 preceding siblings ...)
  2010-07-30 12:02 ` jakub at redhat dot com
@ 2010-08-09 18:39 ` sqweek at gmail dot com
  8 siblings, 0 replies; 10+ messages in thread
From: sqweek at gmail dot com @ 2010-08-09 18:39 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From sqweek at gmail dot com  2010-08-09 18:38 -------
i agree, that the assumption /bin/sh is bash continues to be deemed correct IS 
incredibly stupid. "all the world's a vax" -> "all the shs are bash".

if you don't want to support other shells, that is FINE and understandable. just 
ask the kernel for what you actually want, /bin/bash.

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=3266

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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

end of thread, other threads:[~2010-08-09 18:39 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-26 16:02 [Bug libc/3266] New: ldd doesn't work when /bin/sh is dash sqweek at gmail dot com
2006-09-27 17:00 ` [Bug libc/3266] " drepper at redhat dot com
2006-10-02  8:38 ` sqweek at gmail dot com
2007-07-04 15:44 ` richardvoigt at gmail dot com
2007-07-04 15:47 ` richardvoigt at gmail dot com
2007-07-04 16:47 ` drepper at redhat dot com
2007-07-04 17:53 ` richardvoigt at gmail dot com
2010-07-30 11:56 ` a4239214 at bofthew dot com
2010-07-30 12:02 ` jakub at redhat dot com
2010-08-09 18:39 ` sqweek at gmail 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).