소스 검색

Add ~ as var modifier

git-svn-id: https://klish.googlecode.com/svn/trunk@544 0eaa4687-2ee9-07dd-09d9-bcdd2d2dd5fb
Serj Kalichev 12 년 전
부모
커밋
31c2dec6ef
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  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++;