My first alias in .bashrc...'apostrophes 'getting' in the way?'
Hey guys first post :)
I've been trying to learn linux for a long time now and after a long break I'm finally having some successes :) I'm trying to make an alias called 'share' for the command: smbclient '\\CV943500-a\share$' I added this to .bashrc and source'd it: alias share='smbclient '\\CV943500-a\share$'' When I try to run it smbclient gives the error: share: not enough '\' characters in service Is smbclient not reading it right because of the double apostrophes? When I run the command normal it works fine. Thanks alot in advance :-D (Note those are two single ( ' ) apostrophes not one double ( " ) |
Firstly, those should be slashes, not back-slashes.
Secondly, there's no need to wrap the service name into quotes. Try alias share='smbclient //CV943500-a/share$' Cheers, Tink |
Thanks! :) I wonder why it worked with backslashes when I just typed it. Anyway it works now, woot :cool:
|
Pleasure ;)
|
All times are GMT -5. The time now is 06:22 PM. |