File tests/src/test_escape_chars.c added (mode: 100644) (index 0000000..e8bdee5) |
|
1 |
|
/* |
|
2 |
|
============================================================================ |
|
3 |
|
Name : test_escape_chars.c |
|
4 |
|
Author : martin.dvorak@mindforger.com |
|
5 |
|
Copyright : Apache 2.0 |
|
6 |
|
Description : A test for verification of escape/special chars handling |
|
7 |
|
============================================================================ |
|
8 |
|
*/ |
|
9 |
|
|
|
10 |
|
void generate_bash_history_with_special_chars() { |
|
11 |
|
/* |
|
12 |
|
// crash |
|
13 |
|
%s |
|
14 |
|
|
|
15 |
|
// substituation > should not happen: |
|
16 |
|
date -d yesterday +%A |
|
17 |
|
date -d yesterday +0X1.4C41E000008P-895 |
|
18 |
|
|
|
19 |
|
// crash |
|
20 |
|
mocp -Q "<%state> '%file'\n" |
|
21 |
|
*/ |
|
22 |
|
} |
|
23 |
|
|
|
24 |
|
void main() { |
|
25 |
|
generate_bash_history_with_special_chars(); |
|
26 |
|
} |
|
27 |
|
|