~/.bashrc return can only 'return' from a function or sourced script
Posted
by
Timothy
on Ask Ubuntu
See other posts from Ask Ubuntu
or by Timothy
Published on 2012-06-28T19:23:17Z
Indexed on
2012/06/28
21:24 UTC
Read the original article
Hit count: 398
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.
© Ask Ubuntu or respective owner