bugThe nmh Mail Handling System - Bugs: bug #23319, whatnow's ls and cd don't cope...

 
 

bug #23319: whatnow's ls and cd don't cope with directories with spaces in

Submitted by:  Peter Maydell <pm215>
Submitted on:  Thu 22 May 2008 10:02:46 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalStatus: Fixed
Assigned to: NoneOpen/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sun 03 Aug 2008 06:48:58 PM UTC, comment #1:

Now fixed. NB that here:

What now? cd /tmp/foo bar

the right command should be:
cd '/tmp/foo bar'

as the cd command is supposed to accept the quoting conventions of the user's shell.

Peter Maydell <pm215>
Project Administrator
Thu 22 May 2008 10:02:46 AM UTC, original submission:

mnementh$ pwd
/tmp/foo bar
mnementh$ ls
baz boz
mnementh$ whatnow

What now? ls
/bin/bash: line 0: cd: /tmp/foo: No such file or directory
[listing of the contents of some other directory deleted]

What now? pwd
/tmp/foo bar

What now? cd /tmp/foo bar
/bin/bash: line 0: cd: /tmp/foo: No such file or directory
/bin/bash: line 0: cd: /tmp/foo: No such file or directory

This is because the code in whatnowsbr.c which builds up a shell command to pass to system isn't getting the quoting right.

Peter Maydell <pm215>
Project Administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by pm215 (Submitted the item)
  •  

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 03 Aug 2008 06:48:58 PM UTCpm215StatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1