I assume you are talking about a tub spout??? If yes, there are spouts that have the connection close to the wall for short stub issues, look for one of those. Often, the tub stub screws into a fitting in the wall, if that is what you have, the old stub can be unscrewed and a new one made up and installed.