Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 524698 - app-admin/tmpwatch with dash - /etc/cron.daily/tmpwatch: 33: /etc/cron.daily/tmpwatch: [[: not found
Summary: app-admin/tmpwatch with dash - /etc/cron.daily/tmpwatch: 33: /etc/cron.daily/...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: nonbash
  Show dependency tree
 
Reported: 2014-10-07 14:03 UTC by Bruce Guenter
Modified: 2020-12-20 15:44 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
gentoo-bug-524698.patch (gentoo-bug-524698.patch,3.45 KB, patch)
2020-12-20 15:17 UTC, Kerin Millar
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Bruce Guenter 2014-10-07 14:03:44 UTC
When /bin/sh is a symlink to a shell other than bash, the tmpwatch cron job fails due to its use of the bash-specific [[ operator. This could be resolved either by making the cron job run with /bin/bash or by using the POSIX standard [ operator for tests.

Reproducible: Always

Steps to Reproduce:
1. ln -sf dash /bin/sh
2. /etc/cron.daily/tmpwatch

Actual Results:  
/etc/cron.daily/tmpwatch: 33: /etc/cron.daily/tmpwatch: [[: not found
Comment 1 Kerin Millar 2020-12-20 15:17:02 UTC
Created attachment 678939 [details, diff]
gentoo-bug-524698.patch