Bug 16087 - ash is buggy
ash is buggy
Status: CLOSED DUPLICATE of bug 15957
Product: Red Hat Linux
Classification: Retired
Component: ash (Show other bugs)
6.2
i386 Linux
high Severity high
: ---
: ---
Assigned To: Preston Brown
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2000-08-12 21:13 EDT by juhtolv
Modified: 2008-05-01 11:37 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2000-10-03 14:28:32 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)

  None (edit)
Description juhtolv 2000-08-12 21:13:19 EDT
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 14:28:28 EDT
"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 11:36:27 EDT

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

Note You need to log in before you can comment on or make changes to this bug.