[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: spaces in filenames



On Wed, Dec 27, 2000, guy keren wrote about "Re: spaces in filenames":
> while the 'cd' override solution does not work on certain cases. i often
> use the 'pushd' and 'popd' command, which also change the current
> directory, and do NOT invoke the shell builtin 'cd' function, at least not
> under tcsh. so you need to alias 'cd', 'pushd' and 'popd'. any other
> commands that change the curernt working directory?

Two solutions:
1. Go ahead and alias cd, pushd, and popd. It's not that difficult, especially
   if you use a common shell function between them to do the actual title-
   changing. Does this cover all the methods of changing the current directory
   in tcsh (or bash)?
2. Dump tcsh, and use zsh ;) Zsh's function "chpwd" that I described in a
   previous posting is "Executed whenever the current working directory is
   changed"", regardless of which command (cd, chdir, pushd, popd, or even
   AUTO_CD) was used to do it.
   If you want other reasons why "Csh Programming [is] Considered Harmful",
   check out Tom Christiansen's "Csh-Whynot" at
	http://www.landfield.com/faqs/unix-faq/shell/csh-whynot/

-- 
Nadav Har'El                        |     Wednesday, Dec 27 2000, 1 Tevet 5761
nyh@math.technion.ac.il             |-----------------------------------------
Phone: +972-53-245868, ICQ 13349191 |If you tell the truth, you don't have to
http://nadav.harel.org.il           |remember anything.

=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il