LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to make a specific command(s) work in a specific shell only (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-make-a-specific-command-s-work-in-a-specific-shell-only-357758/)

naren_0101bits 08-28-2005 08:59 AM

How to make a specific command(s) work in a specific shell only
 
hello everybody !

Iam just a newbie in Linux and i have a small doubt in it.
Iam trying to make a specific command work in only a specific shell only.
For instance, say, that i want to execute aliase command only in ksh or csh only. I tried all that but in vain.
So, please help me in knowing how to do it.

Thanks to all in advance.

warmth...
NARENDRA SAIRAM IMMADI

btmiller 08-28-2005 11:22 AM

The alias command isn't a command at all, but rather a shell builtin (i.e. it's provided by the shell itself). You might be able to use restricted versions of other shells to limit the commands they can use, but this will restrict opther functionality. Failing that, the only solution I see is get the source code to the other shells, remove the functionality, and recompile them. I don't see why you'd want to do this, though.

Tinkster 08-28-2005 02:23 PM

Please do not post the same thread in more than one forum. Picking the most relevant forum and posting it once there makes it easier for other members to help you and keeps the discussion all in one place.

http://www.linuxquestions.org/rules.php

The older sibblings are:
http://www.linuxquestions.org/questi...hreadid=357754
http://www.linuxquestions.org/questi...hreadid=357756

Mara 08-28-2005 02:24 PM

Please do not post the same thread in more than one forum. Picking the most relevant forum and posting it once there makes it easier for other members to help you and keeps the discussion all in one place.

http://www.linuxquestions.org/rules.php

You have a earlier thread in Linux-General http://www.linuxquestions.org/questi...hreadid=357756 , so I'm closing this one.


All times are GMT -5. The time now is 01:49 AM.