Public bug reported:

If following command is run

    (sleep 1 & sleep 1 & time wait); date

bash is supposed to run two commands in parallel, wait for both to
complete and the run third command.

However, if current environment has following alias configured

    alias time='/usr/bin/time -v'

then the above command will fail with

   /usr/bin/time: cannot run wait: No such file or directory

and the final command is run without a wait.

Bash already has "command" to force interpretation as system command and
"builtin" to force interpretation as built-in command. However bash is
missing "keyword" to force interpretation as keyword.

One should be able to write

    (sleep 1 & sleep 1 & keyword time wait); date

to force time to be interpreted as bash keyword.

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: bash 4.4.18-2ubuntu1.2
ProcVersionSignature: Ubuntu 5.3.0-51.44~18.04.2-lowlatency 5.3.18
Uname: Linux 5.3.0-51-lowlatency x86_64
ApportVersion: 2.20.9-0ubuntu7.14
Architecture: amd64
CurrentDesktop: MATE
Date: Fri May  8 15:48:23 2020
EcryptfsInUse: Yes
InstallationDate: Installed on 2019-01-05 (488 days ago)
InstallationMedia: Ubuntu 18.04.1 LTS "Bionic Beaver" - Release amd64 (20180725)
SourcePackage: bash
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: bash (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug bionic

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1877571

Title:
  bash is missing feature to use keyword if identically named alias
  exists

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bash/+bug/1877571/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to