Bug 16087

Summary: ash is buggy
Product: [Retired] Red Hat Linux Reporter: juhtolv
Component: ashAssignee: Preston Brown <pbrown>
Status: CLOSED DUPLICATE QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: 6.2   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-10-03 18:28:32 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description juhtolv 2000-08-13 01:13:19 UTC
Today I realised, that ash of Red Hat Linux SuX0r more than I could expect: 

This works fine in my Debian GNU/Linux 2.2 (Potato): 

#!/bin/ash

BEATHOUR=$(date -u +%H)

BEATHOUR=$(( ${BEATHOUR} + 1 ))


But In Red Hat Linux 6.2 I needed to hack it like this: 


#!/bin/ash

BEATHOUR=$(date -u +%k | sed 's/\ //')

if test "${BEATHOUR}" = "0"
then
 BEATHOUR=1
else
 BEATHOUR=$((${BEATHOUR}+1))
fi

Comment 1 Pavel Roskin 2000-10-03 18:28:28 UTC
"ash" is buggy because it's obsolete.
The above script works perfectly with ash-0.3.7
This bug is a DUPLICATE of the bug 15957:
http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=15957
Please mark it as such.


Comment 2 Bill Nottingham 2000-10-04 15:36:27 UTC

*** This bug has been marked as a duplicate of 15957 ***