topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Thursday March 28, 2024, 4:02 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: bug? if $$1 contains \t then it is expanded to TAB (please disable this)  (Read 2782 times)

wjamoe

  • Supporting Member
  • Joined in 2010
  • **
  • Posts: 99
    • View Profile
    • Donate to Member
I think I finally found the cause
why some aliases containing '$$1' to the left or the right of the '|'  in the results window
not always work as expected.

Apparently \t and similar characters combinations like \n are expanded to tab and newline respectively.

However these character combinations can be part of a path like c:\tiddlywiki\newversion\last

test case using the paste command (inserts text in last active window) this is the only command that shows the strange effect all other commands do not give any output.

Create an alias with the following result

demo  | paste "$$1"

and the regular expression

^==(.+)

Save the alias.

Now open a new notepad (needed for the paste command to work)

THEN reopen(!) FARR and type

==c:\tiddlywiki\newversion\last

Which matches the regular expression ^==(.+)

Go to the demo alias in the results window using your mouse or cursorkeys.
In the information bar it shows

paste "c:\tiddlywiki\newversion\last"

expected result in Notepad window

"c:\tiddlywiki\newversion\last"

However result in Notepad looks like

"c:   iddlywiki
ewversion\last"


Feature request: Can you please disable expansion of the character combinations when they are part of $$1, $$c .
#filecontents has the same problem, I assume this uses the same programcode.

BTW $$u# work as expected, so no change there ;-)