BASH alias not working...
mathbymath at aol.com
Tue Jun 21 01:25:31 UTC 2005
On Jun 20, 2005, at 8:06 PM, Byron Saltysiak wrote:
> Hmm... my first inclination is to break this complex logic into a
> shell script. I have a /bin directory in my /home directory which I
> put personal scripts in. Just add that directory to your path.
> You could put this whole thing into a script called something like
> choose_to_edit.sh and make sure that script is executable.
> I'd also put all the commands you want to run on separate lines and
> check the exit value of the important ones with $? instead of putting
> them all on one line with &&.
> Making a standalone script and putting the commands on different lines
> will make it easier to debug. Also, if you have the script on your
> path I know you can tab complete it, not sure about aliases.
Thank you very much :). After implementing this idea of making it
all into scripts, it works wonderfully!
More information about the ubuntu-users