zsh-workers
 help / color / mirror / code / Atom feed
From: Andres Gomez Navarro <agn@uitesa.es>
To: "'zsh-workers@math.gatech.edu'" <zsh-workers@math.gatech.edu>
Cc: "'aj.gomez@iberdrola.es'" <aj.gomez@iberdrola.es>
Subject: Problem with the redefinition of "cd" command.
Date: Thu, 11 Sep 1997 17:49:35 +-200	[thread overview]
Message-ID: <01BCBEDB.1274EFE0@nt15.uitesa.es> (raw)


Hello!
	I installed tne zsh-3.1.0 in my HP-ws and I am grateful for the adventages of it, the main is the possibility of editing commands with the cursor keys. But I have a problem: when I translated my original .login (c-shell) to the .zlogin I was unable to get this line to work properly:

alias cd 'set ul=$cwd; chdir \!*;set prompt=$cwd"~>"'

in c-shell this redefinition of the "cd" command stores in the variable
"ul" the previous directory (before changing), makes the change of directory to the new one, and constructs a new prompt with the new directory. In my opinion, the problem  is in the sequence "\!*" that is not properly interpreted by the zshell, and I do not know other way of taking the argument of the "cd" command to be used as argument of the "chdir" command in the last part of the alias.
	Could you give me a solution? Thanks in advance. If you need aditional 
data or explanations let me know.
	Best regards,
			Andres Gomez.


             reply	other threads:[~1997-09-11 11:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-09-11 15:49 Andres Gomez Navarro [this message]
1997-09-11 12:14 ` Andrew Main

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=01BCBEDB.1274EFE0@nt15.uitesa.es \
    --to=agn@uitesa.es \
    --cc=aj.gomez@iberdrola.es \
    --cc=zsh-workers@math.gatech.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).