helpThe GNU Bourne-Again SHell - Support: sr #108336, subtle differences between ksh and...

 
 

sr #108336: subtle differences between ksh and bash

Submitted by:  dave kerns <dtkerns>
Submitted on:  Sat 06 Jul 2013 12:30:37 AM UTC  
 
Category: NonePriority: 5 - Normal
Severity: 3 - NormalStatus: None
Privacy: PublicAssigned to: None
Open/Closed: OpenOperating System: GNU/Linux

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

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

 

Sat 06 Jul 2013 12:30:37 AM UTC, original submission:

I'm a long time ksh user, slowly being pushed to use bash. There are two significant (to me) features that bash is missing. I'm curious if they were intentionally left out...

1) cd xxx yyy # in ksh, performs string substitution from xxx to yyy on the cwd, either xxx or yyy may contain slashes '/'

very useful for view-pathing: cd $BASE $DEV # takes you to the same relative place in a tree, but creativity abounds! As far I can tell, bash only takes (at most) one argument to cd

2) control-O - (from a previous command search) execute command (appending it to the history, again) and brings up the next command in the history file ready to edited (and also be executed with another control-O)

for control-flowed multi-line commands, bash joins them, making it possible to edit the commands in a for loop, but if the multi-line commands are not in an if/while/for construct, you're out of luck.

for details on both of these, see the ksh man page! :)

dave kerns <dtkerns>

 

(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 dtkerns (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

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

     

     

    No Changes Have Been Made to This Item

    Back to the top


    Powered by Savane 3.1-cleanup