The current shell function will not handle arguments correctly because of the unquoted $*. Additionally 'which' and 'echo' with arguments behave differently in different operating systems. --- FAQ | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/FAQ b/FAQ index 6181ad8..943f6fb 100644 --- a/FAQ +++ b/FAQ @@ -275,8 +275,8 @@ The following shell function does this, and also clears the window title on exit (elinks, for some strange reason, sets it to the value of TERM): elinks() { - STY= `which elinks` $* - echo -ne \\033]0\;\\007; + STY= command elinks "$@" + printf '\033]0;\007' } * What is the proper way to escape characters with #(command)? -- 1.8.2.1 ------------------------------------------------------------------------------ "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE Instantly run your Selenium tests across 300+ browser/OS combos. Get unparalleled scalability from the best Selenium testing platform available Simple to use. Nothing to install. Get started now for free." http://p.sf.net/sfu/SauceLabs _______________________________________________ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users