Changes between Version 2 and Version 3 of Ticket #3770, comment 5
- Timestamp:
- 03/10/17 11:33:16 (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #3770, comment 5
v2 v3 1 Testing some simpler conflicts between the `date` command and `mc`'s macro expansion...at the full-screen prompt – `bash` on my system AFAICT – available via Ctrl-O, expansion is done by `mc`then `date`: 1 For example: the `date` command and `mc`'s macro expansion. Access is via the full-screen prompt – `bash` on my system – toggled using `C-o`. There is no `mc` macro expansion. 2 2 3 3 {{{ … … 8 8 }}} 9 9 10 ...and from the single-line prompt on the `mc` GUI, macro/variable expansion is done for `mc` first, then `date`: 10 From the single-line prompt in `mc` , `mc` does macro expansion in order: `mc` first (1), then `date` (2). 11 11 12 12 {{{ 13 # date +%d 14 # date +/the/current/working/directory 13 # date +%d # (1) 14 # date +/the/current/working/directory # (2) 15 15 /the/current/working/directory 16 16 17 # date +%%d 18 # date +%d 17 # date +%%d # (1) 18 # date +%d # (2) 19 19 09 20 20 }}} 21 21 22 Whether this is a bug or a feature can be argued both ways. The double percentage `%%` resolves some simpler issues where commands run as typed rather than as calls to run external programs. Perhaps the need for more comprehensive documentation is the issue this bug begins to highlight. More complex examples I cannot suggest at the moment. 22 Use of the double percent symbols `%%` resolves simliar simpler issues. For complex examples perhaps this is not so. 23 24 Note: edited for clarity.