|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
I'm trying to create an alias to a command that requires quotes. How can I tell the system to ignore a set of quotation marks?
Eg: alias-"command -j "new run now" -x" It's the quotes in the middle that are giving me a problem. Any help is greatly appreciated. |
|
#2
|
|||
|
|||
|
Well I don't know if that is possible in the way you're trying to do it, but you could always write a script to do the job.
Using bash, for example, you can build the command the way you want it to be, and then you call the script when you need to run the command. I'm not sure of this next part, since I haven't tried it myself, but could it be that the following works: Code:
alias-' "command -j "new run now" -x" ' ... or something like that |
|
#3
|
|||
|
|||
|
Thanks for the reply! The alias thing didn't work, but your sugguestion for a script is a great idea! Thanks.
|
![]() |
| Viewing: Dev Shed Forums > Operating Systems > UNIX Help > alias with quotation marks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|