zsh-users
 help / color / mirror / code / Atom feed
From: "Michael Dettmer" <Michael.Dettmer@hansemerkur.de>
To: <zsh-users@sunsite.dk>
Subject: Z-shell and secure shell (Problems with aliases remotely called)
Date: Tue, 23 Mar 2004 10:35:50 +0100	[thread overview]
Message-ID: <s0601319.010@fs-prx1.hansemerkur.de> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 887 bytes --]

Hi there,
aliases used with trailing "parameters" don't seem to work if called
remotely (via rsh or ssh).
Provided you defined an alias for user "remoteUser" on Host
"remoteMachine" which resolves to "/usr/local/bin/myScript
fixedParameter". This is the output of a sample session:
[root@localMachine] /export/home/root #  su - localUser -c "ssh -i
myKey remoteUser@remoteMachine '. ~/.zprofile;myAlias parameter'"
zsh: myAlias not found
[root@localMachine] /export/home/root #
 
Even if you prefix the alias call with "=" (equal sign) it doesn't work
although the error message differs.
 
[root@localMachine] /export/home/root #  su - localUser -c "ssh -i
myKey remoteUser@remoteMachine '. ~/.zprofile;=myAlias parameter'"
zsh: no such file or directory: /usr/local/bin/myScript fixedParameter
[root@localMachine] /export/home/root # 
 
Is there a way to fix that?
 
Thanks in advance


                 reply	other threads:[~2004-03-23  9:37 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=s0601319.010@fs-prx1.hansemerkur.de \
    --to=michael.dettmer@hansemerkur.de \
    --cc=zsh-users@sunsite.dk \
    /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).