#39 SVN 239: Option -j / use POSIX $()

Jari Aalto

The patch:

- Update the function example in option -j to use POSIX command substitution $()


  • The backquotes are still used by many many people. Many people don't even know that you can also use $().
    The wcd function is very simple, no nesting of commands or so.
    Old shells don't support $()
    Backquotes will stay supported by all shells.

  • Hi,

    I think I will first recommend the POSIX version for POSIX compliant shells, and the existing one for older or non POSIX compliant shells.
    It's only a manual. The user himself (or the package maintainer) installs the function. People who have sleepless nights because their shell resource file is not POSIX compliant will change the function anyway.

    Also remember that the world is very big and old stuff doesn't go away that easy. See also

    The use of backquotes is so wide spread that if they would remove it from bash, hell would break loose.

    • assigned_to: nobody --> waterlan
    • status: open --> open-accepted
    • status: open-accepted --> closed-accepted
  • Use of $() is advised first.
    backquotes version is also listed.