Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 4 lines (3 sloc) 262 Bytes
#!/bin/sh
Q () { echo "#!/bin/sh"; echo "$@" | sed -r -e "s/(echo .)Q (..)/\1Q '\2'/" -e "s/([^(\\\\)])(\\\2)/\1'\2'/g"; echo "Q '$@'";}
Q 'Q () { echo "#!/bin/sh"; echo "$@" | sed -r -e "s/(echo .)Q (..)/\1Q \2/" -e "s/([^(\\\\)])(\\\2)/\1\2/g"; echo "Q $@";}'