2006-02-27 01:40:50 +03:00
|
|
|
# $Id: modmisc,v 1.3 2006/02/26 22:40:50 wiz Exp $
|
2006-02-27 00:43:00 +03:00
|
|
|
#
|
2006-02-27 01:40:50 +03:00
|
|
|
# miscellaneous modifier tests
|
2006-02-27 00:43:00 +03:00
|
|
|
|
2006-02-27 01:20:55 +03:00
|
|
|
path=:/bin:/usr/bin::/sbin:/usr/sbin:.:/home/user/bin:.
|
2006-02-27 00:43:00 +03:00
|
|
|
# strip cwd from path.
|
|
|
|
MOD_NODOT=S/:/ /g:N.:ts:
|
|
|
|
# and decorate, note that $'s need to be doubled. Also note that
|
|
|
|
# the modifier_variable can be used with other modifiers.
|
|
|
|
MOD_NODOTX=S/:/ /g:N.:@d@'$$d'@
|
|
|
|
|
|
|
|
all: modvar
|
|
|
|
|
|
|
|
modvar:
|
|
|
|
@echo "path='${path}'"
|
|
|
|
@echo "path='${path:${MOD_NODOT}}'"
|
|
|
|
@echo "path='${path:S,home,homes,:${MOD_NODOT}}'"
|
|
|
|
@echo "path=${path:${MOD_NODOTX}:ts:}"
|