Browse Source

Add ~ as var modifier

git-svn-id: https://klish.googlecode.com/svn/trunk@544 0eaa4687-2ee9-07dd-09d9-bcdd2d2dd5fb
Serj Kalichev 12 years ago
parent
commit
31c2dec6ef
1 changed files with 3 additions and 0 deletions
  1. 3 0
      clish/shell/shell_var.c

+ 3 - 0
clish/shell/shell_var.c

@@ -241,6 +241,9 @@ static char *expand_nextsegment(const char **string, const char *escape_chars,
 						mod_quote = 1;
 						mod_esc = 1;
 						mod_esc_chars = 0;
+					} else if ('~' == *q) {
+						mod_esc = 1;
+						mod_esc_chars = 0;
 					} else if (('_' == *q) && ('_' == *(q+1))) {
 						mod_esc_dec = 1;
 						q++;