Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#1375 - pdksh errors changing /etc/shells

Attached to Project: Arch Linux
Opened by Kevin Piche (kpiche) - Saturday, 04 September 2004, 11:10 GMT
Last edited by Eric Johnson (eric) - Monday, 06 September 2004, 13:24 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Eric Johnson (eric)
Architecture not specified
Severity Very Low
Priority Normal
Reported Version 0.7 Wombat
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Installing and removing pdksh displays some "file not found" errors. The pdksh.install has wrong path to sed and /etc/shells.

--- pdksh.install 2004-07-21 08:11:54.000000000 -0400
+++ pdksh.install.new 2004-09-04 07:02:02.000000000 -0400
@@ -1,8 +1,8 @@
# arg 1: the new package version
post_install() {
- if [ ! "`/bin/grep /usr/bin/ksh etc/shells`" ]; then
+ if [ ! "`/bin/grep /usr/bin/ksh /etc/shells`" ]; then
/bin/echo "updating /etc/shells... done."
- /usr/bin/sed -i "s|/bin/bash|/bin/bash\n/usr/bin/ksh|" etc/shells
+ /bin/sed -i "s|/bin/bash|/bin/bash\n/usr/bin/ksh|" /etc/shells
fi
}

@@ -15,7 +15,7 @@
# arg 1: the old package version
pre_remove() {
/bin/echo -ne "\nupdating /etc/shells... "
- /usr/bin/sed -i "s|/usr/bin/ksh||" etc/shells
+ /bin/sed -i "s|/usr/bin/ksh||" /etc/shells
}

# arg 1: the old package version
This task depends upon

Closed by  Eric Johnson (eric)
Monday, 06 September 2004, 13:24 GMT
Reason for closing:  Fixed
Comment by Eric Johnson (eric) - Monday, 06 September 2004, 13:24 GMT
sed was moved from /usr/bin to /bin.

Loading...