It should, if you provide a space in the command. If you alias 'grep' to echo, and run the same tests again
Code:
alias test
grep %1 ues.txt
alias grep
echo
test a/b gives "a ues.txt/b"
test a,b gives "a ues.txtb"
test a^/b gives "a/b ues.txt"
test a^,b gives "a,b ues.txt"
test a b gives "a ues.txt b"
Escaping the / or comma gives the desired results, ie "a/b ues.txt" and "a,b ues.txt" makes a/b and a,b into %1
Putting a space between the params gives "a ues.txt b" which is %1 aliasargs %2
Strange behaviour, but present in 4nt 8.01.70 on NT 5.00.2195 too.[/code]
No - you told TCC you didn't want a space by not providing one in your command. If you always want a space in the result but don't ever want to put one in the source, you should modify your alias:
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.