Bug 59727 - new init script works, but prints a $ before messages
new init script works, but prints a $ before messages
Product: Red Hat Linux
Classification: Retired
Component: at (Show other bugs)
i386 Linux
low Severity low
: ---
: ---
Assigned To: Jens Petersen
Aaron Brown
at-3.1.8-22.2 appears to have typos i...
Depends On:
  Show dependency treegraph
Reported: 2002-02-12 02:37 EST by sundell
Modified: 2005-10-31 17:00 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2003-06-02 01:19:53 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description sundell 2002-02-12 02:37:49 EST
From Bugzilla Helper:
User-Agent: Mozilla/4.77 [en] (X11; U; Linux 2.2.20 i686; Nav)

Description of problem:
The first $ in each of these three lines from the init script for at-3.1.8-22.2
seems sort of odd:

echo -n $"Starting $prog: "
echo -n $"Stopping $prog: "
echo $"Usage: $0 {start|stop|restart|condrestart|status}"

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. /etc/rc.d/init.d/atd stop
2. /etc/rc.d/init.d/atd start

Actual Results:
1. $Stopping atd:                                             [  OK  ]
2. $Starting atd:                                             [  OK  ]

Expected Results:
1. Stopping atd:                                             [  OK  ]
2. Starting atd:                                             [  OK  ]

Maybe this is on purpose, but it sure seems strange... Obviously this is only
Comment 1 Eido Inoue 2002-02-12 14:17:18 EST
What shell are you using? Seems to work for an updated 6.2....
Comment 2 sundell 2002-02-12 16:57:56 EST
I'm using bash-1.14.7-23.6x as root's login shell, but I fail to see how that is
relevant, as the script is run through #!/bin/bash

The init script for atd says, for instance:
    echo -n $"Starting $prog: "
what is that $ doing there?
Should it not be:
    echo -n "Starting $prog: "

For instance, from /etc/rc.d/init.d/cron:
    echo -n "Starting cron daemon: "
Comment 3 Eido Inoue 2002-02-13 11:10:00 EST
The $ before a string is used for gettext so that non-English environments have
that Start and Stop message translated to different languages. Unfortunately,
bash 1.14 doesn't support this, and the init script that was sent out should
have been tweaked for 6.2 to remove this cosmetic (but completely harmless) bug.

the bash2 supplied with 6.2 will do the gettext. I don't recommend symlinking
bash to bash2 on a 6.2, and this is a low-priority cosmetic bug.

Thanks for pointing this out.

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