~/.bashrc return can only 'return' from a function or sourced script
- by Timothy
I am trying to setup a OpenStack box to have a look at OpenStack Object Storage (Swift). Looking through the web I found this link;
http://swift.openstack.org/development_saio.html#loopback-section
I followed the instructions line by line but stuck on step 7 in the "Getting the code and setting up test environment" section.
When I execute ~/.bashrc I get;
line 6: return: can only 'return' from a function or sourced script.
Below is the Line 6 extract from ~/.bashrc. My first reaction is to comment this line out, but I dont know what it does. Can anyone help?
#If not running interactively, dont't do anything
[ -z "$PS1" ] && return
I'm running Ubuntu 12.04 as a VM on Hyper-v if knowing that is useful.