Find the answer to your Linux question:
Results 1 to 3 of 3
/etc/init.d/sshd on Fedora 13 has lines like these: Code: echo -n $ "Reloading $prog: " Which effect does the $ before the string have? BTW: This $ before a double-quoted ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Dec 2010
    Posts
    16

    [SOLVED] dollar before string


    /etc/init.d/sshd on Fedora 13 has lines like these:

    Code:
    echo -n $"Reloading $prog: "
    Which effect does the $ before the string have?

    BTW: This $ before a double-quoted string is used in many initscripts on Fedora 13, but not on Ubuntu 8.04.

  2. #2
    Linux User Manko10's Avatar
    Join Date
    Sep 2010
    Posts
    250
    Refining Linux Advent calendar: 24 Outstanding ZSH Gems

  3. #3
    Just Joined!
    Join Date
    Dec 2010
    Posts
    16

    dollar before string

    Oh wow, cool feature!
    Thanks a bunch.

  4. $spacer_open
    $spacer_close

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •