Hope I am not asking for something that has already been suggested.
I think it would be nice to have spaces in $WORKSPACE variable escaped. This would make build scripts more readable with default configuration.
Just to clarify I am talking about the variable that is listed at jenkins.example.com/env-vars.html
The one that is described as (The absolute path of the directory assigned on the master node for Jenkins to store data.)
If a job has a name that has spaces in it then the value of that variable with default config would be:
/var/lib/jenkins/workspace/Name of Job
I am suggesting it to be:
/var/lib/jenkins/workspace/Name\ of\ Job
I have read this issue report:
https://issues.jenkins-ci.org/browse/JENKINS-20600
And also seen the answers given in there.
I agree with the decision made there.
I would still like to see if this idea floats.