![]() ![]() ![]() To contact the owner, e-mail: opensuse-factory+owner(a) To unsubscribe, e-mail: opensuse-factory+unsubscribe(a) SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton Lrwxrwxrwx 1 root root 4 Feb 8 10:38 /bin/sh -> bash That'd be easier (especiallyįor testing compliance) than referring to a spec. IMO we should define one of the variousĮxisting shells as a reference by saying "if it's supportedīy this shell, it's valid scriptlet code". We should have clear rules which syntax expressions can be used in rpm Portable either, even though it's part of the POSIX "test" standard Recall from earlier work that writing really 100% compatible shell codeįor all kinds of environments is really hard. If we can't assume that /bin/sh is bash, what else can we assume? I bin/sh has pointed to bash for a long time (not sure how longįTR, Fedora basically guarantees (sh = bash) for the purpose of rpmįedora openSUSE portability may also be an issue to consider. our Wiki suggests testing failing scriplets using "bash -xv"Ĥ. we could handle /bin/sh via /etc/alternatives, but we don't.ģ. Is a non-configurable part of the "bash" package.Ģ. patterns-base-minimal_base depends on bash, and the /bin/sh symlink Here are some arguments why I think it'd be reasonable to assume thatġ. Problably there are moreĭifferences, I can't claim to know them all. the ] construct), which makes it behave differently thanĪnother shell not supporting ] would (*). If it's in POSIX mode, it supports some extensions over the POSIX shell Unless it's tampered with, /bin/sh is a symlink to /bin/bash.īash is not started in full POSIX mode if invoked as /bin/sh, and even But as a matter of fact, on current openSUSE, it I'm aware that, in principle, /bin/sh is supposed to be the Bourne ![]() In particular whether rpm scriptlets without explicit -p interpreter ![]() The question is whether we can assume that "/bin/sh" links to bash, I'd like to carry our OBS dicussion to a wider audience ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |