ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
The example I gave was just an example.. I really want to do this:
LINE 9: cp -r /media/xubuntu/88D3-A937/Config/.* /home/xubuntu1
LINE 10: ^/home/xubuntu1^/root
This I think is cleaner as it's 50% shorter than typing: cp -r /media/xubuntu/88D3-A937/Config/.* /root
But I think something needs to be escaped or quoted? Im not sure..
1. where did you get this information to do that? show me some documentation on it.
2. your brain just told you it thinks it could be an escape of quotes needed.
my brain told you, "I do not know this ^com^com" therefore, I have no idea about that command. Follow your brain and be the programmer you want to be. I already explained to you twice how to do this.
Write a separate bash script and experiment with it until you get it to work then add it to your entire script when you get it working. this helps you learn and keep that in your memory better.
The example quote I gave is all the documentation I have on it as well. I got it from a physical copy of a Linux commands type book, under the "using Bash/Zsh command completion" section.. It's just a type of command completion.. I think it has to do with history expansion, so im going to look into that.. Thanks dude ill keep in mind your advice; read it over, and test it out, follow your gut, etc.. Thanks
Last edited by justmy2cents; 05-16-2017 at 01:17 PM.
The example quote I gave is all the documentation I have on it as well. I got it from a physical copy of a Linux commands type book, under the "using Bash/Zsh command completion" section.. It's just a type of command completion.. I think it has to do with history expansion, so im going to look into that.. Thanks dude ill keep in mind your advice; read it over, and test it out, follow your gut, etc.. Thanks
OOOOO I C
that is Zsh I use bash perhaps this is why I was not getting anything good, just a 'bad substitution' error. I use BASH well this Void Linux using dash actually. Bash is in Slackware.
I did do some "light" searching on the subject of difference between Zsh and Bash scripting.. Basically I found that Zsh has most features of bash, but in many cases with a different syntax. ... Now that I think of it I bet it doesn't work cause I use the bash shebang... Anyways I use Zsh as it supposedly favors the power user, and is someone smarter than bash (also probably less targeted by malware coders). Also someone said and I quote: "I've found the syntax of zsh really close to the one of bash, and I did not pay attention if there was really some incompatibilities. I switched 6 years ago from bash to zsh seamlessly".
Last edited by justmy2cents; 05-16-2017 at 02:10 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.