Author Topic: Linux editing with file names that contain a dollar sign ($)  (Read 5222 times)

bf21195

  • Junior Community Member
  • Posts: 3
  • Hero Points: 0
Linux editing with file names that contain a dollar sign ($)
« on: October 31, 2006, 08:00:30 pm »
I'm running SlickEdit v11.02, with all of the hotfixes (as of Oct. 31st).
My OS is Fedora Core 5.

If I try to edit a filename that has a dollar sign in it ($), such as 'foo$bar.txt', I wind up with a buffer in slickedit for the file 'foo.txt'

This occurs if I try to edit with Slickedit in any of these ways:
- From the linux command line (eg: 'vs foo\$bar.txt')
- From the command line within Slickedit ('e foo\$bar.txt')
- From the File->Open dialog (The 'Files' list shows the files with non-escaped dollar signs, the 'File Name' entry shows the file name with an escaped dollar sign)


From my linux command line, I can issue a 'vi foo\$bar.txt' and a 'gedit foo\$bar.txt', so I don't believe this problem is tied to the OS.

Slickedit v11.02 for windows works OK editing these files.

I did a search through the forums and didn't find anything about this, I apologize if I missed it.
Thanks for any help!

hs2

  • Senior Community Member
  • Posts: 2733
  • Hero Points: 285
Re: Linux editing with file names that contain a dollar sign ($)
« Reply #1 on: November 01, 2006, 10:33:43 am »
Check def_unix_expansion e.g. by
Code: [Select]
set-var def-unix-expansion
on Slick cmdline.
I assume its enabled (== 1) in your setup.
Disable def-unix-expansion (set to '0') and retry.

BTW: Try to avoid using shell 'special' chars and SPACEs - your life will be much easier ;)

HS2

bf21195

  • Junior Community Member
  • Posts: 3
  • Hero Points: 0
Re: Linux editing with file names that contain a dollar sign ($)
« Reply #2 on: November 01, 2006, 03:04:35 pm »
Check def_unix_expansion e.g. by
Code: [Select]
set-var def-unix-expansion
on Slick cmdline.
I assume its enabled (== 1) in your setup.
Disable def-unix-expansion (set to '0') and retry.

BTW: Try to avoid using shell 'special' chars and SPACEs - your life will be much easier ;)

HS2

Most excellent!  Worked like a champ.  Thanks very much. 

With that particular variable disabled, what other behavior can I expect?  I wasn't sure what all this variable controlled..?

hs2

  • Senior Community Member
  • Posts: 2733
  • Hero Points: 285
Re: Linux editing with file names that contain a dollar sign ($)
« Reply #3 on: November 01, 2006, 04:36:11 pm »
AFAIK this variable affects filename/path- and Slick cmdline behaviour (whether to mimic unix shell expansion or not).

HS2