Commit Graph

7 Commits

Author SHA1 Message Date
Xavier Delaruelle
68b9eddaf1 Fix escaping of '?' character in shell alias
Fixes #275.
2019-05-15 08:14:10 +02:00
Xavier Delaruelle
e58e12b28f ts: fix tests based on modulecmd.tcl content
As 'adopt minimal escaping style' change the piece of string searched by
some tests.
2018-10-21 10:48:06 +02:00
Xavier Delaruelle
95c97ef5f4 Define shell alias with special chars escaped
When producing code to output shell alias definition, escaping of
special characters was missing until now in renderSettings procedure.

Code to bake shell alias has been fixed to work in a similar way than
for environment variable with full range of shell special characters
escaped.

Translation of $n/$* in !!:n/!* on csh-like shells is maintained for
compatibility with v3. To improve this compatibility, a \ prior to $
disables translation on csh (like with v3), then after \$ is translated
in $ for all shells.

Adapt testsuite to use value escaping over expected output result for
shell alias (like done for environment variable). Adapt consequently all
shell alias tests in 50-cmds/07*.

Add test in 50-cmds/076-alias-sub to demonstrate escaping of complex
shell alias. Use modulefile from this new test within install testsuite
to garanty shell alias produce is effective on shell sessions. Check
availability of tools used by this alias (grep, tr, awk) to determine if
install test can be launched on current system.

Fixes #165
2018-05-20 15:55:35 +02:00
Kent Mein
bd4a515a7d Moved things out of the tcl directory.
Kent
2013-01-10 15:48:30 -06:00
Kent Mein
76adb1c7e3 Removed all of the non tcl version stuff. Or most of it anyway.
Kent
2013-01-10 15:44:49 -06:00
rkowen
04e48988b9 Rolled in the 3.2.3 changes * the set-alias command
will for Bourne shell derivatives substitute the safe ${1+"$@"} for $*.
2006-05-25 21:09:53 +00:00
rk
e816ab15b5 modules is a shell tool for setting-up the user environment on the
fly, as it were.  It's a powerful mechanism for dynamically changing
environment variables, aliases, X11 resources, etc.
It uses an embedded Tcl intrepretor, with a few extensions.  Therefore,
it has a well defined language syntax.
Version 3.1 is GPL, and includes many improvements over the 3.0beta.
2000-06-28 00:17:34 +00:00