Trailing slash in pathname

Kevin Chu (kevin@portal.ca)
Tue, 15 Dec 1998 09:28:30 -0800


I'm out of date.  I'm running Red Hat 5.1 and 1.4.5.3.

I was trying to figure out where the double slashes in some pathnames
were coming from:

[kevin@localhost kevin]$ ps | grep '//' | colrm 1 20 | grep -v grep
/usr/X11R6/bin//Animate 7 4 /usr/share/afterstep/base.24bpp
/usr/X11R6/bin//Wharf 9 4 /usr/share/afterstep/base.24bpp 0
/usr/X11R6/bin//Pager 11 4 /usr/share/afterstep/base.24bpp 0

I checked lots of config files.  I thought a trailing slash was left
on a path somewhere, but it turns out it's not a path problem:

[kevin@localhost kevin]$ which Animate
/usr/X11R6/bin/Animate
[kevin@localhost kevin]$ which Wharf
/usr/X11R6/bin/Wharf
[kevin@localhost kevin]$ which Pager
/usr/X11R6/bin/Pager

'ps l' shows that the parent of the three processes with double
slashes is AfterStep itself (/usr/X11R6/bin/afterstep).  grepping that
file for the trailing slash (grep 'bin/' /usr/X11R6/bin/afterstep)
shows the trailing slash near the end of the output.

I'm not going to bother with it since the double slashes don't seem to
affect the functionality of AfterStep.  But the trailing slash is
something to look for as you put out new versions.

Kevin

-- 
Kevin Chu               kevin@portal.ca
http://members.tripod.com/~super_kevin/

--
   WWW:   http://www.afterstep.org/
   FTP:   ftp://ftp.afterstep.org/
   MAIL:  http://www.caldera.com/linuxcenter/forums/afterstep.html