On Thu, Oct 28, 2010 at 05:44:31PM +0300, Serhiy Storchaka wrote: > Oleksandr Gavenko wrote: > > $ var="--opt arg 'arg-part1 arg2-part2'" > > $ printarg $var > > А printarg -- это откуда?
Если не ошибаюсь, Олександр имеет ввиду чего-то вроде:
#!/bin/sh
#
# This trivial utility is hereby placed into the public domain.
while [ "$#" -gt 0 ]; do
printf '"%s"\n' "$1"
shift
done
(только-что написал, может, есть какие-то баги :)
Всего лучшего,
Петр
--
Peter Pentchev [email protected] [email protected] [email protected]
PGP key: http://people.FreeBSD.org/~roam/roam.key.asc
Key fingerprint FDBA FD79 C26F 3C51 C95E DF9E ED18 B68D 1619 4553
I've heard that this sentence is a rumor.
signature.asc
Description: Digital signature

