Lines Matching refs:shell
4 # $Id: shell-quote,v 1.3 2010-06-11 20:00:24 roderick Exp $
113 shell-quote - quote arguments for safe use, unmodified in a shell command
117 B<shell-quote> [I<switch>]... I<arg>...
121 B<shell-quote> lets you pass arbitrary strings through the shell so that
122 they won't be changed by the shell. This lets you process commands or
123 files with embedded white space or shell globbing characters safely.
140 cmd=`shell-quote touch 'hi there'`
148 output by B<find> with a shell script. Anything you put in $IFS to
150 you can do it using B<shell-quote>:
152 eval set -- `find -type f -print0 | xargs -0 shell-quote --`
154 =item B<debug shell scripts>
156 B<shell-quote> is better than B<echo> for debugging shell scripts.
159 [ -z "$debug" ] || shell-quote "debug:" "$@"
163 and C<debug foo bar>, but with B<shell-quote> you can.
167 B<shell-quote> can be used to build up a shell command to run later.
170 by the shell (which is usually a good idea, else there are things the
179 user_switches="$user_switches "`shell-quote -- "$2"`
186 eval "shell-quote some-command $user_switches my args"