Try # man alias or alias MAN Page
The answers are always a search away.
Hi...
Because my last topic got nearly instant solved, I want to ask something else. ;D
Is it possible to do aliases in BT4 (alias xon='startx') and if yes, can I do them with spaces?
Like 'startx' -> 'x on' or 'start graphical interface' to take an example.
I hope you know the answer(s)...
Bye
Try # man alias or alias MAN Page
The answers are always a search away.
Maybe it's just me or the time, but I really don't get it... I'm sure I know everything there, but didn't found anything about using spaces there.
Could someone explain it a bit further? xD
Then here is another idea. Try it and see. I mean all this time you could have read the man page and tried it.
I was under the impression the OP was hunting for a counter-intuitive use of an alias:
alias 'engage hyper drive' 'hd-on'
I actually don't think alias' can go that way (at least not under tcsh) - it pretty well defeats the purpose of the exercise.
OP should add ~/bin/ to his/her $PATH and then just create a bunch of two line .sh's without the .sh.
Still not underestimating the power...
There is no such thing as bad information - There is truth in the data, so you sift it all, even the crap stuff.
OK, it could be I'm looking at it the wrong way, but in that case, it would seem that what he wants to do is create a script -not an alias- that has an argument. Said scripts would be like the scripts contained in /ect/init.d/ such as 'networking' (which as you know, is invoked as "networking start" or "networking stop", etc.)
Thorn
Stop the TSA now! Boycott the airlines.
Which is exactly why I gave the OP the man page and left it at that. I thought it was kind of self explanatory.
OP You can use spaces you can actually use any "any valid shell input" and yes that included spaces. More or less this means anything that can be typed into a shell via the keyboard. Since a space has to be typed it will work.
If you mean something else (like what Gitsnick implied) then I misunderstood what you wanted. So please clarify so we may further assist.