Skip to content
This repository has been archived by the owner on Mar 18, 2024. It is now read-only.

Add the magic back: $@ -> "$@" #34

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Aug 24, 2016

  1. Add the magic back: $@ -> "$@"

    In bash "$@" is magic (expand arguments while preserving their boundaries). $@ is equivalent to $* and
    "$*" is "interpolate all arguments into a single string, separated by the first character of the $IFS value.
    
    Properly wrapping a command and preserving any arguments as they were quoted/escaped on the command line
    requires "$@" ... the "magic" form of this variable.
    JimDennis authored Aug 24, 2016
    Configuration menu
    Copy the full SHA
    5b843ef View commit details
    Browse the repository at this point in the history