<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: What is &amp;quot;/usr/bin/cd&amp;quot; for ? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/what-is-quot-usr-bin-cd-quot-for/m-p/2600564#M34162</link>
    <description>... aaah, never noticed it is a "Fine" manual :-)&lt;BR /&gt;&lt;BR /&gt;V.</description>
    <pubDate>Thu, 25 Oct 2001 11:01:00 GMT</pubDate>
    <dc:creator>Volker Borowski</dc:creator>
    <dc:date>2001-10-25T11:01:00Z</dc:date>
    <item>
      <title>What is "/usr/bin/cd" for ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/what-is-quot-usr-bin-cd-quot-for/m-p/2600557#M34155</link>
      <description>I wrote a script to be executed by CA Workload manager. I was being careful to use fully qualified path names. When I did a "which cd" the response was /usr/bin/cd, so I placed that in my script "/usr/bin/cd /dev/vg_opsbcv" .&lt;BR /&gt;Lo and behold the chown command after the above command didn't change the right files.&lt;BR /&gt;&lt;BR /&gt;Of course, I now remember that cd is built-in to the shell, not an executable. What I can't figure out is what the cd script in /usr/bin is useful for? It looks like it shells out and does the cd, then exits that shell, so the parent shell doesn't see the cd. Any explanation what the /usr/bin/cd script is for would be helpful</description>
      <pubDate>Wed, 24 Oct 2001 14:35:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/what-is-quot-usr-bin-cd-quot-for/m-p/2600557#M34155</guid>
      <dc:creator>Art Mehlman</dc:creator>
      <dc:date>2001-10-24T14:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: What is "/usr/bin/cd" for ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/what-is-quot-usr-bin-cd-quot-for/m-p/2600558#M34156</link>
      <description>Have a look at the file /usr/bin/cd.&lt;BR /&gt;&lt;BR /&gt;It appears to just be a script that calls the shells cd.&lt;BR /&gt;&lt;BR /&gt;# file /usr/bin/cd&lt;BR /&gt;/usr/bin/cd:    commands text&lt;BR /&gt;&lt;BR /&gt;# cat /usr/bin/cd&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;# @(#)B.11.11_LR&lt;BR /&gt;&lt;BR /&gt;# This is the executable version of cd implemented using the&lt;BR /&gt;# posix shell built-in cd command.&lt;BR /&gt;&lt;BR /&gt;cd "$@"&lt;BR /&gt;exit $?&lt;BR /&gt;</description>
      <pubDate>Wed, 24 Oct 2001 14:42:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/what-is-quot-usr-bin-cd-quot-for/m-p/2600558#M34156</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2001-10-24T14:42:48Z</dc:date>
    </item>
    <item>
      <title>Re: What is "/usr/bin/cd" for ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/what-is-quot-usr-bin-cd-quot-for/m-p/2600559#M34157</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;cd is from change directory and it's a  posix built-in shell command. The /usr/bin directory has all these built-in commands.&lt;BR /&gt;&lt;BR /&gt;-USA..</description>
      <pubDate>Wed, 24 Oct 2001 14:43:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/what-is-quot-usr-bin-cd-quot-for/m-p/2600559#M34157</guid>
      <dc:creator>Uday_S_Ankolekar</dc:creator>
      <dc:date>2001-10-24T14:43:12Z</dc:date>
    </item>
    <item>
      <title>Re: What is "/usr/bin/cd" for ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/what-is-quot-usr-bin-cd-quot-for/m-p/2600560#M34158</link>
      <description>Hi Art:&lt;BR /&gt;&lt;BR /&gt;What you observed is expected.  Take a look at the man pages for 'cd':&lt;BR /&gt;&lt;BR /&gt;"cd exists only as a shell built-in command because a new process is created whenever a command is executed, making cd useless if written and processed as a normal system command.  Moreover, different shells provide different implementations of cd as a built-in utility."&lt;BR /&gt;&lt;BR /&gt;Thus, the extenal command exists to provide a standard should the need exist.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 24 Oct 2001 14:43:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/what-is-quot-usr-bin-cd-quot-for/m-p/2600560#M34158</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2001-10-24T14:43:49Z</dc:date>
    </item>
    <item>
      <title>Re: What is "/usr/bin/cd" for ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/what-is-quot-usr-bin-cd-quot-for/m-p/2600561#M34159</link>
      <description>&lt;BR /&gt; when you use "'cd""  - the&lt;BR /&gt;shell''s built in CD command&lt;BR /&gt;is excuted. It does not&lt;BR /&gt;call /usr/bin/cd.&lt;BR /&gt;Do this test&lt;BR /&gt;# mv /usr/bin/cd /usr/bin/cd.old&lt;BR /&gt;# the cd command will still work.&lt;BR /&gt; &lt;BR /&gt;My guess is it is just a wrapper for future compatibility use.&lt;BR /&gt;&lt;BR /&gt;  Being a shell builtin, there&lt;BR /&gt;is no need to specify the&lt;BR /&gt;path of it in your scripts.&lt;BR /&gt;&lt;BR /&gt;-raj</description>
      <pubDate>Wed, 24 Oct 2001 15:03:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/what-is-quot-usr-bin-cd-quot-for/m-p/2600561#M34159</guid>
      <dc:creator>Roger Baptiste</dc:creator>
      <dc:date>2001-10-24T15:03:14Z</dc:date>
    </item>
    <item>
      <title>Re: What is "/usr/bin/cd" for ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/what-is-quot-usr-bin-cd-quot-for/m-p/2600562#M34160</link>
      <description>Hey Art, I'm with you.  I'm not seeing a pratical use for /usr/bin/cd.  When I run it in the shell I'm left in the dir where I started.  When I exec it or use ". /usr/bin/cd" it exits my shell.&lt;BR /&gt;&lt;BR /&gt;Can anyone give us a practical use for /usr/bin/cd?&lt;BR /&gt;&lt;BR /&gt;Darrell</description>
      <pubDate>Wed, 24 Oct 2001 15:09:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/what-is-quot-usr-bin-cd-quot-for/m-p/2600562#M34160</guid>
      <dc:creator>Darrell Allen</dc:creator>
      <dc:date>2001-10-24T15:09:57Z</dc:date>
    </item>
    <item>
      <title>Re: What is "/usr/bin/cd" for ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/what-is-quot-usr-bin-cd-quot-for/m-p/2600563#M34161</link>
      <description>/usr/bin/cd indeed has very limited use. But, as always, when in doubt, Real The Fine Manual! :-)&lt;BR /&gt;&lt;BR /&gt;The cd(1) manual page gives an example with find(1) and its -exec option.&lt;BR /&gt;&lt;BR /&gt;Another, perhaps slightly more useful, example in that manual page is "Another usage of cd as a stand-alone command is to obtain the exit&lt;BR /&gt;status of the command.".</description>
      <pubDate>Thu, 25 Oct 2001 08:40:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/what-is-quot-usr-bin-cd-quot-for/m-p/2600563#M34161</guid>
      <dc:creator>Frank Slootweg</dc:creator>
      <dc:date>2001-10-25T08:40:09Z</dc:date>
    </item>
    <item>
      <title>Re: What is "/usr/bin/cd" for ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/what-is-quot-usr-bin-cd-quot-for/m-p/2600564#M34162</link>
      <description>... aaah, never noticed it is a "Fine" manual :-)&lt;BR /&gt;&lt;BR /&gt;V.</description>
      <pubDate>Thu, 25 Oct 2001 11:01:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/what-is-quot-usr-bin-cd-quot-for/m-p/2600564#M34162</guid>
      <dc:creator>Volker Borowski</dc:creator>
      <dc:date>2001-10-25T11:01:00Z</dc:date>
    </item>
    <item>
      <title>Re: What is "/usr/bin/cd" for ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/what-is-quot-usr-bin-cd-quot-for/m-p/2600565#M34163</link>
      <description>Gold star for Frank!  That's a use for /usr/bin/cd though I wonder how often it's ever used.&lt;BR /&gt;&lt;BR /&gt;Read the manual?  And miss all this fun?  Just kidding!&lt;BR /&gt;&lt;BR /&gt;Darrell</description>
      <pubDate>Thu, 25 Oct 2001 11:32:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/what-is-quot-usr-bin-cd-quot-for/m-p/2600565#M34163</guid>
      <dc:creator>Darrell Allen</dc:creator>
      <dc:date>2001-10-25T11:32:08Z</dc:date>
    </item>
    <item>
      <title>Re: What is "/usr/bin/cd" for ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/what-is-quot-usr-bin-cd-quot-for/m-p/2600566#M34164</link>
      <description>Frank,&lt;BR /&gt;Thanks for the gentle reminder and the answer.&lt;BR /&gt;I have been using cd for quite a while and took the manual and the command for granted.&lt;BR /&gt;Just another perplexing day on the job.</description>
      <pubDate>Thu, 25 Oct 2001 11:48:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/what-is-quot-usr-bin-cd-quot-for/m-p/2600566#M34164</guid>
      <dc:creator>Art Mehlman</dc:creator>
      <dc:date>2001-10-25T11:48:31Z</dc:date>
    </item>
    <item>
      <title>Re: What is "/usr/bin/cd" for ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/what-is-quot-usr-bin-cd-quot-for/m-p/2600567#M34165</link>
      <description>...and I always thought it would be a "funny" manual... W.</description>
      <pubDate>Thu, 25 Oct 2001 13:46:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/what-is-quot-usr-bin-cd-quot-for/m-p/2600567#M34165</guid>
      <dc:creator>Wodisch</dc:creator>
      <dc:date>2001-10-25T13:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: What is "/usr/bin/cd" for ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/what-is-quot-usr-bin-cd-quot-for/m-p/2600568#M34166</link>
      <description>You are welcom, Art. Just a minor point: I think you made an error when assigning points, or do you consider the question (still) unanswered? If so, why?</description>
      <pubDate>Thu, 25 Oct 2001 13:50:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/what-is-quot-usr-bin-cd-quot-for/m-p/2600568#M34166</guid>
      <dc:creator>Frank Slootweg</dc:creator>
      <dc:date>2001-10-25T13:50:17Z</dc:date>
    </item>
    <item>
      <title>Re: What is "/usr/bin/cd" for ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/what-is-quot-usr-bin-cd-quot-for/m-p/2600569#M34167</link>
      <description>Frank,&lt;BR /&gt;I did make a mistake when assigning points to your answer. I emailed the forums folks and they say that there is no way to change the point value once it is assigned. I hope by assigning 10 to your latest question, that will rectify the mistake. Sorry about that.</description>
      <pubDate>Mon, 29 Oct 2001 16:48:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/what-is-quot-usr-bin-cd-quot-for/m-p/2600569#M34167</guid>
      <dc:creator>Art Mehlman</dc:creator>
      <dc:date>2001-10-29T16:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: What is "/usr/bin/cd" for ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/what-is-quot-usr-bin-cd-quot-for/m-p/2600570#M34168</link>
      <description>I hope you have got enough answers. Just to confirm you can always use whence -v *whatever* to find out exactly&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Brian</description>
      <pubDate>Mon, 29 Oct 2001 18:53:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/what-is-quot-usr-bin-cd-quot-for/m-p/2600570#M34168</guid>
      <dc:creator>brian_31</dc:creator>
      <dc:date>2001-10-29T18:53:04Z</dc:date>
    </item>
  </channel>
</rss>

