Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 69666

Summary: emerge-webrsync is a bash script.
Product: Portage Development Reporter: Stephen Bennett (RETIRED) <spb>
Component: CoreAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: normal CC: bsd+disabled
Priority: High Keywords: InVCS
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---

Description Stephen Bennett (RETIRED) gentoo-dev 2004-10-31 13:35:37 UTC
The emerge-webrsync script has '#!/bin/sh' on its first line, but uses Bash features that aren't present in the standard Bourne shell. This breaks it on platforms such as FreeBSD, where sh and bash are not the same thing. Suggested fix: change the first line to '#!/bin/bash'.

This probably applies to a few more scripts as well, but emerge-webrsync is the one where I noticed it.
Comment 1 Jason Stubbs (RETIRED) gentoo-dev 2004-11-02 05:49:01 UTC
Fixed this one. The only other two scripts marked /bin/sh are dojar and find-requires. I'm not familiar enough with what constitues a bashism, so if you check them out I'll mark/leave them as necessary.
Comment 2 Stephen Bennett (RETIRED) gentoo-dev 2004-12-17 14:56:09 UTC
Marking this one fixed since, seemingly, it is.